Dave

Thanks for the correction.   The following are what found.

DS> What *can* you see on the Net-SNMP agent?
TV>> When I perform a general snmpwalk on .1 I get these groups: SNMPv2-MIB, IF-MIB, RFC1213-MIB, IP-MIB, TCP-MIB, UDP-MIB

DS> Did you compile the agent yourself? If so, what "configure" line did you use?
TV>> I did not compile/configure the other four Solaris systems so I do not have any information.  I did, however, compiled net-snmp5.0.10.1 on the testbed myself.  I only specified the general configure "./configure" with no other option.  Base on your question/response, I think you've pointed out my novice mistake.  Are there workarounds for novice mistake like this or when you're working in an environment where installation of third-party software is very strict (adding files and modifying config files are allowed, but installation of new software is restricted)?  I followed the instruction from README.solaris to add a net-snmp daemon executing HOST-RESOURCES-MIB (1.3.6.1.2.1.25) subtree and performed MIBS=+HOST-RESOURCES-MIB, but I guess this is not good enough.  Any suggestion is greatly appreciated.

vr/
Tam  


Dave Shield <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

12/02/2005 01:24 AM

To
Tam Vo <[EMAIL PROTECTED]>
cc
net-snmp-users@lists.sourceforge.net
Subject
Re: Unable to get information from HOST-RESOURCES-MIB





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