09-25-2013 06:47 AM
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,
09-25-2013 07:33 AM
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
09-25-2013 07:40 AM
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
10-04-2013 07:18 AM
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.
10-04-2013 10:48 AM
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?
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: