Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Rebol and rsh ?

 [1/7] from: Mark:Smith2:airnz at: 2-Oct-2003 15:33


Hi there, I'm currently looking after a number of NetApp Filers (NAS boxes) and it's usually easiest to issue commands to these devices by remote shell (rsh). Would Rebol allow me to open an rsh session to the Filer, issue a command to that Filer and then parse the output returned ? The problem with the devices is that although you can open a telnet session to the them you can only open one at a time ... so if I logged in via telnet no one else would be able to, this is why rsh is used beause it we just write a line like "rsh Filer1 reboot" but I'm hoping Rebol would allow me to make a number of scripts and then allow me to strip out or sort and returned information. Am I looking at the write tool for the job ? Thanks Mark ____________________________________________________________________ CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Air New Zealand immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Air New Zealand. _____________________________________________________________________ For more information on the Air New Zealand Group, visit us online at http://www.airnewzealand.com

 [2/7] from: maarten:vrijheid at: 2-Oct-2003 7:36


Hi Mark,
> I'm currently looking after a number of NetApp Filers (NAS boxes) and
it's
> usually easiest to issue commands to these devices by remote shell
(rsh).
> Would Rebol allow me to open an rsh session to the Filer, issue a
command
> to > that Filer and then parse the output returned ?
There is nor rsh:// protocol in REBOL, but parsing and networking are built-in and very easy. So you might be able to quickly implement (a subset of) rsh. Big advantage: you can do anything controlling those boxes *cross-platform*. Downside is that you'll have to implement rsh (at least partially). That said, rsh looks easy to me, as you don't even provide a password etc. Are you sure you want to use rsh (security wise)?
> The problem with the devices is that although you can open a telnet > session > to the them you can only open one at a time ... so if I logged in via > telnet > no one else would be able to, this is why rsh is used beause it we
just
> write a line like "rsh Filer1 reboot" but I'm hoping Rebol would
allow me
> to make a number of scripts and then allow me to strip out or sort and > returned information. > > Am I looking at the write tool for the job ?
I think so, but you'll have to add some rsh lingo. If you have some rsh specs I am sure we (the mailing list) can help you get this working in a short timeframe. And of course the REBOL community has rsh possibilities after that ;-) --Maarten

 [3/7] from: brett:codeconscious at: 2-Oct-2003 17:18


> Am I looking at the write tool for the job ?
Probably, though I don't know about the RSH part - others can advise on that. Perhaps you could write a little REBOL server that pools the command requests to it and executes them on the devices via telnet. Using REBOL/View your command interface could be graphical. Your little server might be able to do some automated monitoring (just guessing). Maarten Koopmans on this list has some tools to create such servers pretty easily. There are other examples floating around too. As an example see "Introducing Rugby" here http://www.codeconscious.com/rebol/#LinkstoREBOLprojectsandothersites I guess it depends on just how sophisticated you want to make it, what your environment is like and what your interactions will be. Regards, Brett.

 [4/7] from: nitsch-lists:netcologne at: 2-Oct-2003 16:07


Am Donnerstag, 2. Oktober 2003 05:33 schrieb Mark Smith - IBM:
> Hi there, > I'm currently looking after a number of NetApp Filers (NAS boxes) and it's
<<quoted lines omitted: 7>>
> allow me to make a number of scripts and then allow me to strip out or sort > and returned information.
don't know about rsh. But you can telnetting with tcp://. So the script could log in and out for each line. then each session would run some seconds.
> Am I looking at the write tool for the job ? > Thanks
<<quoted lines omitted: 12>>
> at http://www.airnewzealand.com > _____________________________________________________________________
CAUTION: i am not awake enough to read more then one line of the warning above! If there are some important restrictions, better don't send it to me. . SCNR ;) -Volker

 [5/7] from: louisgosselin:accesrail at: 2-Oct-2003 11:45


Along this line, I once used little-bell.r from Ole Friis as a basis for a Rebol script that would login into a router using telnet, and issue commands to check, or reconfigure the router. I recall that this was one of my very first rebol projects and was not very difficult. Louis. At 10:07 AM 02/10/2003, you wrote: Am Donnerstag, 2. Oktober 2003 05:33 schrieb Mark Smith - IBM:
>Hi there, >I'm currently looking after a number of NetApp Filers (NAS boxes) and it's
<<quoted lines omitted: 7>>
>allow me to make a number of scripts and then allow me to strip out or sort >and returned information.
don't know about rsh. But you can telnetting with tcp://. So the script could log in and out for each line. then each session would run some seconds.
>Am I looking at the write tool for the job ? >Thanks
<<quoted lines omitted: 12>>
>at http://www.airnewzealand.com[1] >_____________________________________________________________________
CAUTION: i am not awake enough to read more then one line of the warning above! If there are some important restrictions, better don't send it to me. . SCNR ;) -Volker -- To unsubscribe from this list, just send an email to [rebol-request--rebol--com] with unsubscribe as the subject. --- Links --- 1 http://www.airnewzealand.com/

 [6/7] from: Mark:Smith2:airnz at: 3-Oct-2003 9:48


> -----Original Message----- > From: Maarten Koopmans [mailto:[maarten--vrijheid--net]]
<<quoted lines omitted: 8>>
> least partially). That said, rsh looks easy to me, as you don't even > provide a password etc.
I'd better get learning REBOL then hey ? :-)
> Are you sure you want to use rsh (security wise)?
Yes it's not to much of an issue, as only trusted clients can connect and I can add a username/password field to the command if I'm not on a client known to the Filer.
> > > > Am I looking at the write tool for the job ?
<<quoted lines omitted: 5>>
> possibilities > after that ;-)
Will do :-) Thanks Mark ____________________________________________________________________ CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Air New Zealand immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Air New Zealand. _____________________________________________________________________ For more information on the Air New Zealand Group, visit us online at http://www.airnewzealand.com

 [7/7] from: Mark:Smith2:airnz at: 3-Oct-2003 9:53


Hi there,
> -----Original Message----- > From: Volker Nitsch [mailto:[nitsch-lists--netcologne--de]]
<<quoted lines omitted: 5>>
> So the script could log in and out for each line. > then each session would run some seconds.
I think the problem would be if the script got stuck .. it could hang up anyone else wanting to telnet to the box .. also there is the wonderful fact that anything done via telnet is also done on the console (they are the same thing), so if someone had a serial line in the back of the server they'd see everything the script did and vice versa, so it could get pretty screwed :-)
> CAUTION: i am not awake enough to read more then one line of > the warning > above! If there are some important restrictions, better don't > send it to me. . > SCNR ;) > > -Volker >
Sorry about that but Air NZ tacks on asignature for me ... count yourself lucky my sister in law worked for Goldman Sachs and there .sig was 3 pages long!! Regards Mark ____________________________________________________________________ CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Air New Zealand immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Air New Zealand. _____________________________________________________________________ For more information on the Air New Zealand Group, visit us online at http://www.airnewzealand.com

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted