Hi, MF
 Thanks for your explanation.
Originally I thought the variables listed in the MIB files are all
supported by the agent. Seems this assumption is not correct.


Thanks a lot!

-----Original Message-----
From: ext Magnus Fromreide [mailto:[email protected]] 
Sent: Thursday, December 17, 2009 4:33 PM
To: Lv, Bo (EXT-Other - CN/Hangzhou)
Cc: ext Dave Shield; net-snmp-coders
Subject: Re: No Such Object available --snmpget problem

On Thu, 2009-12-17 at 15:48 +0800, Lv, Bo (EXT-Other - CN/Hangzhou)
wrote:
> Hello, Dave
> 
> I've a problem in running snmpget in a windriver linux server.
> 
> snmpget -v 2c -c public -M /usr/share/snmp/mibs/  localhost
> ucdDemoPublicString.0
> 
> UCD-DEMO-MIB::ucdDemoPublicString.0 = No Such Object available on this
> agent at this OID
> 
> What's strange to me is, this variable is listed in the mib file:
> 
> /usr/share/snmp/mibs/UCD-DEMO-MIB.txt:ucdDemoPublicString OBJECT-TYPE
> 
> Why the error occurred?

Supposedly because your agent doesn't provide that variable.

The MIB's describe possible variables, just because a variable is
declared in some MIB doesn't mean that it is provided by any agent.

> I used another variable for comparison: 
> 
> snmpget -v 2c -c public -M /usr/share/snmp/mibs/ localhost sysUpTime.0
> 
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (116446) 0:19:24.46
> 
> It works fine.

Well, here I suppose that your agent do provide the variable and that is
why it is working.

/MF


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to