Quick Reference Guide

SNMP Commands 359
DELL CONFIDENTIAL – PRELIMINARY 5/15/12 – FOR PROOF ONLY
User Guidelines
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.
If a trap and inform are defined on the same target, and an inform was sent, the trap is not sent.
The IPv6Z address format: <
ipv6-link-local-address
>%<
interface-name
>
interface-name
vlan
<
integer
> |
ch
<
integer
> |
isatap
<
integer
> | <
physical-port-name
> |
0
integer
— <
decimal-number
> | <
integer
><
decimal-number
>
decimal-number
— 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
physical-port-name
— Designated port number, for example 1/e16.
If the egress interface is not specified, the default interface is selected. Specifying interface
zone=0 is the same as not defining an egress interface.
Example
The following example enables SNMP traps for host 10.1.1.1 with community string
"management" using SNMPv2.
snmp-server v3-host
The snmp-server v3-host Global Configuration mode command specifies the recipient of Simple
Network Management Protocol Version 3 notifications. Use the no form of this command to
remove the specified host.
Syntax
snmp-server v3-host
{
ip4-address
|
ip6-address
|
hostname
}
|
hostname
}
username
[traps |
informs] {noauth | auth | priv} [udp-port
port
] [filter
filtername
] [timeout
seconds
] [retries
retries
]
no snmp-server v3-host {
ip4-address
|
ip6-address
|
hostname
}
username
[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
— Specifies the name of the host. (Range: 1 - 158 characters)
username
— Specifies the name of the user to use to generate the notification.
(Range: 1 - 25)
Console(config)# snmp-server host 10.1.1.1 management 2