Does anyone know where I can get ahold of some sort of script that querys the routers via SNMP that shows the running configs on them? I want to have a web based interface that ONLY shows the running configs. I am aware of the built in http server that is on the routers, but I would rather do it via SNMP . Any information would be appreciated. Thanks, Tim Kempka ____________________________________________________ Tim Kempka E-Mail: tim@flash.net Network Engineer Pager: page_tim@flash.net FlashNet Communications Phone: 817-589-2390 ext. 378
You would need to have a MIB for them. The best way to find out is to use a tool like Scotty to walk the MIB. I don't think that cisco stores the ASCII config as a MIB entry. What you probably want is to grab the config via a rcp from the box. I would recommend looking at the looking glass tools from DIGEX (nitrous.digex.net)., Should give you some ideas on code hope this helps.. jmbrown@ihighway.net At 11:47 AM 7/7/98 -0500, you wrote:
Does anyone know where I can get ahold of some sort of script that querys the routers via SNMP that shows the running configs on them? I want to have a web based interface that ONLY shows the running configs. I am aware of the built in http server that is on the routers, but I would rather do it via SNMP . Any information would be appreciated.
Thanks,
Tim Kempka
____________________________________________________ Tim Kempka E-Mail: tim@flash.net Network Engineer Pager: page_tim@flash.net FlashNet Communications Phone: 817-589-2390 ext. 378
At 11:47 AM 7/7/98 -0500, you wrote:
Does anyone know where I can get ahold of some sort of script that querys the routers via SNMP that shows the running configs on them? I want to have a web based interface that ONLY shows the running configs. I am aware of the built in http server that is on the routers, but I would rather do it via SNMP . Any information would be appreciated.
There is a write-only Cisco MIB variable "cisco.local.lsystem.writeNet" but I don't know how to make it do it's thing. Its type is "DisplayString" so I guess you need to give it a hostname or filename or both. If you could make it work you could then pick up the config from your tftp directory. Setting "cisco.local.lsystem.writeMem" to 1 does have the expected (documented) behaviour. Aled -- tel +44 973 207987
Hi,
Does anyone know where I can get ahold of some sort of script that querys the routers via SNMP that shows the running configs on them? I want to have a web based interface that ONLY shows the running configs. I am aware of the built in http server that is on the routers, but I would rather do it via SNMP . Any information would be appreciated.
I doubt that this can be done using snmp. I would guess that rcp of tftp wouldbe the way to do it. a simple expect script could quite easily tftp the running config copy run tftp dest host filename y (if memory serves me correctly) This I think will proababkly be the easiest to do. Cheers, mike -- Michael Miller mmiller@mc.pmb.school.za Systems Administrator www.mc.pmb.school.za/~mmiller Maritzburg College PGP Key: www.mc.pmb.school.za/~mmiller/pgp/
Does anyone know where I can get ahold of some sort of script that querys the routers via SNMP that shows the running configs on them? I want to have a web based interface that ONLY shows the running configs. I am aware of the built in http server that is on the routers, but I would rather do it via SNMP . Any information would be appreciated.
I doubt that this can be done using snmp. I would guess that rcp of tftp wouldbe the way to do it. a simple expect script could quite easily tftp the running config copy run tftp dest host filename y
I've heard it can be done with an snmpset, but I don't use it. If the original requester would like an expect script that writes to a tftp server, let me know.
ftp://puck.nether.net/pub/jared/get-confg.c - jared On Tue, Jul 07, 1998 at 09:01:08PM -0400, Dave Curado wrote:
Does anyone know where I can get ahold of some sort of script that querys the routers via SNMP that shows the running configs on them? I want to have a web based interface that ONLY shows the running configs. I am aware of the built in http server that is on the routers, but I would rather do it via SNMP . Any information would be appreciated.
I doubt that this can be done using snmp. I would guess that rcp of tftp wouldbe the way to do it. a simple expect script could quite easily tftp the running config copy run tftp dest host filename y
I've heard it can be done with an snmpset, but I don't use it. If the original requester would like an expect script that writes to a tftp server, let me know.
-- Jared Mauch | pgp key available via finger from jared@puck.nether.net Nether Net | http://puck.nether.net/~jared/ | "You Go To Hell! You Go To Hell and Die!"
I doubt that this can be done using snmp. I would guess that rcp of tftp wouldbe the way to do it. a simple expect script could quite easily tftp the running config
Umm just a bad feeling on this, that means you have to store the password in the script.. thats bad news.. Currently I have my router setup like this. -- ip rcmd rcp-enable ip rcmd rsh-enable ip rcmd remote-host shttpd xxx.xxx.xxx.xxx shttpd enable -- shttpd is the username my secured server runs as. This way you can either 'rsh router show run' or if you want to write a script that will download it local and have it cache with 'rcp router:running-config localfile'. It is also an easy way to manage ACLs without having to cut and paste via telnet.
http://www.cisco.com/warp/public/490/11.html -sasaki
Does anyone know where I can get ahold of some sort of script that querys the routers via SNMP that shows the running configs on them? I want to have a web based interface that ONLY shows the running configs. I am aware of the built in http server that is on the routers, but I would rather do it via SNMP . Any information would be appreciated.
Thanks,
Tim Kempka ____________________________________________________ Tim Kempka E-Mail: tim@flash.net Network Engineer Pager: page_tim@flash.net FlashNet Communications Phone: 817-589-2390 ext. 378
participants (8)
-
Aled Morris
-
Chris Fournier
-
Dave Curado
-
Jared Mauch
-
John M. Brown
-
Michael Miller
-
SASAKI Kazuyoshi
-
Tim Kempka