3Com S7902E Command Reference Manual - page 2126
1-21
snmp-agent target-host
Syntax
snmp-agent target-host
trap
address
udp-domain
{
ip-address
|
ipv6
ipv6-address
} [
udp-port
port-number
]
[
vpn-instance vpn-instance-name
]
params
securityname
security-string
[
v1
|
v2c
|
v3
[
authentication
|
privacy
] ]
undo
snmp-agent
target-host
{
ip-address
|
ipv6
ipv6-address
}
securityname security-string
[
vpn-instance vpn-instance-name
]
View
System view
Default Level
3: Manage level
Parameters
trap
: Specifies the host to be the target host which will receive traps and notifications from the device.
address
: Specifies the destination IP address in the SNMP messages sent from the device.
udp-domain
: Indicates that the trap is transmitted using UDP.
ip-address
:
The IPv4 address of the trap target host.
ipv6 ipv6-address
:
Specifies the IPv6 address of the trap target host.
udp-port
port-number
: Specifies the number of the port on the target host to receive traps.
vpn-instance vpn-instance-name
: Specifies the VPN where the target host resides, where
vpn-instance-name
indicates the VPN instance name and is a string of 1 to 31 characters. It is case
sensitive and is applicable only in a network supporting IPv4. If you execute the command with this
keyword and argument combination, you need to add the agent into this VPN domain, and ensure that
the route between the agent and the NMS is available.
params
securityname security-string
: Specifies the authentication related parameter, which is an
SNMPv1 or SNMPv2c community name or an SNMPv3 user name, a string of 1 to 32 characters.
v1
: SNMPv1.
v2c
: SNMPv2c.
v3
: SNMPv3.
z
authentication: Specifies the security model to be authentication without privacy. Authentication is
a process to check whether the packet is integral and whether it has been tampered. You need to
configure the authentication password when creating an SNMPv3 user.
z
privacy: Specifies the security model to be authentication with privacy. Privacy is to encrypt the
data part of a packet to prevent it from being intercepted. You need to configure the authentication
password and privacy password when creating an SNMPv3 user.
Description
Use the
snmp-agent target-host
command to configure the related settings for a trap target host.
Use the
undo
snmp-agent target-host
command to remove the current settings. According to the
networking requirements, you can use this command for multiple times to configure different settings for