AIX Tip of the Week

Subject: Interactive Script for Running HMC Commands from Remote Host

Audience: All

Date: January 7, 2006

I found a useful Perl script on the AIX5L and Linux On Power forum that provides HMC functions from the command line on a remote host via ssh. The script provides the following functions:

The script was written by Andy Welter, and is available at:

http://www.the-welters.com/professional/scripts/hmcMenu.txt

The script is interactive (with the exception of the "-r" flag for listing the configuration of all managed systems).

Syntax:

hmcMenu [-v] [-r] [-u <hmc userid>] [-s <hmc system name>]

where:

-v verbose mode. Displays the HMC commands that are being executed.
-r reporting mode. non-interactive, runs the "info" function against all managed systems for the target HMC.
-u Login ID on the target HMC. Defaults to the value defined in $user (line 317)
-s Host name for the target HMC. Defaults to the value defined in $hmcName (line 310)



Bruce Spencer,
baspence@us.ibm.com

January 7, 2006