[Please always include the list.] > From: diogo vargas marcos [mailto:[EMAIL PROTECTED] > Sent: Saturday, May 10, 2008 10:20 AM
> When I asked about : > > > How can I get the > HOST-RESOURCES-MIB::hrSystemUptime.0 value from > net-snmp-5.4.1-3.win32 ? > > and you wrote : > > > snmpget -v 1 -c public localhost > HOST-RESOURCES-MIB::hrSystemUptime.0 > > Thats' s ok but in a default instalation of NET-SNMP it > doensn't come with HOST-RESOURCE-MIB !!! Oops! I meant: C:\> snmpget -v 1 -c public localhost SNMPv2-MIB::sysUpTime.0 I get: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (30557) 0:05:05.57 So it translates events for you. > If you type in a windows console : snmpget -v 1 -c public > localhost HOST-RESOURCES-MIB::hrSystemUptime.0 > youll get nothing in answer ! Yep - my bad. > The problem with timeticks is (for a Windows SNMP agent) : > > > HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (4317390) > 11:59:33.90. > > > is wrong because my machine has been running for 4317.390 > seconds and not 43173.90 seconds > So the value 11:59:33.90 is complety wrong. > > The agent has to send me in value in 1/100 seconds. > The agent is sending me a value in 1/1000 seconds. > > did you understand ? Yes. I can't do anything about the Windows agent - please try the above. HTH, Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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