24-14
Catalyst 4500 Series,  Catalyst 2948G, Catalyst 2948G-GE-TX,  and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
Chapter 24      Configuring SNMP
Configuring SNMPv3 from the CLI
Console> (enable) show snmp ifalias 1
ifIndex    ifName               ifAlias
---------- -------------------- ---------------------------------
1          sc0                  Inband port
Console> (enable) 
Configuring SNMPv3 from the CLI
Note This section provides very basic SNMP v3 configuration information. For detailed information on the 
SNMP commands that are supported by the Catalyst enterprise LAN switches, refer to the 
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX,  and Catalyst 2980G Switches Command 
Reference.
To configure SNMPv3 from the CLI, perform this task in privileged mode:
Task Command
Step 1
Set the SNMP-Server EngineID 
name for the local SNMP engine.
set snmp engineid engineid
Step 2
Configure the MIB views. set snmp view [-hex] {viewname} {subtree} [mask] [included | 
excluded] [volatile | nonvolatile]
Step 3
Set the access rights for a group 
with a certain security model in 
different security levels.
set snmp access [-hex] {groupname} {security-model v3} 
{noauthentication | authentication | privacy} [read [-hex] 
{readview}] [write [-hex] {writeview}] [notify [-hex] 
{notifyview}] [context [-hex] {contextname} [exact | prefix]] 
[volatile | nonvolatile]
Step 4
Specify the target addresses for 
notifications.
set snmp notify [-hex] {notifyname} tag [-hex] {notifytag} 
[trap | inform] [volatile | nonvolatile]
Step 5
Set the snmpTargetAddrEntry in 
the target address table.
set snmp targetaddr [-hex] {addrname} param [-hex] 
{paramsname} {ipaddr} [udpport {port}] [timeout {value}] 
[retries {value}] [volatile | nonvolatile] [taglist {[-hex] tag} 
[[-hex] tag]]
Step 6
Set the SNMP parameters that are 
used to generate a message to a 
target.
set snmp targetparams [-hex] {paramsname} user [-hex] 
{username} {security-model v3} {message-processing v3} 
{noauthentication | authentication | privacy} [volatile | 
nonvolatile]
Step 7
Configure a new user. set snmp user [-hex] {username} [remote {engineid}] 
[{authentication [md5 | sha] {authpassword}] [privacy 
{privpassword}] [volatile | nonvolatile]
Step 8
Relate a user to a group using a 
specified security model.
set snmp group [-hex] {groupname} user [-hex] {username} 
{security-model v1 | v2 | v3} [volatile | nonvolatile]
Step 9
Configure the community table for 
the system default part, which maps 
community strings of previous 
versions of SNMP to SNMPv3.
 set snmp community {access_type} [community_string] 
{access_type = read-only | read-write | read-write-all}