Clear all SNMP settings?

  • 0
  • 3
  • Question
  • Updated 2 years ago
  • Answered
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!
Photo of Eric Burke

Eric Burke

  • 3,500 Points 3k badge 2x thumb

Posted 2 years ago

  • 0
  • 3
Photo of Korsovsky, Konstantin

Korsovsky, Konstantin, Employee

  • 822 Points 500 badge 2x thumb
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.
Photo of BigRic

BigRic

  • 354 Points 250 badge 2x thumb
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)
Photo of Bharathiraja, Suresh

Bharathiraja, Suresh, Employee

  • 3,536 Points 3k badge 2x thumb
Photo of Vellachery, Sumeesh

Vellachery, Sumeesh, Employee

  • 3,290 Points 3k badge 2x thumb
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.
 
(Edited)
Photo of faste

faste

  • 190 Points 100 badge 2x thumb
Unconfigure management should do it i belive
Photo of Tripathy, Priya Ranjan

Tripathy, Priya Ranjan, ESE

  • 2,306 Points 2k badge 2x thumb
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.
Photo of Drew C.

Drew C., Community Manager

  • 40,858 Points 20k badge 2x thumb
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.
Photo of Tripathy, Priya Ranjan

Tripathy, Priya Ranjan, ESE

  • 2,306 Points 2k badge 2x thumb
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.....
Photo of Eric Burke

Eric Burke

  • 3,112 Points 3k badge 2x thumb
Excellent answers.  Thanks, you can close this discussion!