Command Line Interface4-1184Examplesnmp-server communityThis command defines the SNMP v1 and v2c community access string. Use the noform to remove the specified community string.Syntaxsnmp-server community string [ro|rw]no snmp-server community string• string - Community string that acts like a password and permits access tothe SNMP protocol. (Maximum length: 32 characters, case sensitive;Maximum number of strings: 5)• ro - Specifies read-only access. Authorized management stations are onlyable to retrieve MIB objects.• rw - Specifies read/write access. Authorized management stations are ableto both retrieve and modify MIB objects.Default Setting• public - Read-only access. Authorized management stations are only able toretrieve MIB objects.Console#show snmpSNMP Agent: enabledSNMP traps:Authentication: enableLink-up-down: enableSNMP communities:1. private, and the privilege is read-write2. public, and the privilege is read-only0 SNMP packets input0 Bad SNMP version errors0 Unknown community name0 Illegal operation for community name supplied0 Encoding errors0 Number of requested variables0 Number of altered variables0 Get-request PDUs0 Get-next PDUs0 Set-request PDUs0 SNMP packets output0 Too big errors0 No such name errors0 Bad values errors0 General errors0 Response PDUs0 Trap PDUsSNMP logging: disabledConsole#