For troubleshooting or hardware monitoring, it may be useful to enable SNMP on the servers in your Oracle Virtual Compute Appliance. While the tools for SNMP are available, the protocol is not enabled by default. This section explains how to enable SNMP with the standard Oracle Linux and additional Oracle Virtual Compute Appliance Management Information Bases (MIBs).
Enabling SNMP on the Management Nodes
Using SSH and an account with superuser privileges, log into the management node.
The data center IP address used in this procedure is an example.
# ssh root@10.100.1.101 root@10.100.1.101's password: root@ovcamn05r1 ~]#
Locate the necessary rpm
packages in the
mounted directory /nfs/shared_storage
,
which resides in the MGMT_ROOT
file
system on the Sun ZFS Storage Appliance 7320. The following packages are
part of the Oracle Virtual Compute Appliance ISO image downloaded and unpacked
on the shared storage during the
update
process:
ovca-snmp-0.9-1.el6.x86_64.rpm
net-snmp-libs-5.5-44.0.1.el6.x86_64.rpm
net-snmp-5.5-44.0.1.el6.x86_64.rpm
lm_sensors-libs-3.1.1-17.el6.x86_64.rpm
net-snmp-utils-5.5-44.0.1.el6.x86_64.rpm
Install these packages by running the following command:
# rpm -ivh ovca-snmp-0.9-1.el6.x86_64.rpm net-snmp-libs-5.5-44.0.1.el6.x86_64.rpm \ net-snmp-5.5-44.0.1.el6.x86_64.rpm lm_sensors-libs-3.1.1-17.el6.x86_64.rpm \ net-snmp-utils-5.5-44.0.1.el6.x86_64.rpm
Create an SNMP configuration file:
/etc/snmp/snmpd.conf
.
This is a standard sample configuration:
rocommunity public
syslocation MyDataCenter
dlmod ovca /usr/lib64/ovca-snmp/ovca.so
Enable the
snmpd
service.
# service snmpd start
If desired, enable the
snmpd
service on boot.
# chkconfig snmpd on
Open the SNMP ports on the firewall.
# iptables -I INPUT -p udp -m udp --dport 161 -j ACCEPT # iptables -I INPUT -p udp -m udp --dport 162 -j ACCEPT # iptables-save > /etc/sysconfig/iptables
SNMP is now ready for use on this management node. Besides the standard Oracle Linux MIBs, these are also available:
ORACLE-OVCA-MIB::ovcaVersion
ORACLE-OVCA-MIB::ovcaSerial
ORACLE-OVCA-MIB::ovcaType
ORACLE-OVCA-MIB::ovcaStatus
ORACLE-OVCA-MIB::nodeTable
Usage examples:
# snmpwalk -v 1 -c public -O e 130.35.70.186 ORACLE-OVCA-MIB::ovcaVersion # snmpwalk -v 1 -c public -O e 130.35.70.111 ORACLE-OVCA-MIB::ovcaStatus # snmpwalk -v 1 -c public -O e 130.35.70.111 ORACLE-OVCA-MIB::nodeTable
Repeat this procedure on the second management node.
Enabling SNMP on the Compute Nodes
On Oracle Virtual Compute Appliance compute nodes,
net-snmp
and
net-snmp-utils
are already installed at
the factory, but the SNMP service is not enabled or
configured.
Using SSH and an account with superuser privileges, log into the compute node. It can be accessed through the appliance internal management network.
ssh root@192.168.4.5 root@192.168.4.5's password: root@ovcacn27r1 ~]#
Create an SNMP configuration file:
/etc/snmp/snmpd.conf
and make sure this
line is included:
rocommunity public
Enable the
snmpd
service.
# service snmpd start
SNMP is now ready for use on this compute node.
If desired, enable the
snmpd
service on boot.
# chkconfig snmpd on
Repeat this procedure on all other compute nodes installed in your Oracle Virtual Compute Appliance environment.