Usage guidelines
SNMPv1 and SNMPv2c settings are supported only in non-FIPS mode.
You can specify multiple SNMP notification target hosts.
Make sure the SNMP agent uses the same UDP port for SNMP notifications as the target host. Typically,
NMSs, for example, IMC and MIB Browser, use port 162 for SNMP notifications as defined in the SNMP
protocols.
If none of the keywords v1, v2c, or v3 is specified, SNMPv1 is used. Make sure the SNMP agent uses the
same SNMP version as the target host so the host can receive the notification.
If neither authentication nor privacy is specified, the security model is no authentication, no privacy.
Examples
# Configure the SNMP agent to send SNMPv1 traps to 10.1.1.1 in the community public.
<Sysname> system-view
[Sysname] snmp-agent trap enable standard
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname
public v1
Related commands
snmp-agent source
•
snmp-agent trap enable
•
snmp-agent trap life
•
snmp-agent trap enable
Use snmp-agent trap enable to enable SNMP notifications globally.
Use undo snmp-agent trap enable to disable SNMP notifications globally.
Syntax
snmp-agent trap enable [ bgp | configuration | ospf [ authentication-failure | bad-packet |
config-error | grhelper-status-change | grrestarter-status-change | if-state-change | lsa-maxage |
lsa-originate
nssatranslator-status-change
virt-config-error
virtneighbor-state-change ] * | standard [ authentication | coldstart | linkdown | linkup | warmstart ]
* | system ]
undo snmp-agent trap enable [ bgp | configuration | ospf [ authentication-failure | bad-packet |
config-error | grhelper-status-change | grrestarter-status-change | if-state-change | lsa-maxage |
lsa-originate
nssatranslator-status-change
virt-config-error
virtneighbor-state-change ] * | standard [ authentication | coldstart | linkdown | linkup | warmstart ]
* | system ]
Default
SNMP notifications are enabled for every module.
Views
System view
|
lsdb-approaching-overflow
|
retransmit
|
virt-retransmit
|
lsdb-approaching-overflow
|
retransmit
|
virt-retransmit
|
lsdb-overflow
|
virt-authentication-failure
|
virtgrhelper-status-change
|
lsdb-overflow
|
virt-authentication-failure
|
virtgrhelper-status-change
105
|
neighbor-state-change
|
virt-bad-packet
|
virtif-state-change
|
neighbor-state-change
|
virt-bad-packet
|
virtif-state-change
|
|
|
|
|
|