Networking Forums

Networking Forums > Computer Networking > Linux Networking > Automating Telnet or SSH

Reply
Thread Tools Display Modes

Automating Telnet or SSH

 
 
Samuel
Guest
Posts: n/a

 
      09-12-2007, 08:17 PM
Hi,

I am currently developing a scripting language for automating Telnet and
SSH sessions, and the code is now starting to get ready.

I would like to request the comments of network administrators - what
features would like in such a software? I am particularly interested in
comments on the syntax, as I want to make it as clear and easy as
possible to automate a session.

An overview over the language can be seen here:
http://code.google.com/p/exscript/wiki/LanguageSyntax

The project page is here:
http://code.google.com/p/exscript/

-Samuel
 
Reply With Quote
 
 
 
 
Keith Keller
Guest
Posts: n/a

 
      09-12-2007, 09:00 PM
On 2007-09-12, Samuel <(E-Mail Removed)> wrote:
>
> I am currently developing a scripting language for automating Telnet and
> SSH sessions, and the code is now starting to get ready.
>
> I would like to request the comments of network administrators - what
> features would like in such a software? I am particularly interested in
> comments on the syntax, as I want to make it as clear and easy as
> possible to automate a session.


This isn't a syntax issue, but a way to specify multiple hosts on which
to execute the exscript script would probably be useful.

I'm also a bit puzzled as to what Exscript provides that, say, using the
Perl Net::SSH or Net::SSH::Perl modules do not (or, for simple tasks,
even a hack of copying over a shell script and executing with
ssh/telnet).

--keith


--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
Samuel
Guest
Posts: n/a

 
      09-12-2007, 09:27 PM
On Wed, 12 Sep 2007 14:00:20 -0700, Keith Keller wrote:

> This isn't a syntax issue, but a way to specify multiple hosts on which
> to execute the exscript script would probably be useful.


This is already supported in the following ways:

1.
$ ./exscript.py my.exscript host1 host2 host3

2.
$ cat my_hosts
host1
host2
host3
$ ./exscript.py my.exscript --hosts my_hosts

3.
$ cat my_hosts
hostname description
host1 one
host2 two
host3 three
$ ./exscript.py my.exscript --csv-hosts my_hosts

A complete list of command line options is here:
http://code.google.com/p/exscript/wi...mandLineSyntax

> I'm also a bit puzzled as to what Exscript provides that, say, using the
> Perl Net::SSH or Net::SSH::Perl modules do not (or, for simple tasks,
> even a hack of copying over a shell script and executing with
> ssh/telnet).


I used Perl exclusively before creating Exscript (and long before that,
Expect), so I believe to know it very well. In fact, earlier (unreleased)
versions of Exscript were just wrappers around Perl's Net::Telnet. You
have to admit that it is a *lot* more work to create an equivalent Perl
script, even when ignoring error handling and logging in Perl (both comes
for free in Exscript).
Also, in Exscript, you get parallelization for free (see the -c command
line switch). This is simply a major pita in both, Perl and Expect, and
one of the reasons I wrote Exscript.

Thanks for your comments.

-Samuel
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      09-13-2007, 03:13 AM
On 2007-09-12, Samuel <(E-Mail Removed)> wrote:
> On Wed, 12 Sep 2007 14:00:20 -0700, Keith Keller wrote:
>
>> This isn't a syntax issue, but a way to specify multiple hosts on which
>> to execute the exscript script would probably be useful.

>
> This is already supported in the following ways:


[snip]

> A complete list of command line options is here:
> http://code.google.com/p/exscript/wi...mandLineSyntax


Great--I did look at the command line syntax, but not very thoroughly.

>> I'm also a bit puzzled as to what Exscript provides that, say, using the
>> Perl Net::SSH or Net::SSH::Perl modules do not (or, for simple tasks,
>> even a hack of copying over a shell script and executing with
>> ssh/telnet).

>
> I used Perl exclusively before creating Exscript (and long before that,
> Expect), so I believe to know it very well. In fact, earlier (unreleased)
> versions of Exscript were just wrappers around Perl's Net::Telnet. You
> have to admit that it is a *lot* more work to create an equivalent Perl
> script, even when ignoring error handling and logging in Perl (both comes
> for free in Exscript).
> Also, in Exscript, you get parallelization for free (see the -c command
> line switch). This is simply a major pita in both, Perl and Expect, and
> one of the reasons I wrote Exscript.


Again, great. I'll take a closer look.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
Cheerful Charlie
Guest
Posts: n/a

 
      09-14-2007, 05:35 PM
On Sep 12, 3:17 pm, Samuel <newsgro...@debain.org> wrote:
> Hi,
>
> I am currently developing a scripting language for automating Telnet and
> SSH sessions, and the code is now starting to get ready.
>
> I would like to request the comments of network administrators - what
> features would like in such a software? I am particularly interested in
> comments on the syntax, as I want to make it as clear and easy as
> possible to automate a session.
>
> An overview over the language can be seen here:http://code.google.com/p/exscript/wiki/LanguageSyntax
>
> The project page is here:http://code.google.com/p/exscript/
>
> -Samuel


Full, simply written, EXPLICIT and real world useful documentation.
With all syntax explained and useful real world examples. And good
trouble shooting sections.

I have not seen a competently documented software package in years
now.

So-so software with excellent documentation is far better than
excellent software poorly documented.

Cheerful Charlie

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable root access to telnet with krb5-telnet Phoe6 Linux Networking 2 06-08-2007 11:00 AM
Automating WPA-PSK installation on domain PCs? DrBunsen Wireless Networks 3 08-01-2005 09:09 PM
Automating Telnet Sessions Siva Palaninathan Linux Networking 3 10-27-2004 11:40 PM
Automating FTP session from a log file Stefanus J Franslay Linux Networking 4 08-26-2004 04:23 PM
automating VPN connection joe bennett Windows Networking 0 12-18-2003 11:26 PM



1 2 3 4 5 6 7 8 9 10 11