Deployment Guide

In order to enable multiple hosts, issue a separate snmp-server host command for each host. You can specify
multiple notication types in the command for each host.
When multiple snmp-server host commands are given for the same host and type of notication (trap or
inform), each succeeding command overwrites the previous command. Only the last
snmp-server host
command will be in eect. For example, if you enter an snmp-server host inform command for a host and
then enter another snmp-server host inform command for the same host, the second command replaces
the rst command.
The snmp-server host command is used with the snmp-server enable command. Use the snmp-
server enable command to specify which SNMP notications are sent globally. For a host to receive most
notications, at least one snmp-server enable command and the snmp-server host command for that
host must be enabled.
NOTE: For v1 / v2c trap conguration, if the community-string is not dened using the snmp-server
community command prior to using this command, the default form of the snmp-server
community
command automatically is congured with the community-name the same as specied in
the snmp-server host command.
Conguring Informs
To send an inform, use the following steps:
1 Congure a remote engine ID.
2 Congure a remote user.
3 Congure a group for this user with access rights.
4 Enable traps.
5 Congure a host to receive informs.
Related Commands
snmp-server enables— enables SNMP traps.
snmp-server user
Congure a new user to an SNMP group.
Syntax
snmp-server user name {group_name [access access-list-name | ipv6 access-list-
name | access-list-name ipv6 access-list-name]
To remove a user from the SNMP group, use the no snmp-server user name {group_name [access
access-list-name | ipv6 access-list-name | access-list-name ipv6 access-list-
name] command.
Parameters
name Enter the name of the user (not to exceed 20 characters), on the host that connects to
the agent.
group_name Enter a text string (up to 20 characters long) as the name of the group. The following
groups are created for mapping to read/write community/security-names (defaults):
v1v2creadu — maps to a community with ro permissions.
1v2cwriteu — maps to a community rw permissions.
access access-list-
name
(Optional) Enter the standard IPv4 access list name (a string up to 16 characters long).
362 Simple Network Management Protocol (SNMP) and Syslog