Command Mode
Global Configuration Mode
User Guidelines
View-name should be an existing view created using the snmp-server view
command. If there are multiple records with the same view-name, then the
argument specified in this command points to first view-name in the table.
Example
The following example attaches a group called user-group to SNMPv3 and
assigns to the group the privacy security level and read access rights to a view
called user-view.
console(config)# snmp-server group user-group v3 priv read user-view
snmp-server host
Use the snmp-server host command in Global Configuration mode to specify
the recipient of Simple Network Management Protocol notifications. To
remove the specified host, use the no form of this command. This command
enters the user into SNMP-host configuration mode.
Syntax
snmp-server host
traps version {1 | 2 }]] community-string [udp-port
no snmp-server host
host-addr —Specifies the IP address of the host (targeted recipient) or the
•
name of the host. (Range:1-158 characters)
community-string—Specifies a password-like community string sent with
•
the notification operation. (Range: 1-20 characters)
•
traps —Indicates that SNMP traps are sent to this host.
•
version 1—Indicates that SNMPv1 traps will be used.
•
version 2—Indicates that SNMPv2 traps will be used.
•
informs— Indicates that SNMPv2 informs are sent to this host.
host-addr
[informs [timeout
host-addr
{ traps | informs }
seconds
] [retries
port
] [filter
SNMP Commands
retries
] |
filtername
]
1627