Maybe not the perfect answer, but this is what the FAQ says
"The system uptime (sysUpTime) returned is wrong!
-----------------------------------------------
Oh no it's not.
The defined meaning of 'sysUpTime' is
"the time ... since the *network management*
portion of the system was re-initialized."
In other words, when the snmp agent was started, not when the
system itself last booted. This latter information is available
in the Host Resources MIB as "hrSystemUpTime.0"
Note that even if the full Host Resources is not supported on
your system, it's worth configuring in the system portion using
'--with-mib-modules=host/hr_system'
and recompiling. This particular group is reasonably likely to work,
even if some of the other more architecture-specific groups don't.
"
ons 28 mars 2018 kl 11:10 skrev Magnus Fromreide <ma...@lysator.liu.se>:
> On Wed, Mar 28, 2018 at 12:49:48PM +0530, Pushpa Thimmaiah wrote:
> > Hi All,
> >
> > I believed that sysUpTime is counter that increments every seconds. But
> In
> > net-snmp code ,
> > sysUpTime being calculated as difference between 'snmpd-starttime' and
> > 'current time' .
> >
> > I would like to know reason for sysUpTime been calculated as difference
> in
> > time instead of incremental-counter.
> > Is there any constraints ?
>
> sysUpTime is expressed in centiseconds.
> It is assumed that most snmp daemons ain't polled 100 times/s so doing it
> with increments would be inefficient as well as bad for accurancy.
>
> /MF
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders