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
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
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
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.
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
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 know someone said it can be done with SNMP but we don't do it that way here.
http://www.vix.com/rtrmon/
http://www.vix.com/vulture/
Both of these were paid for by Genuity but are freely redistributable.