On Sat, 2005-12-31 at 11:18 +0530, Krishnaprasad wrote:
> Then the output of this progam is: Ret
> OID:1.3.6.1.2.1.1.3.0,Type:snmp.SNMPTimeTicks,Value:75941
> But if we run the snmpcommand as "snmpget -c public -v 2c
> localhost .1.3.6.1.2.1.1.3.0",  i got the systemuptime  value
> correctly.(Timeticks: (75941) 0:18:58.21).

Then your program is working correctly.
You are retrieving the same value (75941) in each case.

The only difference is that the Net-SNMP library is converting
this value into a broken-down time representation, while your
program is displaying it as a raw integer value.
  But the value itself is the same.

It's not clear whether you've written the Java classes
yourself, or are using another Java-based SNMP toolkit.
But in either case, extending this to understand TimeTicks
syntax is a question for the developers of that toolkit.
It's not really relevant to the Net-SNMP suite, so is
off-topic here.

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to