Syntax
•
snmp-server host {ip4-address | ip6-address | hostname} community-string [traps | informs] [1 | 2]
[udp-port port] [filter filtername] [timeout seconds] [retries retries]
•
no snmp-server host {ip4-address | ip6-address | hostname} [traps | informs]
•
ip4-address — The host IPv4 address (the targeted recipient).
•
ip6-address — The host IPv6 address (the targeted recipient). When the IPv6 address is a Link
Local address (IPv6Z address), the outgoing interface name must be specified. Refer to the usage
guidelines for the interface name syntax.
•
hostname — Hostname of the host. (Range: 1 - 158 characters)
•
community-string — Password-like community string sent with the notification operation. (Range:
1 - 20 characters)
•
traps — Sends SNMP traps to this host (Default).
•
informs — Sends SNMP informs to this host. Not applicable to SNMPv1.
•
1 — SNMPv1 traps will be used.
•
2 — SNMPv2 traps will be used (Default).
udp-port port — UDP port of the host to use. The default is 162. (Range: 1 - 65535)
•
•
filter filtername — A string that is the name of the filter that define the filter for this host. If
unspecified, does not filter anything. (Range: Up to 30 characters).
•
timeout seconds — Number of seconds to wait for an acknowledgment before resending informs.
The default is 15 seconds. (Range: 1 - 300)
•
retries retries — Maximum number of times to resend an inform request, when response is not
received for generated message. The default is 3. (Range: 0 - 255)
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode.
User Guidelines
•
The command logical key is the pair (ip-address/hostname, traps/informs).
•
When configuring an SNMPv1 or SNMPv2 notification recipient, a notification view for that recipient
is automatically generated for all the MIB.
•
When configuring an SNMPv1 notification recipient, the Inform option cannot be selected.
333
SNMP Commands