cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3240
Views
3
Helpful
6
Replies

Disable SNMP using API

SamehAbdalla
Cisco Employee
Cisco Employee

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?

image.png

Thanks,

Sameh

1 Accepted Solution

Accepted Solutions
6 Replies 6

dajirku
Cisco Employee
Cisco Employee

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/

I'm trying to disable SNMP on network level alerting config completely. like in this screenshot:

image.png

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'"

I see many opt-in setting under early-access. did you mean this one?

Early API Access

Yes.

SamehAbdalla
Cisco Employee
Cisco Employee

Thanks a lot @dajirku 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": []