Red hat linux

How To Install and Configure SNMP on RHEL 7 or CentOS 7

SNMP stands for “Simple Network Management Protocol”, it can be utilized to monitor any devices that support snmp, few of the devices are server, router, network printers, firewalls. SNMP can monitor a variety of parameters for these devices such as server performance, network usage, disk utilization.

Check Package
Check if the package is already installed, to check package installation status, run the command;

Install Package
After checking the package installation status, if the package is not installed. Install the package to install run the command;
Verify Installation
After installing the net-snmp packages verify if the package is installed, to check package installation status, run the command;
SNMP – Configuration File
Default configuration file that is configured as per the below. To display current configuration without comments and lines non-blank lines, run command;
Firewall Configuration
SNMP protocol works on UDP port “161” and this port needs to be opened in order to listen and scan the report from remote servers and for latest version of snmp service supports running on TCP port which is again on “161”.
Firewall Configuration – Open UDP Port
After installing and checking the default configuration, the next step that needs to be done is to open firewall port, snmp protocol run on UDP port 161.
Firewall Configuration – Reload
Reload the firewall configuration.
Firewall Configuration – List
After reloading firewall daemon, list the current rules set.
snmpwalk – localhost Query
After configuring the firewall, you can go ahead and test the snmp query data on the localhost it should be able to retrieve the OID values when you run. To retrieve the information run the command;
snmpwalk – Remote Query
To query from a remote client to retrieve the OID values when you run. To retrieve the information run the command; in this case we are querying from a windows machine.

Leave a Reply

Your email address will not be published. Required fields are marked *