12-07-2015 09:56 AM
I am trying to solve a problem with config collection on our network. We have disabled snmp on some devices due to some vulnerabilities and I am looking for a way to manually collect running-config on these devices because netmri polling is disabled.
I am planning to use an API which can give me the snmp status of a device.Specifically I am looking for "snmp status disabled". I do not want to touch devices on which snmp credentials failed or snmp-not-enabled etc.
If snmp is disabled, then a script would manually collect running-config and dump it in a directory. Can you tell me which API, I can use for this? Would this work? $remote->SystemInd under NetMRI :: API :: Remote :: V2_10_0 :: DataCollectionStatus ???
12-07-2015 11:17 AM
The best place to get this is the DeviceSNMPPollingInd field of the DeviceSetting object:
Try one thing before this though - once a device has been successfully discovered and you have gotten configs, and you have then disabled SNMP. Then, try manually forcing a config collection via the get_configs call in the config_revisions API:
I am not sure, but it may allow you to do that even with SNMP disabled.