Re: I am struggling to understand the snmptranslate command
Jeff Silverman <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dave Shield wrote
>>
>> [jeffs@black ~]$ snmpwalk -v 2c -Le -c public localhost .1.3.6.1.2.1
>> SNMPv2-MIB::sysDescr.0 = STRING: Linux black 2.6.15-1.2054_FC5 #1 Tue
>> Mar 14 15:48:33 EST 2006 i686
>> :
>> SNMPv2-MIB::sysORUpTime.8 = Timeticks: (20) 0:00:00.20
>> HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (857648) 2:22:56.48
>> HOST-RESOURCES-MIB::hrSystemUptime.0 = No more variables left in this
>> MIB View
>
>
>
> Please see the FAQ entry:
> I can see the system group, but nothing else. Why?
http://net-snmp.sourceforge.net/docs/FAQ.html#I_can_see_the_system_group__but_nothing_else___Why_
>
> This is definitely a problem with the access control settings -
> nothing to do with
> snmptranslate.
>
>> I looked at the snmpd.conf file and I found and changed some things,
>> which made things worse.
>
> "Changed some things" isn't particularly helpful in knowing what's
> going wrong.
> If you're reporting problems, it's worth being as exact as possible.
> The more we
> have to guess, the more we won't bother :-)
Quite right - I apologize. I changed the rocommunity and rwcommunity
strings to verify that the snmpd was looking at the right snmpd.conf
file, and it is.
> Start as simple as possible.
> Create an snmpd.conf file containing *just*
>
> rocommunity cvv_test
>
> and run the agent using that.
> Can you see the system group ("snmpgetnext -v 2c -c cvv_test
> {agent_host} system") ?
Yes.
> Can you see other groups ("snmpgetnext -v 2c -c cvv_test
> {agent_host} ip") ?
Yes. In fact, I can do the following which is 'way cool:
[jeffs@black ~]$ snmpwalk -v 2c -c cvv_test localhost | wc -l
2055
[jeffs@black ~]$
There is so much interesting stuff, for example, there appears to be a
dump of the RPM database in there:
HOST-RESOURCES-MIB::hrSWInstalledName.697 = STRING: "rpm-build-4.1.1-1.8x"
...
HOST-RESOURCES-MIB::hrSWInstalledDate.697 = STRING: 2005-7-6,23:54:20.0,-7:0
so I can do my software audits using SNMP. Whoo hoo!
>
> If that works (and *only* if it works), add the 192.168.2.0/24
> limitation, and try again.
>
> Dave
I owe you a beer, at least. Somehow I will get one to you.
Jeff
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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