Originally posted by: gxw
Hi,
I've found some hits on this general topic but none are drawn to a satisfactory conclusion, and certainly none specifically following this through on SNMPv1.
Basically what I'm trying to do is get my AIX 5.3 system monitored by a remote system which talks SNMPv1. I switched back to v1 using "snmpv3_ssw -1", and I have made some modifications to the snmpd.conf to restrict access to just that remote server and the server itself. The snmpd.conf looks like:
community
public <remote-ip> 255.255.255.255 readOnly community
public 127.0.0.1 255.255.255.255 readWrite
After stopping and starting the daemons I found that the snmp requests were working OK, but I was not seeing any of the monitoring data I needed, which I believe is part of HOST-RESOURCES-MIB and the acid test for me was the following:
/usr/sbin/snmpinfo -v -m dump -c
public -h localhost| grep ^hr
This would produce nothing, instead of the 3000 lines I was expecting.
A remote snmpwalk from the monitoring system produced similar results, for example:
/usr/sfw/bin/snmpwalk -v 1 -t 60 -c
"public" <remote-ip> hrProcessorLoad
again produced nothing.
I have found some error messages in various logs suggesting that the dpid2, hostmibd and aixmibd daemons might not be talking to each other properly, and on a complete whim I decided to try the following additional line in my snmpd.conf:
community
public <remote-ip> 255.255.255.255 readOnly *community
public <local-ip> 255.255.255.255 readOnly* community
public 127.0.0.1 255.255.255.255 readWrite
After stopping and starting the daemons, I found that it worked fine. The snmpinfo worked locally, and the snmpwalk worked remotely - I got all my hr data.
SO, the question is - why does the local snmpd.conf need it's own external inteface defined in a community line when I've seen nothing documented anywhere to suggest this is necessary?
Is there something else I'm not understanding about the way the snmpd, dpid2, hostmibd and aixmibd daemons communicate?
Any advice on this will be appreciated as I'm really struggling with this, although I have at least got something that works now. I just want to know why!