Snmp-Agent Trap Enable - Huawei quidway s3526 series Getting Started

Hide thumbs Also See for quidway s3526 series:
Table of Contents

Advertisement

Command Manual - System Management
Quidway S3500 Series Ethernet Switches
udp-domain:Specify transport domain over UDP for the target address
host-addr: IP address of destination host.
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

5.1.17 snmp-agent trap enable

Syntax
snmp-agent trap enable [ standard [ authentication ] [ coldstart ] [ linkdown ]
[ linkup ] [ warmstart ] ]
Huawei Technologies Proprietary
5-13
Chapter 5 SNMP Configuration Commands

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents