01-23-2019 09:52 AM - edited 01-23-2019 12:01 PM
I have looked into the documentation but didn't find the answer. Also can this value be available via API?
Any suggestion on the timestamp when NetMRI detects no config change? I have looked into Last Collected Timestamp but it only tells when was last config was pulled from the device. And doesn't say time if NetMRI connected to the device and no config change detected.
01-30-2019 08:50 AM
By default, NetMRI will check to see if a device’s configurations have changed once per hour. This is done by logging into the device via the CLI (i.e. telnet or ssh), downloading the configs and comparing them to the previously downloaded configs to see if they have changed.
You can check the frequency of configuration collection in UI. (Settings > Setup > Device Collection Status > on search bar type config, you can see the config collection frequency for different devices.) This is a cyclic process that happens at the background
Whenever the check happens "Last Checked timestamp" would be updated and if a change is found the new config file is saved and the "Last Collected timestamp" would be updated. You could find these under Device Viewer > Configuration Management as shown below
02-04-2019 03:19 PM
Thank you for your detailed explanation.
Is there API available to collect Last checked timestamp? if yes then which API collects this?
02-05-2019 08:32 AM
02-06-2019 03:25 PM
This API includes following timestamps-
02-12-2019 09:54 AM
Just to expand on this a bit... For Cisco IOS, IOS-XE, and NX-OS devices, NetMRI will collect the three timestamps from the SNMP OID ccmHistory. If ccmHistoryRunningLastChanged > ccmHistoryRunningLastSaved, a new collection is required. Only then will it login via the CLI and retrieve the running and startup configs. It will then compare those to the previous saved revision. If a difference is found, the new revision is stored. I forget the frequency of polling for ccmHistory but it's much more often than once/hour.
For devices that do not support ccmHistory, a CLI collection is the only way to determine if the config has changed. I thought that had been every 1.5 hours but it may now be hourly.
Finally, NetMRI monitors syslog messages sent to it by devices. Based on the device vendor/type/model, it will match on the expected string in the received message to look only for ones involving a config change. E.G., for IOS: "...CONFIG...". A match will cause a new collection to be queued for the device. For Cisco devices, the log message includes the username which performed the change. That will be stored along with the new revision -- very useful for audit purposes. Without the syslog message, there is no record of which user made a change.
For IOS(-XE) devices, we add a "logging discriminator" filter in the device config so that only the "CONFIG" messages get sent to NetMRI.
02-12-2019 12:15 PM
Thanks for your detailed explanation. So Last Checked Timestamp gets updated with each of these methods (SNMP, CLI and syslog detection of config chage)?
02-12-2019 12:31 PM - edited 02-12-2019 12:32 PM