All MIBs › SNMPv2-MIB-EXT-01 › sysDateAndTime
sysDateAndTime
Module: SNMPv2-MIB-EXT-01
OID (symbolic): SNMPv2-MIB-EXT-01::sysDateAndTime
OID (numeric): 1.3.6.1.2.1.1.9
Node type: OBJECT-TYPE
Type: DateAndTime
Access: read-write
Description: The locally known date and time. The value '0000000000000000'H is returned on systems without a local clock until the local date and time is learned, either from a network time protocol such as NTP or a management set operations on this object.
What is sysDateAndTime?
This value is the device's locally known date and time in the standard DateAndTime format, returning the special all-zero-octet value until the device has learned the actual time from a source like NTP or had it set manually via SNMP. Administrators can read it to verify a device knows the correct time, or write to it to manually set the clock when no network time protocol is available. For example, a freshly powered-on device with no NTP configured would report the all-zeros placeholder value until an admin sets this object or NTP synchronization completes.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.2.1.1.9 snmpwalk -v2c -c public <target> SNMPv2-MIB-EXT-01::sysDateAndTime
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.2.1.1.9.1 snmpget -v2c -c public <target> SNMPv2-MIB-EXT-01::sysDateAndTime.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.2.1.1.9.1 s <value>
Example output:
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup ...
Start monitoring vendor-neutral/vendor-extension of SNMPv2-MIB, any SNMP-managed device with a local clock (clock-status extension) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the SNMPv2-MIB-EXT-01::sysDateAndTime OID value, configure state conditions and alerts, and monitor any vendor-neutral/vendor-extension of SNMPv2-MIB, any SNMP-managed device with a local clock (clock-status extension) from a single console.
OID Breakdown
Upper-level ancestors (7 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.2 | mgmt | AXON-MIB |
| 1.3.6.1.2.1 | mib_2 | AXON-MIB |
| 1.3.6.1.2.1.1 | system | AIMOS |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.2.1.1.9 | sysDateAndTime | SNMPv2-MIB-EXT-01 |