Hi,

I am writing a small application program  and the purpose is to
retrieve the value of a variable from a remote host.
If I use this line to read oid, it can get results.
read_objid(".1.3.6.1.2.1.1.1.0", anOID, &anOID_len);
the results is : SNMPv2-MIB::sysDescr.0=string: summit 4831-version........
but if I use the following line to read oid, it gets nothing and the
error information show up.
read_objid("sysDescr.0", anOID, &anOID_len);
The error information is like this:
SNMPv2-SMI::zeroDotZero.0=No such object was on this agent at the OID.

Could you please tell me the reason of this problem?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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

Reply via email to