D-Link DIS-200G-12PS [113/172] Command default level

D-Link DIS-200G-12PS [113/172] Command default level
DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
110
25-10
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}]
COMMUNITY-STRING
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.
COMMUNITY-STRING
Specifies the community string to be sent with the notification
packet.
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 notification packet for the created user. For SNMPv1 and SNMPv2c, the notification
will be sent in the trap protocol data unit (PDU).
When specifying to send the trap packets in SNMPv1 or SNMPv2c to a specific host, the specified community
string acts as the community string in the trap packets.
In the sending of the trap packet, the system will check the notification view associated with the specified user
(or community name). If the binding variables to be sent with the trap packet are not in the notification view, the
notification will not be sent to this host.
Example
This example shows how to configure the trap recipient 163.10.50.126 with version 1 with community string
“comaccess”.
Switch# configure terminal
Switch(config)# snmp-server community comaccess rw
Switch(config)# snmp-server host 163.10.50.126 version 1 comaccess
Switch(config)#

Содержание

Скачать