- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Retrieve SNMP status through API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-07-2015 09:56 AM
Hi Experts,
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 ???
Re: Retrieve SNMP status through API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-07-2015 11:17 AM
The best place to get this is the DeviceSNMPPollingInd field of the DeviceSetting object:
https://netmri/api/3/device_settings
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:
https://netmri/api/3/config_revisions/docs#get_configs
I am not sure, but it may allow you to do that even with SNMP disabled.
John