- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Disable SNMP using API
Hello,
We currently have SNMP traps enabled and configured on a customer org with hundreds of networks (in the alerting section). I need to use API to disable it, has anyone tried that before or know the endpoint to target that?
Thanks,
Sameh
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes: https://developer.cisco.com/meraki/api-v1/update-network-snmp/
and also https://developer.cisco.com/meraki/api-v1/update-organization-snmp/
access - The type of SNMP access. Can be one of 'none' (disabled)
Are you trying to just turn off traps but leave SNMP on otherwise?
https://developer.cisco.com/meraki/api-v1/update-network-snmp-traps/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to disable SNMP on network level alerting config completely. like in this screenshot:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try using the new https://developer.cisco.com/meraki/api-v1/update-network-snmp-traps/ endpoint. You have to have Early Access enabled in the org.
You can then set the mode: "'mode' must be one of: 'disabled', 'v1/v2c' or 'v3'"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see many opt-in setting under early-access. did you mean this one?
Early API Access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot @David_Jirku it worked!
just for reference in case anyone looks for the same solution:
this is the endpoint url: /networks/{networkId}/snmp/traps
and the payload should be like this:
"mode": "disabled",
"access": "none",
"communityString": "",
"users": []
