Snmp-Agent Target-Host - H3C s3600 series Command Manual

Hide thumbs Also See for s3600 series:
Table of Contents

Advertisement

You can use the display snmp-agent sys-info command to display the current SNMP system
information.
Examples
# Specify the contact information for system maintenance as Dial System Operator # 1234.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent sys-info contact Dial System Operator # 1234

snmp-agent target-host

Syntax
snmp-agent target-host trap address udp-domain ip-address [ udp-port port-number ] params
securityname security-string [ v1 | v2c | v3 [authentication | privacy ] ]
undo snmp-agent target-host ip-address securityname security-string
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.
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-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents