Updating the code on multiple HMCs using the remote command line

Learn how to use the HMC remote command line to update the code on more than one HMC at a time.

To remotely install interim fixes, service packs, and cumulative maintenance releases on the HMC, use the updhmc command. The following example illustrates a scenario where an HMC code update is performed on multiple HMC machines from a remote system.

In this scenario, System A is a Linux® system installed with OpenSSH. Assume that public key files have been previously deployed to all the HMCs, and these key files were generated with an empty passphrase.

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 preceding code example copies an interim fix called hmc_update.zip to 7 HMC, with host name hmc1, hmc2, ..., hmc7. The second <for> loop runs the updhmc command on each of the 7 HMCs. When the updhmc command completes, it removes the file and shuts down and restarts the HMC.


Send feedback | Rate this page