getUpTime Problem.

This is a discussion on getUpTime Problem. within the SNMP Users forums, part of the Networking and Network Related category; hi all, I have written a subagent where i want to get the System Up time.I have used the ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-04-2005
chinmay bhat
 
Posts: n/a
Default getUpTime Problem.

hi all,

I have written a subagent where i want to get the System Up time.I have
used the function u_long myTime = netsnmp_get_agent_uptime();(I think
this is the best way.)

but the problem is the myTime value i am getting is 24678457, that is ,
Tue Oct 13 20:37:37 1970.but i dont think thats the correct value.

Can anybody tell me what might have gone wrong? is there any other method
to get System Up time?


regards
Chin

__________________________________________________ _______________
Claim your space online! http://www.msn.co.in/spaces Share your world for
free!



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0