Simple Network Management Protocol(SNMP) is used to control devices located in large network structures. From the temperature on the device to the users connected to the device, internet connection speed, and system uptime, various information is contained within the panel structure defined in SNMP.

You can review this link before installing.

Run the following command to start the installation. Let’s install SNMP and its tools.







You can then use the vi editor to configure SNMP with the following command.



The SNMP v1 and SNMP v2 protocols query with a community string and are “public” and “private varsayılan by default. It works from UDP port 161.

I’m adding Community to the file.

rocommunity Community_name

SysLocation “Ankara / Turkey” or “Techsoftcenter” as

syscontact email @ domain_address


com2sec readonly Snmp_ile_access_provider_Server_ipsi (eg Cacti) Community_name

SysLocation “Ankara / Turkey” or “Techsoftcenter” as

syscontact email @ domain_address

Then restart the service.

> Run the service snmpd restart command, a warning will come as follows.



So you are using the wrong method, you can do the work of that command with the following method, he says. So that command works the same way for versions under CentOS 7.

In CentOS 7, run> systemctl restart snmpd.service

Then run the following command to ensure that the service is running continuously.

> chkconfig snmpd on again You will receive a warning similar to the above. This command is used in versions under 7.



In CentoS 7, run> systemctl enable snmp.service

I hope it has been a useful article.