Huawei Quidway S2000 Series Command Manual page 353

Table of Contents

Advertisement

Command Manual - System Management
Quidway S2000 Series Ethernet Switches
udp-port udp-port-number: Specify the UDP port number of the host to receive the
SNMP notification.
params:Specify SNMP target information to be used in the generation of SNMP messages
v1: Represent the version of SNMPV1.
v2c: Represent the version of SNMPV2C.
v3: Represent the version of SNMPV3.
authentication: Configure to authenticate the packet without encryption.
privacy: Configure to authenticate and encrypt the packet.
community-string: Specify the community name. The character string ranges from 1 to
32 bytes.
Description
Using snmp-agent target-host command, you can configure destination of SNMP
notification. Using undo snmp-agent target-host command, you can cancel the host
that receives SNMP notification.
The snmp-agent target-host command and the snmp-agent trap enable command
should be used at the same time. Use the snmp-agent trap enable command to
enable the device to transmit Trap packets. snmp-agent trap enable command and
snmp-agent target-host command should be used at the same time on the host to
enable notify message sending.
Example
# Enable sending Trap message to myhost.huawei.com with community name huawei.
[Quidway] snmp-agent trap enable
[Quidway] snmp-agent target-host trap address udp-domain 2.2.2.2 params
securityname huawei
# Enable sending Trap packets to 2.2.2.2 with the community name public
[Quidway] snmp-agent trap enable
[Quidway] snmp-agent target-host trap address udp-domain 2.2.2.2 params
securityname public
Chapter 5 SNMP Configuration Commands
5-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents