HPE Aruba Networking & ProVision-based
1819804 Members
3142 Online
109607 Solutions
New Discussion

Unable to remove snmp public community

 
anudeepsubhash
Occasional Contributor

Unable to remove snmp public community

I wanted to remove public snmp from HP J9782A 2530-24 Switch
Software revision YB.16.10.0015

# sh run | i snmp
snmp-server community "public" unrestricted

Tried used below command & gor a error. Can someone help me on this.

# no snmp-server community public unrestricted
public: Mismatched write-mode in SNMP community

 

3 REPLIES 3
Emil_G
HPE Pro

Re: Unable to remove snmp public community

Hello

The no form of the command uses only the <community-name> variable and deletes the named community from the switch. That means you dont need the variable "unrestricted" in the syntax. I could test it briefly.

HP-2530-48G(config)# snmp-server community "public" unrestricted
HP-2530-48G(config)# no snmp-server community "public" unrestricted
public: Mismatched write-mode in SNMP community.
HP-2530-48G(config)# no snmp-server community "public"
HP-2530-48G(config)#

kind regards

I am an HPE employee

Accept or Kudo


Ihaqueit
Trusted Contributor
parnassus
Honored Contributor

Re: Unable to remove snmp public community

Hello @Ihaqueit, your reference about ArubaOS-CX is here out-of-context and unnecessary: it could be misleading to the OP and to cause confusion.


I'm not an HPE Employee
Kudos and Accepted Solution banner