22-11
Ethernet Card Software Feature and Configuration Guide, R7.2
January 2009
Chapter 22 Configuring SNMP
Configuring SNMP Notifications
Beginning in privileged EXEC mode, follow these steps to configure the ML-Series card to send traps
or inform requests to a host:
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 snmp-server engineID remote
ip-address engineid-string
Specify the IP address and engine ID for the remote host.
Step 3 snmp-server user username
groupname remote host [udp-port
port] {v1 | v2c}[access access-list]
Configure an SNMP user to be associated with the remote host created in
Step 2.
The username is the name of the user on the host that connects to the
agent.
The groupname is the name of the group with which the user is
associated.
(Optional) Enter remote to specify a remote SNMP entity to which
the user belongs and the hostname or IP address of that entity along
with the optional UDP port number. The default UDP port number is
162.
Enter the SNMP version number (v1 or v2c).
(Optional) Enter access access-list with a string (not to exceed
64 characters) that is the name of the access list.
Note You cannot configure a remote user for an address without first
configuring the engine ID for the remote host. If you try to
configure the user before configuring the remote engine ID, you
receive an error message, and the command is not executed.
Step 4 snmp-server host host-addr
[traps | informs] [version {1 | 2c}]
community-string [udp-port port]
[notification-type]
Specify the recipient of an SNMP trap operation.
For host-addr, specify the name or Internet address of the host (the
targeted recipient).
(Optional) Enter traps (the default) to send SNMP traps to the host.
(Optional) Enter informs to send SNMP inform requests to the host.
(Optional) Specify the SNMP version (1 or 2c). SNMPv1 does not
support inform requests.
For community-string, enter the password-like community string sent
with the notification operation.
(Optional) For udp-port port, enter the remote device UDP port.
(Optional) For notification-type, use the keywords listed in
Table 22-3 on page 22-10. If no type is specified, all notifications are
sent.
Step 5 snmp-server enable traps
notification-types
Enable the ML-Series card to send traps or inform requests and specify
the type of notifications to be sent. For a list of notification types, enter:
snmp-server enable traps ?
To enable multiple types of traps, you must enter a separate
snmp-server enable traps command for each trap type.