Re: Regarding SysUpTime on LINUX
Pete Snmp writes: > Thanks for that. But , what I am looking for is computing the > sysUpTime in Linux. Any API? You mean you want to do it outside of SNMP? You can always go look through the code to find it. See the get_uptime() code in snmplib/system.c -- 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
Re: Regarding SysUpTime on LINUX
Thanks for that. But , what I am looking for is computing the sysUpTime in Linux. Any API? From: Wes Hardaker To: Pete Snmp Cc: "[email protected]" ; "[email protected]" Sent: Wednesday, February 27, 2013 2:48 PM Subject: Re: Regarding SysUpTime on LINUX Pete Snmp 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
Re: Regarding SysUpTime on LINUX
Pete Snmp 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 SYNTAXTimeTicks MAX-ACCESSread-only STATUScurrent 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
