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.
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 ...