H3C S3100 Series Command Manual page 776

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

View
System view
Parameters
trap: Enables the host to receive SNMP traps.
address: Specifies the destination for the SNMP traps.
udp-domain: Specifies to use UDP to communicate with the target host.
ip-address: The IPv4 address of the host that is to receive the traps.
ipv6 ipv6-address: Specifies the IPv6 address of the trap target host.
port-number: Number of the UDP port that is to receive the traps, in the range 1 to 65,535.
params: Specifies SNMP target host information to be used in the generation of SNMP traps.
security-string: SNMPv1/SNMPv2c community name or SNMPv3 username, a string of 1 to 32
characters.
v1: Specifies SNMPv1.
v2c: Specifies SNMPv2c.
v3: Specifies SNMPv3.
authentication: Configures to authenticate the packets without encryption.
privacy: Configures to authenticate and encrypt the packets.
Description
Use snmp-agent target-host command to set a destination host to receive the SNMP traps generated
by the local device.
Use undo snmp-agent target-host command to cancel the current setting.
You can configure multiple destination hosts to receive traps with the command as needed.
To enable a device to send SNMP traps, the snmp-agent target-host command need to be coupled
with a command among the snmp-agent trap enable command and the enable snmp trap updown
command.
1)
Use the snmp-agent trap enable or enable snmp trap updown command to specify the types of
the SNMP traps a device can send (by default, a device can send all types of SNMP traps).
2)
Use the snmp-agent target-host command to set the address of the destination for the SNMP
traps.
Related commands: snmp-agent trap enable, snmp-agent trap source, and snmp-agent trap life.
Examples
# Enable sending SNMP traps to 10.1.1.1, and set the community name to public.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent trap enable standard
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname public
1-21

Advertisement

Table of Contents
loading

Table of Contents