RE: How to modify router's configuration with a script?

2000-05-25 Thread Albert Ip

Why would you want to do that?

-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]



RE: How to modify router's configuration with a script?

2000-05-25 Thread Roger Lu

I have a cisco 3640 router which has PRI line, I need it dial to hundreds
systems to wake them up through the PRI line. Because the phones numbers are
constantly updated by Oracle database. So I need to use a script to
add/remove the dialer map statements constantly with the phone numbers
update.

Roger

-Original Message-
From: Albert Ip [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 25, 2000 4:39 PM
To: Roger Lu; [EMAIL PROTECTED]
Subject: RE: How to modify router's configuration with a script?


Why would you want to do that?

-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]



RE: How to modify router's configuration with a script?

2000-05-25 Thread James Xie

Roger,

  There is a perl module for cisco router configuration managment. It uses RCS
support version control, editing, pulling and pushing configurations.

  You can either use the commands or call the modules in your own perl scirpts.

   The module is located at: http://www.cpan.org/modules/01modules.index.html

Look for keyword cisco.


Jim Xie.



At 04:54 PM 05/25/2000 -0700, Roger Lu wrote:
I have a cisco 3640 router which has PRI line, I need it dial to hundreds
systems to wake them up through the PRI line. Because the phones numbers are
constantly updated by Oracle database. So I need to use a script to
add/remove the dialer map statements constantly with the phone numbers
update.

Roger

-Original Message-
From: Albert Ip [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 25, 2000 4:39 PM
To: Roger Lu; [EMAIL PROTECTED]
Subject: RE: How to modify router's configuration with a script?


Why would you want to do that?

-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]



Re: How to modify router's configuration with a script?

2000-05-25 Thread David

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]



Re: How to modify router's configuration with a script?

2000-05-25 Thread Dave

We used to do it when I worked for a large bank up north.  We used Expect to
telnet from Sparc stations and upgrade code or make parameter changes across
3000 routers when needed,

--
Dave
CCNP/CCDP/CCAI
"Roger Lu" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 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]