Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Router configuration scripts

Need some help with using scripts to change router

configuration such as password and other repetitive

tasks.

I am aware of expect and would like to know if

anyone can point me to a sample code or help.

Also would like to know if I can use expect on

Windows 2000 and if so where would I obtain the

expect interpreter for Windows 2000.

3 REPLIES
Blue

Re: Router configuration scripts

You can do it via SNMP. http://www.cisco.com/warp/public/477/SNMP/snmp-indx.html has a few tech tips with example on how to do this.

New Member

Re: Router configuration scripts

Hi,

You might check out the jakarta.org website about ANT

which can be used from both PC's and linux/Unix.

http://jakarta.apache.org/ant

I had this bet with a person that a 1 year development

project written in C++ to address things like global

commuunity string re-setting, (their _older_ nodes only have telnet, no SNMP), and SNMP-less status polling

could easily be completed in three or four months...

Ok, I admit it, I_WAS_WRONG....

Using ANT try 3 WEEKS!

While network management may not look like config mgmt, you'll be hard pressed to point out the differences

between a multi-OS software release and multi-vendor

topolology (re)configuration.

The real bang is that you can extend ANT using java

and (whatever they don't already have, you add on

yourself). See Taskdef.

I can envision ANT calling JMX (Sun tm.) to do the

SNMP things, and calling telnet to do the others..

(or JMX calling an SMNP trap to an ANT Task MLET)

SweeeeeeeeeeeeeeeT! (I'm working on it).

Goto the ANT Documentation page,

http://jakarta.apache.org/ant/manual

then look at Builtin Tasks and Optional tasks.

Then being an engineer... download it and enjoy

over the weekend... You'll be happy happy joy joy....

Sincerely,

RobV.

AdsAlive Inc.

New Member

Re: Router configuration scripts

I actually ended up gluing together a few OCX files in VB so that I could do this sort of thing via Telnet on a windows platform. My little app does similar sort of things to tripwire as far as version control, but also reports on other things (because I can customize the commands it runs) and can compare retrieved results against a DB or web page or whatever else, with alerts via syslog. I don't use enable passwords with it for security reasons, but it would be pretty easy to do that sort of thing. Look for a Telnet & syslog active-x control on the net, and stick them together with some code in your favourite language. ( I can't give you mine because my employer owns it)

254
Views
0
Helpful
3
Replies
CreatePlease login to create content