Command Manual (For Soliton) – SNMP-RMON
H3C S3100 Series Ethernet Switches
Chapter 1 SNMP Configuration Commands
1-25
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.1.20 snmp-agent trap enable
Syntax
snmp
-
agent trap enable
[
configuration
|
flash
| standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
]* |
system
]
undo
snmp-agent trap enable
[
configuration
|
flash
|
standard
[
authentication
|
coldstart
|
linkdown
|
linkup
|
warmstart
]* |
system
]
View
System view
Parameters
configuration
: Specifies to send configuration traps.