DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
175
Switch# configure terminal
Switch(config)# snmp-server view interfacesMibView 1.3.6.1.2.1.2 included
Switch(config)# snmp-server group guestgroup v3 auth read interfacesMibView
Switch(config)# snmp-server group guestgroup v2c read CommunityView write
CommunityView
Switch(config)#
32-13
snmp-server host
This command is used to specify the recipient of the SNMP notification. Use the
no
form of this command to
remove the recipient.
snmp-server host {
IP-ADDRESS
} [version {1 | 2c | 3 {auth | noauth | priv}}]
COMMUNITY-STRING
[
port
PORT-NUMBER]
no snmp-server host {
IP-ADDRESS
}
Parameters
IP-ADDRESS
Specifies the IPv4 address of the SNMP notification host.
version
(Optional) Specifies the version of the SNMP used to send the
traps. If not specified, the default is SNMPv1
1 - SNMPv1.
2c - SNMPv2c.
3 - SNMPv3.
auth
Specifies to authenticate the packet but not to encrypt it.
noauth
Specifies not to authenticate and to encrypt the packet.
priv
Specifies to both authenticate and to encrypt the packet.
COMMUNITY-STRING
Specifies the community string to be sent with the notification
packet. If the version is 3, the community string is used as the
username as defined in the snmp-sever user command.
PORT-NUMBER
Specifies the UDP port number. The default trap UDP port number
is 162. The range of UDP port numbers is from 0 to 65535. Some
port numbers may conflict with other protocols.
Default
By default, the version used is 1.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
SNMP notifications are sent as trap packets. The user should create at least one recipient of a SNMP
notification by using the snmp-server host command in order for the Switch to send the SNMP notifications.
Specify the version of the n otification packet for the created user. For SNMPv1 and SNMPv2c, the notification