Step # 3 : Make sure snmp server configured properly

Run the snmpwalk command to request for tree of information about network entity. In simple words, query the snmp server for your IP address (assigned to your eth0, eth1, lo interface by Linux):

Sample outputs:
ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.127.0.0.1 = 1
ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.192.168.0.3 = 2

If you see your IP address, proceed to step 4; else it is a time to configure snmp server as follows (by default RHEL and older Redhat v8/9 are not configured for snmp server for security reason):

Configure SNMP

(1) Edit the file /etc/snmp/snmpd.conf using a text editor such as vi, enter:

Change/Modify line(s) as follows:

Find the following Line:

Replace with (make sure you replace 192.168.0.0/24 with your network/subnet) the following lines:

Scroll down a bit and change :

Find Lines:

Replace with:

Again scroll down a bit and locate the following line:

Find line:

Replace with:

Again scroll down a bit and change the following line:

Find line:

Replace with:

access MyRWGroup \"\" any noauth exact all all none"); ?>

Scroll down a bit and change the following lines:

Find lines:

(configure /etc/snmp/snmp.local.conf)"); ?> Replace with (make sure you supply appropriate values): syscontact YourNameHere <[email protected]>"); ?>

For your convenient, here is my /etc/snmp/snmpd.conf file. Feel free to use this file. Make sure you make a backup of your existing file.

Start your snmp server and test it:

(a) Make sure when linux comes up snmpd always starts after the system reboot:

(b) Start the snmpd service:

(c) Finally, test your snmp server: