Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Example:
Device# configure terminal
|
Enters global configuration mode.
|
Step 3 |
snmp-server
user
username
group-name
[remote
host [udp-port
port] [vrf
vrf-name]] {v1 |
v2c |
v3 [encrypted] [auth {md5 |
sha}
auth-password]} [access [ipv6
nacl] [priv {des |
3des |
aes {128 |
192 |
256}}
privpassword] {acl-number |
acl-name}]
Example:
Device(config)# snmp-server user customer1 group1 v1
|
Configures a new user to an SNMP group.
|
Step 4 |
snmp-server
group
group-name
{v1 |
v2c |
v3 {auth |
noauth |
priv}} [context
context-name] [read
read-view] [write
write-view] [notify
notify-view] [access [ipv6
named-access-list] [acl-number|
acl-name]]
Example:
Device(config)# snmp-server group group1 v1 context context1 read view1 write view1 notify view1
|
Configures a new SNMP group or a table that maps SNMP users to SNMP views.
|
Step 5 |
snmp-server
view
view-name
oid-tree
{included |
excluded}
Example:
Device(config)# snmp-server view view1 ipForward included
|
Creates or updates a view entry.
|
Step 6 |
snmp-server
enable
traps
[notification-type] [vrrp]
Example:
Device(config)# snmp-server enable traps
|
Enables all SNMP notifications (traps or informs) available on your system.
|
Step 7 |
snmp-server
community
string
[view
view-name] [ro |
rw] [ipv6
nacl] [access-list-number |
extended-access-list-number |
access-list-name]
Example:
Device(config)# snmp-server community public view view1 rw
|
Sets up the community access string to permit access to the SNMP.
|
Step 8 |
snmp-server
host
{hostname |
ip-address} [vrf
vrf-name] [traps |
informs] [version {1 |
2c |
3 [auth |
noauth |
priv]}]
community-string [udp-port
port] [notification-type]
Example:
Device(config)# snmp-server host 10.0.0.1 vrf vrf1 public udp-port 7002
|
Specifies the recipient of an SNMP notification operation.
|
Step 9 |
snmp
mib
community-map
community-name
[context
context-name] [engineid
engine-id] [security-name
security-name][target-list
upn-list-name]
Example:
Device(config)# snmp mib community-map community1 context context1 target-list commAVpn
|
Associates an SNMP community with an SNMP context, Engine ID, or security name.
|
Step 10 |
snmp
mib
target
list
vpn-list-name
{vrf
vrf-name |
host
ip-address}
Example:
Device(config)# snmp mib target list commAVpn vrf vrf1
|
Creates a list of target VRFs and hosts to associate with an SNMP community.
|
Step 11 |
no
snmp-server
trap
authentication
vrf
Example:
Device(config)# no snmp-server trap authentication vrf
|
(Optional) Disables all SNMP authentication notifications (traps and informs) generated for packets received on VRF interfaces.
|