10.
SNMP Server Configuration
MN700004 Rev 01
103
Configuring SNMP v3 inform notifications:
1. Enable the SNMP server:
device-name
(config)#
snmp-server enable
2. Define the notification with name
NAME,
tag
TAG
and create the notification as an
inform:
device-name
(config)#
snmp-server notify
NAME TAG
inform
3. Define a notification target address with name
ADDRESSNAME
and IP address
193.124.13.6.
Specify the default UDP port (162), the parameter name
(PARAMNAME), and a tag (TAG).
device-name
(config)#
snmp-server target-addr
ADDRESSNAME 193.124.13.6 162 PARAMNAME TAG
4. Define a notification target parameter with name
PARAMNAME
and security name
usrRemote,
security model
v3
and
Authentication of the PDUs based on HMAC-MD5
or HMAC-SHA.
device-name
(config)#
snmp-server target-param
PARAMNAME usrRemote
v3 auth
5. Create a user with name
usrRemote
and assign this user to group
grpRemote
. Specify
the SNMP version number 3, authentication level auth with HMAC-SHA
authentication, and authentication password string. Create a remote user with engine
ID 123456789abcd
.
device-name
(config)#
snmp-server user
usrRemote
group
grpRemote
v3 auth
sha
auth_password remote 123456789abcd
6. Configure a group with name
grpRemote
, SNMP version number
3,
authentication
level
auth.
Specify a read view –
all.
Specify a write view –
all
. Specify the notify
view -
all
.
device-name
(config)#
snmp-server group
grpRemote
v3 auth read all write all notify all
7. Create a view with a name
all
. Specify the OID-TREE –
Internet
and include the
Object ID in the view.
device-name
(config)
#snmp-server view all internet include
Displaying the SNMP Notification Log
The
show snmp-server log-notify
command, in Privileged (Enable) mode, displays the
content of the SNMP notification log.
Command Syntax
device-name
#
show snmp-server log-notify
[
{first<1-65535> | last<1-65535>}
]
Argument Description
first
(Optional) Displays the first <1-65535> records.
Last
(Optional) Displays the last <1-65535> records.
Example
device-name
#
show snmp-server log-notify
2004/01/15 12:38:06 linkUp notification sent: interface 1/1/5.
2004/01/15 12:38:05 linkDown notification sent: interface 1/1/5.