Why are sysUpTime and mGuardUptime different in Dx NetOps OneClick?
Both of the values sysuptime and mguraduptime are taken directly from the device. In Spectrum we poll the device to pull the values as provided by the various vendor mibs the device uses. We can verify the raw values using snmpGet on the oid to the device or by using a 3rd party snmp walker such as sapwalk.
the mib/sapwalk shows sysuptime as
1.3.6.1.2.1.1.3.0 , TimeTicks , 16143299
mguardUpTime as
1.3.6.1.4.1.15450.2.4.5.7.0 , OctetString , 232 days, 23:31
MGUARDB-MIB is vendor specific. We show it in the mib as follows.
mguardUpTime is not mapped out of the box and we have zero information documented on how it is calculated and what it represents. How it is calculated would need to be verified with the vendor. The value is the same as "Uptime" on the device which represents how long since the device was last rebooted. sysUptime refers to when the SNMP agent was last restarted on the device so the 2 values represent 2 different metrics and will be different if the SNMP agent has been rebooted after the device was last rebooted.
How to use the sapwalk tool to pull mib information from the device.
mguardUptime device attribute shows the same value as uptime on the device. We do not show Uptime in Spectrum out of the box as it is not always available in the mibs e.g. it is also in the host-resources.mib which not all vendors use. In the host-resources.mib it is referred to as hrSystemUptime and is defined as follows:
hrSystemUptime OBJECT-TYPE
SYNTAX TimeTicks (0 .. 4294967295)
ACCESS read-only
STATUS current
DESCRIPTION
"The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system."
::= { hrSystem 1 }
-- 1.3.6.1.2.1.25.1.1
sysUpTime is defined as follows:
sysuptime is pulled from the mib and that is what we are showing in spectrum. It defines how long the SNMP agent has been up without initializing it. From mibtools we can poill the device to compare these values.
the info button shows it as
sysUpTime OBJECT-TYPE
SYNTAX TimeTicks (0 .. 4294967295)
ACCESS read-only
STATUS current
DESCRIPTION
"The time (in hundredths of a second) since the network management portion of the system was last re-initialized."
::= { system 3 }
-- 1.3.6.1.2.1.1.3