10.9 SNMP Configuration Examples
10.9.1 SNMP Community String Configuration Example
For this configuration example, we will configure the following:
Change the read-write community string to readwritecommunity
Change the read-only community string to readonlycommunity
Add an SNMPv1 trap receiver assuming the IP address is 172.168.100.50
Add an additional write-view community named noipreadwrite with no access to any IP
configurable item
ERS-STACKABLE: Step 1 – Enable SNMP
ERS-Stackable(config)# snmp-server enable
ERS-STACKABLE: Step 1 – Change the default read-write and read-only community
strings
ERS-Stackable(config)# snmp-server community readwritecommunity rw
ERS-Stackable(config)# snmp-server community readonlycommunity ro
If password security is enabled:
ERS-Stackable(config)# snmp-server community rw
Enter community string: readwritecommunity
Confirm community string: readwritecommunity
ERS-Stackable(config)# snmp-server community ro
Enter community string: readonlycommunity
Confirm community string: readonlycommunity
ERS-STACKABLE: Step 2 – Add the trap receiver
ERS-Stackable(config)# snmp-server host 172.168.100.50 v1 public
ERS-STACKABLE: Step 3 – Add a new SNMP view named no_ip with restrictions to the IP
ERS-Stackable(config)# snmp-server view no_ip +1.3 -1.3.6.1.4.1.2272.1.8
ERS-STACKABLE: Step 4 – Create an new community named noipreadwrite with the write-
view created above named no_ip
ERS-Stackable(config)# snmp-server community write-view noipreadwrite
Enter community string: ***** (no_ip)
Confirm community string: ***** (no_ip)
Avaya Inc. – External Distribution
avaya.com
53