Clear all SNMP settings?


Userlevel 4
Is there a simple way to clear all SNMP settings (v1/2 and v3)? I'd like to start cleanly but I'm not sure of the best way (someone else did all of the prior work)... Thanks!

9 replies

Userlevel 3
Hi, Eric, do you want to clear all config or just snmp? If you want to delete all then read about "unconfigure switch all" command in "Command reference guide". If you just want to remove SNMP settings then check what is configured with "show config snmp" and delete all what you don't need.
Userlevel 1
Was looking more for just a way to clear all SNMP settings. I deleted what I don't need, but I'm still getting some odd errors about invalid v1v2 communities, but I've deleted and re-added them several times. I thought perhaps a prior snmpv3 setting was stepping on it and I thought I'd cleared all of those settings, but still having issues. Was hoping I could essentially reset just SNMP settings to default... (logged in from my other account, sorry for any confusion)
Userlevel 4
Hi Eric,
This might give you some idea,

https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-remove-default-SNMP-credentials-in-...

Thanks,
Suresh.B
Userlevel 5
Eric,

We could d
efault the EXOS SNMP Configuration using these methods.

Method 1:-
Unconfigure the switch and rebuild the non-SNMP configuration, leaving the SNMP configuration defaulted.

Method 2:-
Remove all not default configuration using the following commands. Note, this may vary between EXOS releases.

conf snmp delete trapreceiver all

conf snmp delete notification-log default
conf snmpv3 delete access all-non-defaults
conf snmpv3 delete community all-non-defaults
conf snmpv3 delete filter all
conf snmpv3 delete filter-profile all
conf snmpv3 delete mib-view all-non-defaults
conf snmpv3 delete notify all-non-defaults
conf snmpv3 delete target-addr all
conf snmpv3 delete target-params all
conf snmpv3 delete user all-non-defaults

conf snmp delete community readwrite all
conf snmp delete community readonly all

With the above commands issued, take the SNMP configuration from a defaulted switch with an identical EXOS version and paste the contents of show configuration snmp detail to the affected switch.

Note: Note the Engine ID and use conf snmpv3 engine-id to set it back to the required value or new. This is not entirely necessary though can be conflicting if duplicates are found on multiple switches on network.
Unconfigure management should do it i belive
Userlevel 4
I would suggest the information provided above can fetch you the information. Else you can always refer our EXOS command guide for these information which suits exactly your requirements in the future.
Userlevel 7
There are two "wizards" available as Python scripts for EXOS on our GitHub page.
https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python

Not sure if they'll be the kind of help you're looking for with this, but maybe it will help you get going again when you're ready to reconfigure.
Userlevel 4
Hope all the stuffs provided above helped you to find answer to your queries. If so then do let us know if we can close this ongoing discussion here moving forward.....
Userlevel 4
Tripathy, Priya Ranjan wrote:

Hope all the stuffs provided above helped you to find answer to your queries. If so then do let us know if we can close this ongoing discussion here moving forward.....

Excellent answers. Thanks, you can close this discussion!

Reply