I wanted to access SNMP data on my Netgear ReadyNAS Duo V2. However, although I enabled SNMP in the GUI and set the corerct community string and IP address for the allowed hosts, I was unable to connect. I logged in via SSH and checked the file “/etc/snmp/snmpd.conf”.
There was only one line in that file and for me it looked correct (IP 192.168.0.100 was the IP address of the machine from where I wanted to access the device via SNMP):
1 |
com2sec readonly 192.168.0.100 public |
After some investigation I learned that you might need to configure SNMP via the command “snmpconf -g basic_setup”. After I did that I ended up with a much bigger “/etc/snmp/snmpd.conf” file. In the end the following line was the important one which fixed the connection:
1 |
rocommunity public 192.168.0.100 |
After a restart of the SNMP service with “service snmp restart” I was able to connect to the device and list all supported SNMP IDs:
1 |
snmpwalk -v 1 -c public 192.168.0.100 |
Unfortunately I then saw that this device only supports a very small subset of other Netgear NAS devices and I was unable to read parameters like fan status, temperature, disk status etc.