Cisco WS-C2948G-GE-TX Configuration Manual page 382

Catalyst 4500 series switch
Table of Contents

Advertisement

Configuring SNMPv1 and SNMPv2c from the CLI
private1
secret1
Trap-Rec-Address Trap-Rec-Community Trap-Rec-Port Trap-Rec-Owner Trap-Rec-Index
---------------- ------------------ ------------- -------------- --------------
Console> (enable)
Clearing SNMP Community Strings
You can clear community strings by entering the clear snmp community-ext command. When you use
this command to clear a community string, corresponding entries in the vacmAccessTable and
vacmSecurityToGroup tables are also removed.
To clear an SNMP community string from the CLI, perform this task in privileged mode:
Task
Step 1
Clear an SNMP community string.
Step 2
Verify the SNMP configuration.
This example shows how to clear an SNMP community string:
Console> (enable) clear snmp community-ext public1
Community string public1 has been removed
Console> (enable)
Specifying Access Numbers for Hosts
You can specify a list of access numbers that are associated with one or more hosts to limit which hosts
can use a specific community string to access the system. You can specify more than one IP address that
is associated with an access number by separating each IP address with a space. If the new IP address
uses an existing access number, the switch addes the new IP addresses to the list.
To specify an access number for a host from the CLI, perform this task in privileged mode:
Task
Step 1
Specify an access number for a host.
Step 2
Verify the SNMP configuration.
These examples show how to specify an access number for a host:
Console> (enable) set snmp access-list 1 172.20.60.100
Access number 1 has been created with new IP Address 172.20.60.100
Console> (enable) set snmp access-list 2 172.20.60.100 mask 255.0.0.0
Access number 2 has been created with new IP Address 172.20.60.100 mask 255.0.0.0
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)
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
24-12
read-write
2
read-write-all 500
Chapter 24
1.3.6
1.3.6.1.4.1.9.9
Command
clear snmp community-ext community-string
show snmp
Command
set snmp access-list access_number IP_address
[ipmask maskaddr]
show snmp access-list
Configuring SNMP
78-15908-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents