H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – SNMP and RMON
H3C S7500 Series Ethernet Switches Chapter 1
SNMP Configuration Commands
1-16
security-string: Community name for SNMPv1 and SNMPv2c, or SNMPv3 user name,
ranging from 1 to 32 characters.
v1: Specifies SNMPv1.
v2c: Specifies SNMPv2c.
v3: Specifies SNMPv3.
authentication: Configures to authenticate the packets.
privacy: Configures to authenticate and encrypt the packets.
Description
Use snmp-agent target-host command to configure the destination of SNMP trap
messages.
Use undo snmp-agent target-host command to cancel the current setting.
The snmp-agent target-host command must be in conjunction with the snmp-agent
trap enable command or the enable snmp trap updown command on the device to
enable the device to send trap messages.
1) Use the snmp-agent trap enable command or the enable snmp trap updown
command to define trap messages allowed to be sent (all trap messages can be
sent by default).
2) Use the snmp-agent target-host command to set the address of the destination
host receiving SNMP trap messages.
Related commands: snmp-agent trap enable, snmp-agent trap source,
snmp-agent trap life.
Examples
# Enable sending SNMP trap messages to the community name public on 10.1.1.1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] snmp-agent trap enable standard
[H3C] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public
1.1.17 snmp-agent trap enable
Syntax
snmp-agent trap enable [ bgp [ backwardtransition | established ]* | configuration
| flash | ospf [ process-id ] [ ospf-trap-list ] | standard [ authentication | coldstart |
linkdown | linkup | warmstart ]* | system | vrrp [ authfailure | newmaster ] ]
undo snmp-agent trap enable [ bgp [ backwardtransition | established ]* |
configuration | flash | ospf [ process-id ] [ ospf-trap-list ] | standard [ authentication