Type
  • Best Practice
Description
  • This article explains how to monitor a Cisco UCS server running Linux with Hardware Sentry.
Additional Keywords
  • Cisco, Cisco UCS

Related Topics

Knowledge Base

Monitoring Cisco UCS Servers Running Linux

KB1056 - Dec 09, 2010 - Last reviewed on Jul 11, 2013

Principle

Cisco UCS servers are instrumented with a baseboard management controller (BMC) following Intel’s IPMI standard.

On Linux systems, Hardware Sentry KM leverages the Linux built-in OpenIPMI driver and the ipmitool utility the hardware components of the server and check their status. It also uses the ethtool utility do monitor the traffic on the network cards.

For the remote monitoring of a Linux system, Hardware Sentry KM uses the SSH protocol

Prerequisites

  • Hardware Sentry KM 1.7
  • The Cisco UCS server can run any popular distribution of Linux, given that:
    • The OpenIPMI driver is installed and properly loaded
    • ipmitool is properly installed and accessible from the $PATH variable
Note: The OpenIPMI driver can be activated with the following commands:
 /sbin/chkconfig ipmi on
/sbin/service ipmi start

The ipmitool packages can be found at this address: http://ipmitool.sourceforge.net, or with the vendor of your Linux distribution.

By default, both the ipmitool and ethtool utilities require root privilege. It is possible to configure Hardware Sentry KM with the root password or to use the sudo utility to execute the commands that require root privilege. If the sudo option is preferred, the sudo utility must have been properly configured to allow the PATROL Agent’s default account to execute the ipmitool and ethtool commands as root. This can be done by an authorized administrator only in the /etc/sudoers file by adding the following line:

patrol ALL=NOPASSWD:/sbin/ethtool,/usr/bin/ipmitool

Local Monitoring with a PATROL Agent installed the monitored system

Nothing needs to be specifically configured at the level of Hardware Sentry KM: it automatically discovers all the hardware elements of the server and monitors them.

Remote Monitoring from a remote system

  1. In the PATROL Console, [right-click] on the hardware icon › [KM Commands] › [Add a Remote System or an External Device]
  2. Accept the End User License Agreement
  3. Enter the System Name.  Select System or Device Type “Linux”.  [Next]
  4. Choose the option “Manually choose which connectors to use”. [Next]
  5. Select the IPMI and Linux-Network Connectors. [Next]
  6. If the Hardware KM is unable to find Java on your system, the Hardware KM will prompt you for the path of the java executable.  See the Hardware KM’s documentation for more information about Java Settings.
  7. Enter valid SSH Credentials for the remote server.  For information about using sudo, please see the Hardware KM’s documentation. [Next]
  8. Click on [Finish]