When verifying how many traps are sent to the NMS, the value reported is zero.
[~CE8860-Core]display snmp-agent statistics
2701313 Messages delivered to the SNMP entity
45 Messages which were for an unsupported version
0 Messages which used an SNMP community name not known
0 Messages which represented an illegal operation for the community supplied
0 ASN.1 or BER errors in the process of decoding
2701250 Messages passed from the SNMP entity
0 SNMP PDUs which had badValue error status
0 SNMP PDUs which had genErr error status
0 SNMP PDUs which had noSuchName error status
0 SNMP PDUs which had tooBig error status
11355712 MIB objects retrieved successfully
2076 MIB objects altered successfully
1424513 GetRequest PDU accepted and processed
697593 GetNextRequest PDU accepted and processed
0 GetBulkRequest PDU accepted and processed
2122568 GetResponse PDU sent
480 SetRequest PDU accepted and processed
0 Trap PDU sent
0 Inform PDU sent
0 Inform PDU received with no acknowledgement
0 Inform PDU received with acknowledgement
Below is the SNMP configuration:
#
snmp-agent
snmp-agent local-engineid 800007DB037079903D7E91
#
snmp-agent sys-info version v3
snmp-agent group v3 huawei_group privacy write-view alliso acl 2001
snmp-agent group v3 supervision_group privacy read-view prtg_view acl 2001
snmp-agent target-host trap address udp-domain 192.168.251.134 vpn-instance mgmt params securityname PRTG v3 privacy
snmp-agent target-host trap address udp-domain 192.168.251.3 vpn-instance mgmt params securityname esight v3 privacy
#
snmp-agent mib-view included alliso iso
snmp-agent mib-view included prtg_view iso
snmp-agent usm-user v3 PRTG
snmp-agent usm-user v3 PRTG group supervision_group
snmp-agent usm-user v3 PRTG authentication-mode sha cipher %^%#3s##,^Q2@"4a/oO&G.PTE[0m;Kk+)QDcZ8XOj=|Gb.9J-u`L-$Jt^TF&Rnt)%^%#
snmp-agent usm-user v3 PRTG privacy-mode aes128 cipher %^%#-C(_;<<s)9m{3Z9/mPt~n@5&(9{--5tNrIJ@YJvYX+a!)21QEEACXU8YYK3Q%^%#
snmp-agent usm-user v3 esight
snmp-agent usm-user v3 esight group huawei_group
snmp-agent usm-user v3 esight authentication-mode sha cipher %^%#|OLYKh;!YC3Ge+Q~%I@%G+4=Bx~tuRi}Ce7wk6/=%^%#
snmp-agent usm-user v3 esight privacy-mode aes128 cipher %^%#(D]o+=4rE)_DL&3va~S0<L<L"+-]9*(/TK@g|EzV%^%#
#
snmp-agent packet max-size 1500
#
snmp-agent trap enable
#
We had to add the notify-view in the SNMP configuration and then the traps were sent corectly:
#
snmp-agent group v3 huawei_group privacy write-view alliso notify-view alliso acl 2001
snmp-agent group v3 supervision_group privacy read-view prtg_view notify-view prtg_view acl 2001
#