[c-nsp] Retrieving running config via SNMP

Vincent De Keyzer vincent at dekeyzer.net
Fri Aug 18 10:16:49 EDT 2006


Thanks Oli,

now I get the following:

[vdk at BRUBLUnm02 tftpboot]$ snmpset -v2c -c private router
.1.3.6.1.4.1.9.2.10.9.10.10.10.231 s config.text
Error in packet.
Reason: noCreation (That table does not support row creation or that object
can not ever be created)
Failed object: SNMPv2-SMI::enterprises.9.2.10.9.10.10.10.231

Am I doing something wrong?

Vincent


> -----Original Message-----
> From: Oliver Boehmer (oboehmer) [mailto:oboehmer at cisco.com]
> Sent: vendredi 18 août 2006 14:20
> To: Vincent De Keyzer
> Subject: RE: [c-nsp] Retrieving running config via SNMP
> 
> did you check
> http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a
> 008009463e.shtml?
> 
> the OID's are write-only, so you might not see them with snmpwalk..
> 
> 	oli
> 
> Vincent De Keyzer <> wrote on Friday, August 18, 2006 2:04 PM:
> 
> > Hello,
> >
> >
> >
> > we had a problem this morning where the config of a customer router
> > had not been saved, and a power outage occurred after which the
> > router rebooted with an older and incorrect config. Shame on us.
> >
> >
> >
> > What we would like to do now is to write a script that gets running
> > and startup configs of each device, diffs them, and sends a warning if
> > differences are seen.
> >
> >
> >
> > We already have a script that gets the running configs via a
> > SNMP-triggered writenet (enterprises.cisco.local.lsystem.writeNet
> > from OLD-CISCO-SYS-MIB).
> >
> >
> >
> > How do I get the running config with SNMP ? I have found
> > enterprises.cisco.local.lflash.flashToNet in OLD-CISCO-FLASH-MIB, but
> > it does not work on my routers:
> >
> >
> >
> > [vdk ~]$ snmpwalk -c private -v 2c router 1.3.6.1.4.1.9.2.10
> >
> > SNMPv2-SMI::enterprises.9.2.10 = No Such Object available on this
> > agent at this OID
> >
> > [vdk ~]$
> >
> >
> >
> > "router" is a 7206VXR running 12.2(25)S4.
> >
> >
> >
> > Anyone?
> >
> >
> >
> > Vincent
> >
> >
> >
> > _______________________________________________
> > cisco-nsp mailing list  cisco-nsp at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/cisco-nsp
> > archive at http://puck.nether.net/pipermail/cisco-nsp/




More information about the cisco-nsp mailing list