On Thu, 2005-12-01 at 11:36 -0800, Tam Vo wrote:

> I thought mib-2 has it own OID of 1.3.6.1.2.1.1

You thought wrong:

    $ snmptranslate -On -IR mib-2
    .1.3.6.1.2.1
    ]$ snmptranslate -Of .1.3.6.1.2.1.1
    .iso.org.dod.internet.mgmt.mib-2.system



> I shut down both Sun's agent 
>         /etc/rc3.d/S76snmpdx stop 
>         /etc/rc3.d/S77dmi stop 
> 
> Then ran the Net-SNMP agent by executing 
>         cd /usr/local/sbin 
>         ./snmpd -d 
> 
> a)  Can you query it at all (e.g. for the system group) 
>         Yes, it returns all the system data without any error 

Good.


> b)  Can you query it for the HostRes information ? 
>         No, it gave me the "no such variable in this MIB error.

In which case, it looks as if the version of the Net-SNMP agent
that you're working with doesn't include Host Resources support.
Which would tend to explain why you can't get it working :-)

Either that, or the access control doesn't allow you access to it
(which would have the same general effect).


What *can* you see on the Net-SNMP agent?
If you do a full walk on .1, what general groups are returned?
(You don't need to list the full output - just indicate the first
entry in each related group.  Such groups tend to share a common
prefix, so look for where this prefix changes).



> The interesting thing is that four of my other Solaris 8/10 systems
> (net-snmp v5.1.1 with the Sun' agents) exhibit the exact same
> behavior.  Is there some settings that I should turn on/off to allow
> access to HOST-RESOURCE-MIB for Solaris OS?

The Net-SNMP agent needs to include the Host Resources support
when it's first compiled[1].  Did you compile the agent yourself?
If so, what "configure" line did you use?
   If you're using a pre-compiled version, where did you obtain
this from?


Dave

[1] Please - can people not muddy the waters by talking about
    dynamic loading just yet.  I'm trying to keep things as
    simple as possible for now.



-------------------------------------------------------
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-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