This guide covers the installation and management of SNMP (Simple Network Management Protocol) for ClearOS and ClearBOX. It is intended to be a guide for the implementation of SNMP on ClearOS as well as a framework for the subsequent module in ClearOS 6.x.
To install SNMP run the following in ClearOS from command line:
yum -y install net-snmp net-snmp-utils
To run the SNMP daemon run the following from command line in 6.x:
service snmpd start
To stop the SNMP daemon run the following in 6.x:
service snmpd stop
To run the SNMP daemon run the following from command line in 7.x:
systemctl start snmpd.service
To stop the SNMP daemon run the following in 7.x:
systemctl stop snmpd.service
Once the service is installed and started, test it by running the following:
snmpwalk -Os -c public -v 1 localhost system
This should show some basic information about the system including:
sysDescr.0 = STRING: Linux systemname.example.com 2.6.32-220.13.1.v6.x86_64 #1 SMP Fri Apr 20 09:26:16 MDT 2012 x86_64 sysUpTimeInstance = Timeticks: (18563) 0:03:05.63 sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf) sysName.0 = STRING: systemname.example.com