Re: sysUptime uses gettimeofday

2018-04-03 Thread Pushpa Thimmaiah
Thank you Stuart Henderson. On Tue, Apr 3, 2018 at 3:51 PM, Stuart Henderson wrote: > On 2018/04/03 15:25, Pushpa Thimmaiah wrote: > > Thank you Magnus Fromreide, Anders Wallin and Stuart Henderson for the > reply. > > > > Stuart Henderson, > > > > I am using net-snmp.5.7.1. Object sysUpTime

Re: sysUptime uses gettimeofday

2018-04-03 Thread Pushpa Thimmaiah
Thank you Magnus Fromreide, Anders Wallin and Stuart Henderson for the reply. Stuart Henderson, I am using net-snmp.5.7.1. Object sysUpTime uses API netsnmp_get_agent_uptime() and they inturn uses gettimeofday(). If time on device changes after snmpd starts then sysUpTime value is confusing. Sc

Re: sysUptime uses gettimeofday

2018-03-28 Thread Anders Wallin
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 syst

Re: sysUptime uses gettimeofday

2018-03-28 Thread Magnus Fromreide
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 reaso