The previous post explained how to use IBM Active Energy Manager to obtain power usage data from servers and other datacenter infrastructure. This post will explain the steps necessary to collect this data within IBM Tivoli Monitoring (ITM).
For the purposes of this post, it is assumed that an existing ITM environment will be extended to collect power usage data. The installation and configuration of the base ITM components will not be covered.
This post is split into two sections Active Energy Manager and Tivoli Enterprise Monitoring Server. To allow ITM to monitor energy usage software must be installed on each of these components. The installation and configuration for each component is covered in the appropriate section. These components may reside on the same system or on multiple systems. In the case described in this post, the components are installed on separate systems.
Active Energy Manager
To allow the energy management features provided with Active Energy Manager to communicate with ITM, the following ITM components must be installed on the Active Energy Manager server:
- Monitoring Agent for Linux OS
- Active Energy Manager Agent
To install the Monitoring Agent for Linux OS, extract the installation media into a temporary directory. From the location where you extracted the media run the following command:
Accept the default installation directory /opt/IBM/ITM and either allow the installer to create the directory if it does not yet exist or reuse it if it does already exist.
Select the option to “Install products to the local host.”
The license agreement will be presented which you will need to accept to continue. At this point you may be asked to provide an encryption key. If you are asked to provide this, you must use the same encryption key as used by your TEMS installation. This is necessary to enable the agents and TEMS to communicate.
When presented with the operating system selection screen, select the option that matches the operating system version and architecture being used on your system, in our case this is “Linux Intel R2.6 (32 bit)”. Note that the menu items for the agent may vary dependent on the components shipped on the media you are using. In our case the correct option is option number 10.
You will now be presented with the product selection screen from which you should select the appropriate monitoring agent to install. In this case you need to choose the Monitoring Agent for Linux OS V06.21.00.00. The other types of agent listed (Agentless and Universal Agent) are not required.
Once the installation has completed successfully, you will be asked whether you wish to install additional products, choose No to complete the installation and exit the installation program.
The steps to install the Active Energy Manager Agent are the same as for the Monitoring Agent for Linux OS. You should run the install.sh script from the install media to start the installation program. At the product selection screen you should choose to install Active Energy Manager Agent V06.20.01.00. Once the installation is complete, the next step is to configure the two agents.
Configuring the agents for Active Energy Manager (GUI method)
The agents must now be configured to communicate with the Tivoli Enterprise Monitoring Server (TEMS). here are two methods that can be used to configure the agents graphical and command line. Both of these are started using the itmcmd command which can be found in /opt/IBM/ITM/bin assuming that you are using default install locations.
To use the graphical configuration interface enter the following command:
- /opt/IBM/ITM/bin/itmcmd manage
To configure an agent, right click on the agent and select Configure from the menu.
On the configuration screen specify the values for TEMS Hostname, Protocol and Port Number that are appropriate in your environment. The screenshot below shows the values
Note that you must configure each agent that you wish to use. To enable energy monitoring you must configure both the Monitoring Agent for Linux OS and the Active Energy Manager Agent. The configuration for both agents is identical and is as described above. Once the agents have been configured they can be started. To start the agents, select the appropriate agent and select Start Service either from the Actions menu or the context sensitive menu accessed with the right mouse button.
Configuring the agents for Active Energy Manager (Command line method)
If you wish to configure the agents using the command line, you must know the product code for the agent you wish to configure. The product code is a two character code that uniquely identifies each agent. A comprehensive list of IBM Tivoli Monitoring 6.x product codes can be found here.
From the list of the product codes, we find the product codes we need are lz for the Monitoring Agent for Linux OS and e9 for the Active Energy Manager Agent.
To use the command line to configure the Monitoring Agent for Linux OS enter the following command:
- /opt/IBM/ITM/bin/itmcmd config –A lz
To use the command line to configure the Active Energy Manager Agent enter the following command:
- /opt/IBM/ITM/bin/itmcmd config –A e9
The configuration information required for each of the agents is identical. The values used in our environment are as follows:
- Will this agent connect to a TEMS? : YES
- TEMS Host Name : Specify the fully qualified hostname of your TEMS server
- Network Protocol : Specify ip.pipe to use a TCP/IP connection
- Network Protocol 2 : none
- IP.PIPE Port Number : 1918 (this is the default port for TEMS)
- Enter name of KDC_PARTITION : Accept the default
- Configure connection for a secondary TEMS : NO
- Enter Optional Primary Network Name or 0 for “none” : 0
The agent will then be configured and the following message should be displayed:
- Agent configuration completed…
If you wish to view the current configuration of a given agent enter the following command:
- /opt/IBM/ITM/bin/itmcmd config –A –g e9
The above example will return the configuration for the Active Energy Manager agent. To obtain the configuration for a different agent use the appropriate product code in place of e9.
Once the agent configuration has been completed, use the following commands to start the agents with the appropriate product codes:
- /opt/IBM/ITM/bin/itmcmd agent start e9
- /opt/IBM/ITM/bin/itmcmd agent start lz
ITM
The following steps should be carried out on the systems where Tivoli Enterprise Monitoring Server and Tivoli Enterprise Server components of ITM are installed. These steps install and configure support for energy monitoring. Obtain the IBM Tivoli Monitoring for Energy Management Media (ITMfEM). Extract the installation media to a temporary directory and run the following command from the directory containing the extracted media:
Any components that are running need to be stopped for the installation to continue, the installer will stop and restart these components for you. As with the agent installations described above, you should to install products to the local host and accept any license agreements. You should select the following options for installation:
- Active Energy Manager Agent V06.20.01.00 @ Tivoli Enterprise Portal Browser Client support
- Active Energy Manager Agent V06.20.01.00 @ Tivoli Enterprise Portal Server support
Once the installation has completed, it is necessary to configure TEMS and TEPS to support the newly installed features.
To configure TEMS run the following command:
- /opt/IBM/ITM/bin/itmcmd support –t TEMS e9
To configure TEPS run the following command:
- /opt/IBM/ITM/bin/itmcmd –A cq
Assuming that you are using TEMS and TEPS that have been previously configured you should be able to accept the defaults presented by the configuration tools. These defaults will be the values previously used to configure those components.
Once you have completed these steps, you should restart TEMS if it was not restarted automatically. Energy usage data should now being collected in ITM. The final post in this trilogy will show the types of data collected by ITM and how this data can be used.