Thanks for that. But , what I am looking for is computing the sysUpTime in
Linux. Any API?
________________________________
From: Wes Hardaker <harda...@users.sourceforge.net>
To: Pete Snmp <petes...@yahoo.com>
Cc: "d.t.shi...@liverpool.ac.uk" <d.t.shi...@liverpool.ac.uk>;
"net-snmp-users@lists.sourceforge.net" <net-snmp-users@lists.sourceforge.net>
Sent: Wednesday, February 27, 2013 2:48 PM
Subject: Re: Regarding SysUpTime on LINUX
Pete Snmp <petes...@yahoo.com> 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users