
Hardware Management Console Best Practices
- 40 -
Temporary Fix) value associated with the interim fix or service pack when using a
command such as lshmc –V, for example:
MH00324: Maintenance Package for V4R5.0 (06-21-2005)
7.7 HMC Code Update on Multiple Machines
Some customers will have a large number of HMCs. Updating code on a large
number of machines can be time consuming, especially if manual intervention or
physical access to the local HMC is needed. Fortunately, there are methods to
overcome this problem
7.7.1 Remote command
There is a rich set of commands on the HMC. These commands are available
locally as well as remotely via OpenSSH. This allows a remote workstation
installed with SSH client software to remotely execute commands on the HMC.
The updhmc command previously mentioned is such a command that allows
interim fixes, service packs and cumulative maintenance releases to be remotely
installed on the HMC. The following example illustrates a scenario where an
HMC code update is performed simultaneously on multiple machines from a
remote workstation.
From the remote system installed with ssh, generate public key file with the ssh-
keygen command using an empty passphrase and deploy the file to all the HMC.
In this example, the HMCs host names are hmc1 through hmc7.
for i in 1 2 3 4 5 6 7
do
scp hmc_update.zip hscroot@hmc$i:/home/hscroot
done
for i in 1 2 3 4 5 6 7
do
ssh hscroot@hmc$i “updhmc –t l –f /home/hscroot/hmc_update.zip –c –r”
done
The first for loop in the code example above copies an interim fix whose file
name is hmc_update.zip, to seven HMCs. The second for loop runs the updhmc
command on each of the same seven HMCs. When the command finishes, it will
remove the update file and reboot the HMC.
Komentáře k této Příručce