Dell DX6004S DX Cluster Services Node Installation and Configuration Guide - Page 29

Gathering SNMP Statistics, 4.5.1. SNMP Command Examples

Page 29 highlights

4.5. Gathering SNMP Statistics The CSN includes an aggregate SNMP MIB called CARINGO-CASTOR-MGR-MIB with operational and health status for all nodes in the associated DX Storage cluster, including: • Cluster stats like total available capacity • Cluster-wide settings like a cluster shutdown • Individual node statistics including IP address and status • Node-level actions like shutdown and retire • Volume statistics including used and available capacity, operational activity and hardware status information The MIB is located in /usr/share/snmp/mibs. The SNMP agent collects statistics from the DX Storage cluster at a default interval of 5 minutes. SNMP collection is only enabled on Primary CSNs. The collection interval can be configured by overriding the default for the collectormain.sh line of the /etc/cron.d/caringo_castormgr_snmp_collector file to any frequency greater than 2 minutes. If queried, SNMP will report errors after the DX Storage nodes come online for the first time until data is available when the first configured collection period has passed. DX Storage clusterState may return as 'Unknown' or change frequently right after a cluster wide reboot or start until all nodes are online and reporting their status. 4.5.1. SNMP Command Examples The following example shows an snmpwalk command that will return all results for the CASTORMGR-MIB: snmpwalk -v 2c -c public -m +CARINGO-CASTOR-MGR-MIB 192.168.1.101 caringo.castorMgr The following example demonstrates an snmpget command that retrieves the total GB of available capacity for the cluster: snmpget -v 2c -c public -m +CARINGO-CASTOR-MGR-MIB 192.168.1.101 caringo.castorMgr.stats.totalGBAvailable The following example shows an snmpset command that sends a shutdown command to the 1st node in the indexed list for the cluster: snmpset -v 2c -c private -m +CARINGO-CASTOR-MGR-MIB 192.168.1.101 caringo.castorMgr.nodes.castorNodesActionTable.nodeActionEntry. nodeShutdown.1 s shutdown The following example shows an snmptable command that retrieves the data for all node-specific actions: snmptable -v2c -cpublic -OQs -m +CARINGO-CASTOR-MGR-MIB localhost caringo.castorMgr.nodes.castorNodesActionTable Copyright © 2010 Caringo, Inc. All rights reserved 26 Version 2.0 December 2010

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35

Copyright © 2010 Caringo, Inc.
All rights reserved
26
Version 2.0
December 2010
4.5. Gathering SNMP Statistics
The CSN includes an aggregate SNMP MIB called CARINGO-CASTOR-MGR-MIB with operational
and health status for all nodes in the associated DX Storage cluster, including:
Cluster stats like total available capacity
Cluster-wide settings like a cluster shutdown
Individual node statistics including IP address and status
Node-level actions like shutdown and retire
Volume statistics including used and available capacity, operational activity and hardware status
information
The MIB is located in /usr/share/snmp/mibs. The SNMP agent collects statistics from the DX
Storage cluster at a default interval of 5 minutes. SNMP collection is only enabled on Primary CSNs.
The collection interval can be configured by overriding the default for the collectormain.sh line of
the /etc/cron.d/caringo_castormgr_snmp_collector file to any frequency greater than 2 minutes. If
queried, SNMP will report errors after the DX Storage nodes come online for the first time until data
is available when the first configured collection period has passed. DX Storage clusterState may
return as 'Unknown' or change frequently right after a cluster wide reboot or start until all nodes are
online and reporting their status.
4.5.1. SNMP Command Examples
The following example shows an snmpwalk command that will return all results for the CASTOR-
MGR-MIB:
snmpwalk -v 2c -c public -m +CARINGO-CASTOR-MGR-MIB 192.168.1.101
caringo.castorMgr
The following example demonstrates an snmpget command that retrieves the total GB of available
capacity for the cluster:
snmpget -v 2c -c public -m +CARINGO-CASTOR-MGR-MIB 192.168.1.101
caringo.castorMgr.stats.totalGBAvailable
The following example shows an snmpset command that sends a shutdown command to the 1st
node in the indexed list for the cluster:
snmpset -v 2c -c private -m +CARINGO-CASTOR-MGR-MIB 192.168.1.101
caringo.castorMgr.nodes.castorNodesActionTable.nodeActionEntry.
nodeShutdown.1 s shutdown
The following example shows an snmptable command that retrieves the data for all node-specific
actions:
snmptable -v2c -cpublic -OQs -m +CARINGO-CASTOR-MGR-MIB localhost
caringo.castorMgr.nodes.castorNodesActionTable