Sun Cluster 3.2 SNMP Interface
By hhnguyen on Feb 12, 2007
System administrators in data centers usually use their corporate enterprise management system/tools to monitor and manage all computer systems, include both hardware and software. System management tools, such as HP Openview, BMC Patrol, IBM Tivoli and SunMC(Sun Management Center) all provide SNMP support in order to monitor and manage the heterogeneous computer environment in data centers.
Like many other computer system Sun Cluster also provides SNMP management interface. There are two SNMP interfaces provided in Sun Cluster 3.2. One is for the cluster events, another one is for the cluster objects and their status changes.
SNMP Interface for Cluster Event
The cluster event SNMP interface is newly added to Sun Cluster 3.2. SNMP module can be enabled on any cluster nodes without rely on any other SNMP agent infrastructure. Since all cluster nodes get the same cluster events, usually SNMP event module only need to be enabled on one of the cluster nodes. The event SNMP interface includes
- Store upto 50 most recent cluster events to MIB table when SNMP module is enabled on a node.
- Send SNMP traps to any hosts that you want for the events with warning or high severities.
The list of cluster event severities from low to high is
The default port number for the event SNMP module is 11161, and the default port for the SNMP traps is 11162. They can be changed by modifying the Common Agent Container property file, which is /etc/cacao/instances/default/private/cacao.properties. The event MIB OID is 220.127.116.11.18.104.22.168.80. The management user interface for the event SNMP is added to both GUI(Sun Cluster Manager) and new CLI. Here are a couple of screen snapshots for the GUI.
The new commands for SNMP interface are
- clsnmpmib: Administer SNMP MIBs
- clsnmphost: Administer hosts for SNMP traps
- clsnmpuser: Administer SNMP users(specific for SNMP V3 protocol).
Here are a couple of examples of using the above commands.
Enable event MIB on the current cluster node
# clsnmpmib enable event
Add a host to receive SNMP traps for the cluster events with warning or higher severity.
# clsnmphost add
SNMP Interface for Cluster objects
SNMP interface for the Cluster objects, such as Nodes, Resource Groups, Quorums and their corresponding status is provided via Sun Cluster-SunMC integration module. The integration module is installed by default on all cluster nodes.
To enable the module on a cluster node, SunMC agent infrastructure has to be installed and running on the node. After SunMC agent starts on the node, Sun Cluster-SunMC integration module can be loaded and enabled via SunMC management console. SunMC server and console can be installed on one of the cluster node or another system that is supported by SunMC(refer to SunMC User Guide for more detail). Similar to the event SNMP module, Sun Cluster-SunMC module only need to be enabled on one of the cluster node if you only want to get Cluster SNMP MIB data and traps. The following left side picture shows SunMC console UI where to load and enable the Sun Cluster-SunMC module. The right side screen snapshot is the SunMC console UI to monitor the configuration and status of cluster objects. Sun Cluster-SunMC SNMP module MIB OID is 22.214.171.124.126.96.36.199.188.8.131.52
SunMC agent running on a cluster node will send out SNMP traps to SunMC server whenever there are any object status changes, such as Cluster Resource Group online/offline, managed/unmanaged, node on/off and etc. The SNMP traps also can be sent directly from SunMC agent to any other hosts by adding the secondary trap destination via SunMC CLI es-trapdest. For example, the following statement is to add myHost to receive SunMC SNMP traps from SunMC agent via port 11162.
# /opt/SUNWsymon/sbin/es-trapdest -c agent -a myHost 11162
(note: SunMC agent has to be restarted to take effect of above setting).
Solaris Cluster Engineering