Chapter 47
Configuring SNMP
Console> (enable) set snmp access-list 2 172.20.60.7
Access number 2 has been updated with new IP Address 172.20.60.7
Console> (enable) set snmp access-list 2 172.20.60.7 mask 255.255.255.0
Access number 2 has been updated with existing IP Address 172.20.60.7 mask 255.255.255.0
Console> (enable)
This example shows how to display the SNMP configuration:
Console> (enable) show snmp access-list
Access-Number
-------------
1
2
3
4
Console> (enable)
Clearing the IP Addresses Associated with Access Numbers
To clear the IP addresses that are associated with the access numbers from the CLI, perform this task in
privileged mode:
Task
Step 1
Clear the IP addresses that are associated with the
access numbers.
Step 2
Verify the SNMP configuration.
These examples show how to clear the IP addresses that are associated with the access numbers:
Console> (enable) clear snmp access-list 101
All IP addresses associated with access-number 101 have been cleared.
Console> (enable)
Console> (enable) clear snmp access-list 2 172.20.60.8
Access number 2 no longer associated with 172.20.60.8
Console> (enable)
OL-8978-04
IP-Addresses/IP-Mask
-------------------------
172.20.60.100/255.0.0.0
1.1.1.1/-
172.20.60.7/-
2.2.2.2/-
2.2.2.2/155.0.0.0
1.1.1.1/2.1.2.4
2.2.2.2/-
2.2.2.5/-
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
SNMPv1 and SNMPv2c Enhancements in Software Release 7.5(1)
Command
clear snmp access-list access_number
IP_address [[IP_address] ...]
show snmp access-list
47-15