All MIBs › Juniper-System-Clock-MIB › juniSysClockDateAndTime
juniSysClockDateAndTime
Module: Juniper-System-Clock-MIB
OID (symbolic): Juniper-System-Clock-MIB::juniSysClockDateAndTime
OID (numeric): 1.3.6.1.4.1.4874.2.2.56.1.1.1
Node type: OBJECT-TYPE
Type: DateAndTime
Access: read-write
Description: This object is used to manage the system clock time, date and timezone. If the Network Time Protocol (NTP) is enabled, attempts to set this object will result in an inconsistantValue error. For sets, the implementation may check the value of the year and if it is outside of a 'reasonable' range (e.g., 1999..2035) it may return an inconsistantValue error. Only system clock time and date will be set if the timezone offset is not set along with the timezone name.
What is juniSysClockDateAndTime?
Sets or reads the router's system clock date, time, and timezone offset as a single DateAndTime value, per its DESCRIPTION. If NTP is enabled, an attempt to set this object fails with inconsistentValue, since NTP itself owns the clock in that case.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.4874.2.2.56.1.1.1 snmpwalk -v2c -c public <target> Juniper-System-Clock-MIB::juniSysClockDateAndTime
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.4874.2.2.56.1.1.1.1 snmpget -v2c -c public <target> Juniper-System-Clock-MIB::juniSysClockDateAndTime.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.4874.2.2.56.1.1.1.1 s <value>
Start monitoring Juniper Networks E-series router (system clock/timezone/NTP) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the Juniper-System-Clock-MIB::juniSysClockDateAndTime OID value, configure state conditions and alerts, and monitor any Juniper Networks E-series router (system clock/timezone/NTP) from a single console.
OID Breakdown
Upper-level ancestors (10 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.4874 | juniperUni | Juniper-UNI-SMI |
| 1.3.6.1.4.1.4874.2 | juniperUniMibs | Juniper-UNI-SMI |
| 1.3.6.1.4.1.4874.2.2 | juniMibs | Juniper-MIBs |
| 1.3.6.1.4.1.4874.2.2.56 | juniSysClockMIB | Juniper-MIBs |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.4874.2.2.56.1 | juniSysClockObjects | Juniper-System-Clock-MIB |
| 1.3.6.1.4.1.4874.2.2.56.1.1 | juniSysClockTime | Juniper-System-Clock-MIB |
| 1.3.6.1.4.1.4874.2.2.56.1.1.1 | juniSysClockDateAndTime | Juniper-System-Clock-MIB |