191
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
{
trap
|
inform
}
address
udp-domain
{
ip-address
|
ipv6
ipv6-address
}
params
securityname
security-string
[
vpn-instance
vpn-instance-name
]
High encryption in FIPS mode:
snmp-agent
target-host
inform
address
udp-domain
{
ip-address
|
ipv6
ipv6-address
}
[
udp-port
port-number
] [
vpn-instance
vpn-instance-name
]
params
securityname
security-string
v3
{
authentication
|
privacy
}
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
v3
{
authentication
|
privacy
}
undo
snmp-agent
target-host
{
trap
|
inform
}
address
udp-domain
{
ip-address
|
ipv6
ipv6-address
}
params
securityname
security-string
[
vpn-instance
vpn-instance-name
]
Default
No SNMP notification target host has been configured.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
inform
: Sends notifications as informs.
trap
: Sends notifications as traps.
address
: Specifies the destination address of SNMP notifications.
udp-domain
: Specifies UDP as the transport protocol.
ip-address
:
Specifies the IPv4 address or host name of the target host as the destination of SNMP
notifications. The host name is a case-insensitive string of 1 to 253 characters. The string can only
contain letters, numbers, hyphens (-), underscores (_), and dots (.). If you specify a host name, the
IPv4 address of the target host can be obtained.
ipv6
ipv6-address
:
Specifies the IPv6 address or host name of the target host as the destination of
SNMP notifications. The host name is a case-insensitive string of 1 to 253 characters, which only
contains letters, numbers, hyphens (-), underscores (_), and dots (.). If you specify a host name, the
IPv6 address of the target host can be obtained.
udp-port
port-number
: Specifies the UDP port for SNMP notifications. If no UDP port is specified,
UDP port 162 is used.
vpn-instance
vpn-instance-name
: Specifies the VPN for the target host. The
vpn-instance-name
argument specifies the name of the MPLS L3VPN, a case-sensitive string of 1 to 31 characters. If
this parameter is not specified, the target host is in the public network.
params
securityname
security-string
: Specifies the authentication parameter. The
security-string
argument specifies an SNMPv1 or SNMPv2c community name or an SNMPv3 username, a string of
1 to 32 characters.
v1
: Specifies SNMPv1.
v2c
: Specifies SNMPv2c.
v3
: Specifies SNMPv3.