All MIBs › HUAWEI-NTP-TRAP-MIB › hwNtpStateChangeTrap
hwNtpStateChangeTrap
Module: HUAWEI-NTP-TRAP-MIB
OID (symbolic): HUAWEI-NTP-TRAP-MIB::hwNtpStateChangeTrap
OID (numeric): 1.3.6.1.4.1.2011.6.80.2.1
Node type: NOTIFICATION-TYPE
Description: This TRAP is used to notify when the NTP state changes from synchronized to unsynchronized & vice-versa. NTP state changes occur due to reasons listed below 1) System clock is reset by configuration. 2) Selected peer is deleted by configuration. 3) Selected peer is unreachable. 4) Authentication failed for selected peer. 5) Selected peer clock is not synchronized. 6) Time elapsed since peer clock's last update is not within permissible limit. 7) Source stratum is greater than the local stratum. 8) System synchronization source lost. 9) NTP mode mismatch for selected peer.
Examples
Send this trap to an SNMP manager — replace <manager> with the IP or hostname of your monitoring server (SNMPv2c):
snmptrap -v2c -c public <manager> '' HUAWEI-NTP-TRAP-MIB::hwNtpStateChangeTrap snmptrap -v2c -c public <manager> '' 1.3.6.1.4.1.2011.6.80.2.1
Listen for incoming traps on the manager host (-f keeps it in the foreground, -Lo prints to stdout — useful for testing):
snmptrapd -f -Lo -c /dev/null authCommunity log public
Example snmptrapd log entry:
zoo11-linux.zoo [UDP: [192.168.30.111]:60800->[192.168.30.10]:162]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (364940672) 42 days, 5:43:26.72 SNMPv2-MIB::snmpTrapOID.0 = OID: HUAWEI-NTP-TRAP-MIB::hwNtpStateChangeTrap
Start monitoring Huawei router or switch (NTP state/system-peer change traps) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the HUAWEI-NTP-TRAP-MIB::hwNtpStateChangeTrap OID value, configure state conditions and alerts, and monitor any Huawei router or switch (NTP state/system-peer change traps) from a single console.
OID Breakdown
Upper-level ancestors (8 from the standard OID tree / other modules)
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.2011 | huawei | EXPERTV2-MIB |
| 1.3.6.1.4.1.2011.6 | huaweiUtility | HUAWEI-3COM-OID-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.2011.6.80 | hwNtpTrapMib | HUAWEI-NTP-TRAP-MIB |
| 1.3.6.1.4.1.2011.6.80.2 | hwNtpTraps | HUAWEI-NTP-TRAP-MIB |
| 1.3.6.1.4.1.2011.6.80.2.1 | hwNtpStateChangeTrap | HUAWEI-NTP-TRAP-MIB |