165
You can extend standard linkUp/linkDown notifications to include interface description and interface
type, but must make sure the NMS supports the extended SNMP messages.
To send informs, make sure:
•
The SNMP agent and the NMS use SNMPv2c or SNMPv3.
•
If SNMPv3 is used, you must configure the SNMP engine ID of the NMS when you configure
SNMPv3 basic settings. Also, specify the IP address of the SNMP engine when you create the
SNMPv3 user.
Configuration prerequisites
Configure the SNMP agent with the same basic SNMP settings as the NMS. If SNMPv1 or SNMPv2c is
used, you must configure a community name. If SNMPv3 is used, you must configure an SNMPv3 user,
a MIB view, and a remote SNMP engine ID associated with the SNMPv3 user for notifications.
Make sure the SNMP agent and the NMS can reach each other.
Configuration procedure
To configure the SNMP agent to send notifications to a host:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure a target
host.
•
(High encryption in non-FIPS mode.) Send traps to
the target host:
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
] ]
•
(High encryption in FIPS mode.) Send traps to the
target host:
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
}
•
(High encryption in non-FIPS mode.) Send informs
to the target host:
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
{
v2c
|
v3
[
authentication
|
privacy
] }
•
(High encryption in FIPS mode.) Send informs to
the target host:
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
}
By default, no target host
is configured.