Wednesday 2 November 2022

How to Install SNMP Tool on CentOS 7



Monitor Routers, Firewalls and Linux Servers agentless, with the support of SNMP (Simple Network Management Protocol) tool. It is an internet protocol that can retrieve the operational statistics from the devices remotely. Its binary available in CentOS 7.

This article describes How to Install SNMP Tool on CentOS 7.
 
Step 1. SNMP Installation: Run the following command to install snmp binary:
 
[root@linuxcnf ~]# yum install net-snmp -y
Loaded plugins: fastestmirror
……………………..
Installed:
  net-snmp.x86_64 1:5.7.2-49.el7_9.2
 
Dependency Installed:
  lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.el7                                           net-snmp-agent-libs.x86_64 1:5.7.2-49.el7_9.2
 
Complete!
[root@linuxcnf ~]#
 
Step 2. Start SNMP Service: Run the following command to start the service and enable it to auto start on across reboot:
 
[root@linuxcnf ~]# systemctl enable snmpd --now
Created symlink from /etc/systemd/system/multi-user.target.wants/snmpd.service to /usr/lib/systemd/system/snmpd.service.
[root@linuxcnf ~]#
 
[root@linuxcnf ~]# systemctl status snmpd
snmpd.service - Simple Network Management Protocol (SNMP) Daemon.
   Loaded: loaded (/usr/lib/systemd/system/snmpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2022-10-22 08:53:14 IST; 11s ago
 Main PID: 17922 (snmpd)
   CGroup: /system.slice/snmpd.service
           └─17922 /usr/sbin/snmpd -LS0-6d -f
 
Oct 22 08:53:13 linuxcnf systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon....
Oct 22 08:53:14 linuxcnf snmpd[17922]: NET-SNMP version 5.7.2
Oct 22 08:53:14 linuxcnf systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon..
[root@linuxcnf ~]#
 
Done!!! SNMP installation done on CentOS 7.

No comments:

Post a Comment