Re: Regarding SysUpTime on LINUX

Pete Snmp <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks for that. But , what I am looking for is computing the sysUpTime in Linux. Any API? 




________________________________
 From: Wes Hardaker <[email protected]>
To: Pete Snmp <[email protected]> 
Cc: "[email protected]" <[email protected]>; "[email protected]" <[email protected]> 
Sent: Wednesday, February 27, 2013 2:48 PM
Subject: Re: Regarding SysUpTime on LINUX
 
Pete Snmp <[email protected]> writes:

> Any suggestions on how to compute the sysUpTime on Linux?
> I beleive this is Agent uptime than 'System'.

SNMPv2-MIB::sysUpTime is indeed the uptime of the agent:

  DESCRIPTION   "The time (in hundredths of a second) since the
            network management portion of the system was last
            re-initialized."

If you want the system uptime, then you want this one instead:

HOST-RESOURCES-MIB::hrSystemUptime
hrSystemUptime OBJECT-TYPE
  -- FROM       HOST-RESOURCES-MIB
  SYNTAX        TimeTicks
  MAX-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."

-- 
Wes Hardaker
SPARTA, Inc.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.