Under Construction
Registering HMCs with the LPAR Tool
In order for the LPAR tool to manage the HMCs, they must be known to the LPAR tool. The LPAR tool uses ssh to execute commands on the HMCs. We recommend using a key and using the ssh agent to avoid entering passwords or passphrases.
First, each HMC that is to be managed by the LPAR tool must be registered once with the LPAR tool. The “hmc add” command is used for this task. The HMC to be registered must be specified as an argument (multiple HMCs can also be specified). If a different user name is used on the HMC than on the local system, the user name to be used on the HMC must also be specified.
Example 1: The local user name is also used on the HMC.
$ hmc add hmc01
Password: XXXXXXXXXX
hmc01:
ms02(326F13X) - 'Operating'
> aix01
> aix02
> aixnim
> aixtsm01
> ms02-vio2
> ms02-vio1
ms04(32D4E4X) - 'Operating'
> aix05
> aix06
> ms04-vio2
> aix07
> ms04-vio1
...
$
Note: The request for a password or passphrase can be prevented by using a key and using the ssh-agent.
Example 2: The account hscroot should be used on the HMC.
$ hmc add hscroot@hmc01
Password: XXXXXXXXXX
hmc01:
ms02(326F13X) - 'Operating'
> aix01
> aix02
> aixnim
> aixtsm01
> ms02-vio2
> ms02-vio1
ms04(32D4E4X) - 'Operating'
> aix05
> aix06
> ms04-vio2
> aix07
> ms04-vio1
...
$
Note: The LPAR tool does not save the password you enter! This means that only you know the password.
The managed systems and LPARs managed by the HMC are listed.
The LPAR tool is now ready for use. Additional HMCs can be registered at any time in the same way (provided there is a valid license).