problem about mibs

"Fan Zhang" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.