1-21
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) 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.
Содержание 5500-EI PWR
Страница 43: ...2 6...
Страница 76: ...1 17...
Страница 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Страница 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Страница 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Страница 519: ...iii...
Страница 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Страница 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Страница 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Страница 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Страница 1111: ...ii xmodem get 3 18...
Страница 1314: ...A 44 Z...