cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4317
Views
10
Helpful
4
Replies

Check running configuration update via SNMP

leonardomachado
Level 1
Level 1

Is it possible to get the last configuration change of running config via SNMPGET ? I would like to monitor it here...

Last configuration change at 10:37:58 BRASIL Wed Sep 25 2013 by root

Thanks,

4 Replies 4

Rolf Fischer
Level 9
Level 9

Hi,

look at this Object: CISCO-CONFIG-MAN-MIB::ccmHistoryRunningLastChanged

Note that the return-value is a timestamp of sysUpTime, so you have to subtract sysUpTime - ccmHistoryRunningLastChanged.

HTH

Rolf

Rolf Fischer
Level 9
Level 9

Hi,

look at that object: CISCO-CONFIG-MAN-MIB::ccmHistoryRunningLastChanged

Note that you have to subtract sysUpTime - the return-value of ccmHistoryRunningLastChanged, because the return-value is a timestamp of sysUpTime.

Example:

enterprises.9.9.43.1.1.1.0 = Timeticks: (242759533) 28 days, 2:19:55.33

system.sysUpTime.0 = Timeticks: (285324883) 33 days, 0:34:08.83

=> Last Change of the Running-Config ~ 5 days ago

HTH

Rolf

The problem with OID=1.3.6.1.4.1.9.9.43.1.1.1 is that it updates its Timeticks at the moment I enter in "conf t" mode. It does not care if I changed the configuration or not.

I'm afraid IOS generally doesn't distinguish if a configuration change has been made or not.

R1#show run | i Last conf

! Last configuration change at 13:57:19 UTC Fri Oct 4 2013

R1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#^Z

%SYS-5-CONFIG_I: Configured from console by console

R1#show run | i Last conf

! Last configuration change at 19:39:56 UTC Fri Oct 4 2013

But I think you don't often enter configuration mode without changing anything, do you?