11-26-2001 08:41 PM - edited 03-08-2019 09:16 PM
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.
03-02-2002 12:21 PM
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.
05-30-2002 09:07 AM
Hi,
You might check out the jakarta.org website about ANT
which can be used from both PC's and linux/Unix.
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.
05-30-2002 02:36 PM
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)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide