Hi gents, I'm trying to increase my skills in router management but it aint easy! I tried to do a linux shell script that made a sh run in each of my routers, the exit of this script goes directly to a file so I could keep/change my configs in one "click"
but i obtain this result : Conecting 10.20.38.1 Trying 10.20.38.1... Connected to 10.20.38.1 (10.20.38.1). Escape character is '^]'.
One possible solution would be to log into the router and copy the running or startup config to a tftp server instead of trying to parse a sh run. You could place them into a project or CSV directory and even name them using a variable.
Personally I wouldn't re-invent the wheel (unless I could also patent it). I use RANCID religiously.
formatting link
It's a great tool. It connects via telnet or ssh to pull down the config, filesystem details, and more; stores each config in CVS; diffs the current and previous version; and finally emails the any differences between the 2 versions to you. This is an excellent way to keep an eye on your hardware. It's not something I would expect a would-be-attacker to think of when compromising a Cisco. A changes (even to the stores IOS image) will be picked up by RANCID. I run RANCID every 4 hours on all of my hardware.
There are other tools that do the same thing. Cisco points users to the COSI-NMS project.
formatting link
Browse that site and you'll find other similar applications.
J
Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.