Power Measurements in Rennes
From Grid5000
Author:
Contents |
Introduction
This tutorial briefly explains how to access the power monitoring hardware installed on the parapluie cluster in Rennes. This cluster compraises 40 HP Proliant DL165 G7 nodes which are powered by six APC AP7921 power distribution units (PDUs). Each PDU hosts from 6 to 7 nodes and exports coarse grained power monitoring information using the Simple Network Management Protocol (SNMP). In particular, the aggregated power consumed by the servers on each PDU can be measured. Power measurements per outlet are not supported.
The rest of this tutorial is structured as follows. First, the system information is given. This includes the node/PDU hostnames and the corresponding mappings of nodes to PDUs. Afterwards, the installation process is described. Finally, the process of information gathering is presented.
System Information
Node hostnames:
parapluie-Node_ID.rennes.grid5000.fr
PDU hostnames:
parapluie-pdu-PDU_ID.rennes.grid5000.fr
Mapping of nodes to PDUs:
| PDU IDs | Node IDs |
| 1 | 1, 2, 3, 4, 5, 6 ,7 |
| 2 | 15, 16, 17, 18, 19, 20 |
| 3 | 8, 9, 10, 11, 12, 13, 14 |
| 4 | 34, 35, 36, 37, 38, 39, 40 |
| 5 | 27, 28, 29, 30, 31, 32, 33 |
| 6 | 21, 22, 23, 24, 25, 26 |
Installation
Management Information Base (MIB) Download and Transfer (local)
Download the APC MIB (you want it installed in order to see some human readable output later) to your local machine:
$ wget ftp://ftp.apc.com/apc/public/software/pnetmib/mib/403/powernet403.mib
Transfer it to the frontend:
$scppowernet403.miblogin@frontend.rennes.grid5000.fr:~/
Reservation and Image Deployment (frontend)
Connect to the frontend:
$sshlogin@frontend.rennes.grid5000.fr
Create a reservation (e.g., on the paradent cluster):
$ oarsub -I -t deploy -l {"cluster='paradent'"}nodes=1,walltime=3
Deploy some NFS-enabled image:
$ kadeploy3 -e squeeze-x64-nfs -f $OAR_NODE_FILE
SNMP Package Installation and Configuration (image)
Login to the deployed node as root:
$sshroot@node.rennes.grid5000.fr
Update the repository information:
$ apt-get update
Install the SNMP packages:
$ apt-get install snmp snmp-mibs-downloader
Create the MIBs directory:
$ mkdir /usr/share/snmp/mibs
Copy the previously downloaded APC MIB file to the MIBs directory:
$cp/home/login/powernet403.mib /usr/share/snmp/mibs/
Update the SNMP client configuration:
$ echo "mibs PowerNet-MIB" >> /etc/snmp/snmp.conf
Accessing the Power Consumption and other Information
The following command will query the rPDUIdentDevicePowerWatts.0 variable of the specified PDU using the public community string and return the current power consumption:
$snmpget-v 1 -c public parapluie-pdu-PDU_ID.rennes.grid5000.fr rPDUIdentDevicePowerWatts.0
Moreover, all the available variables can be displayed by walking through the enterprises root object:
$snmpwalk-v 1 -c public parapluie-pdu-PDU_ID.rennes.grid5000.fr enterprises
Links
More information about SNMP can be found on: Net-SNMP
