Albert Ip wrote:
> 
> Why would you want to do that?
> 
I just posted something else about this recently.  One easy way if you
have expect installed is to run 'autoexpect', telnet to the router, run
one command, then exit.  After that, exit autoexpect, and modify the
name of the command you ran with $argv.  Then to run any command on that
one router, you'd just run

./script.exp 'some cisco IOS command here'

another way is to use an old livingston C utility called 'pmwho' still
available on their ftp site at

ftp://ftp.livingston.com/pub/le/contrib 

or something very similar to that.

very strange that I've posted 6 answers now to the same two questions. 
I think that was the last time.




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Roger Lu
> Sent: Thursday, May 25, 2000 3:37 PM
> To: [EMAIL PROTECTED]
> Subject: How to modify router's configuration with a script?
> 
> I am looking for a way to create a script(with Perl, C, etc) which can
> telnet a Cisco router and modify the configuration constantly according to
> other condition. Anybody has any idea how to do it?
> 
> Thanks!
> 
> Roger Lu
> 
> ___________________________________
> UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
> FAQ, list archives, and subscription info: http://www.groupstudy.com
> Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
> 
> ___________________________________
> UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
> FAQ, list archives, and subscription info: http://www.groupstudy.com
> Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

___________________________________
UPDATED Posting Guidelines: http://www.groupstudy.com/list/guide.html
FAQ, list archives, and subscription info: http://www.groupstudy.com
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

Reply via email to