Configure SNMP Service on Oracle Linux

Configure SNMP Service on Oracle Linux/CentOS/Red Hat

SNMP stands for Simple Network Management Protocol, It is use to collect the behaviors of Network Devices through IP and send the Network Devices Behaviors information's to NMS (Network Management System) for example: Open Manager, Zenoss and etc. The Ports of SNMP (Simple Network Management Protocol) are 161 udp and 162 udp.
Here we are configuring the SNMP (Simple Network Management Protocol) service on Oracle Linux 6.5, During the installation of Oracle Linux 6.5 SNMP (Simple Network Management Protocol) service has installed. To check the status of SNMP (Simple Network Management Protocol) service type the below command.

service snmpd status

how configure snmp service on linux
To Configure the SNMP (Simple Network Management Protocol) service edit the file "snmpd.conf" that available in directory "/etc/snmp/snmpd.conf" by use of vi editor.

vi /etc/snmp/snmpd.conf

configure snmp service on linux
Edit the below lines in file "snmpd.conf" and remove all inside the file before edit, you can also create new file "snmpd.conf" and replace with the original file "snmpd.conf". Replace your Network addresses and Community name that you configure in Network Management System "NMS" means Open Manager, Zenoss and etc. you can also set specific Network Management System "NMS" IP for example: 172.20.1.89 not complete network for example: 172.20.1.0/16.

##      sec.name  source      community

com2sec local     localhost   whatsourclearanceclarence

com2sec mynetwork 10.101.101.0/8   public

com2sec mynetwork 172.10.1.0/16   community name

com2sec mynetwork 172.10.2.0/16   community name

com2sec mynetwork 172.16.3.0/16   community name

com2sec mynetwork 172.10.2.0/16   public

##  group.name  sec.model  sec.name

group MyROGroup v1         local

group MyROGroup v1         mynetwork

group MyROGroup v2c        local

group MyROGroup v2c        mynetwork

##         incl/excl subtree  mask

view all   included  .1        80

##             context sec.model sec.level prefix  read   write  notif

access MyROGroup ""      any       noauth  exact    all    none   nonei

# Allow Systems Management Data Engine SNMP to connect to snmpd using SMUX

smuxpeer .1.3.6.1.4.1.674.10892.1 

how configure snmp service on redhat

To Enable and Start the SNMP (Simple Network Management Protocol) service permanently on second, third, fourth and fifth Linux interface levels type the below command.
chkconfig --level 2345 snmpd on
service snmpd start
configure snmp service on redhat
To check the status of SNMP (Simple Network Management Protocol) service type the below command.
service snmpd status
how configure snmp service on centos
This is complete configuration of SNMP (Simple Network Management Protocol) on client machine of Linux Base Operating System. In our case the machine is Oracle Linux 6.5. Oracle Linux compiled from Red Hat Enterprise Linux source code therefore you can use this SNMP (Simple Network Management Protocol) configuration on Red Hat and CentOS Linux (Community Supported Means Open Source). 
Thanks for read this Article

Comments