11-02-2015 09:08 AM
I have two border routers that get time from external NTP servers while delivering it to my internal network devices. Sometimes some or even all of the configured exrernal servers go down, so we lose the sync.
I am trying to write a script that checks the NTP status and notifies me if NTP is either unsynchronized or synchronized to internal clock.
Polling OID "cntpSysSrvStatus" 1.3.6.1.4.1.9.9.168.1.1.11 (Part of CISCO-NTP-MIB) which according to Cisco reports exactly what I need:
1: server status is unknown
2: server is not running
3: server is not synchronized to any time source
4: server is synchronized to its own local clock
5: server is synchronized to a local hardware refclock (e.g. GPS)
6: server is synchronized to a remote NTP server
And this gives me a result snmp_entry_value_check: OID unavailable, value check skipped
The images I have tested it on are c7200-advipservicesk9-mz.152-4.M8 and asr1002x-universalk9.03.10.05.
One of my questions is: do I need to configure anything in the SNMP part on the device so that EEM could poll it?
Does any one has this task solved and how?
Solved! Go to Solution.