Академический Документы
Профессиональный Документы
Культура Документы
unix we rk > AIX > Howtos > HMC C om m andline March 29, 2011
unixwerk
How to use the HMC Com m andline
AIX This documents contains the most important HMC commands. It covers both, the old pow er4 commands (up to HMC Version 3) and the new
pow er5 style commands (HMC Version 4-6). A lot of nice commands still available for version 3 (pow er4) are removed from new er releases.
BSD One example of these nice commands is lslpars and it's not available for HMC version 4 and higher. The real reason behind it is that IBM
w ants to force us to use the web based tools wsm and WebSM or the new HMC browser GUI. This documents helps you to survive w ith the
Linux HMC commands in case w orking w ith the w eb based tools is not feasible.
Solaris In the examples below w e call a w hole pow er4 or pow er5 frame (aka Managed System) pserver. We call an LPAR mylpar. If an example
output show s more than one LPAR name w e enumerate it. LPAR Profiles are show n as myprofile. You have to replace these names w ith
Others your object names.
If you use power6 systems, you need the new HMC version7. Although the GUI has changed from wsm to a brow ser based service, the
Un*x commandline remains compatible. You can just use the power5 examples for pow er6 and pow er7.
Topics
Contents
HMC Management
Guestbook 1. HMC Version
2. Network configuration of the HMC
Contact
3. Reboot the HMC
Archive 4. How to change the HMC password (of user hscroot)
5. Show Available Filesystem Space
LPAR Configuation
1. Change an LPAR's Name
2. Rename a Managed System
3. DLPAR: Increase the Number of Processing Units of an LPAR
HMC Management
1. HMC Version
hscroot@hmc> lshmc -V
Version: 3
Release: 3.2
HMC Build level 20040827.1
pow er4 HMCs could never show a version higher 3.x - HMC version 4.x and higher are only for power5 systems. Pow er6 systems need HMCs
version 7.x.
hscroot@hmc> lshmc -n
www.unixwerk.eu/aix/hmc-howto.html 1/6
5/28/2011 unixwerk: HMC Commandline Interface
power4 + power5:
It's just the same as you would expect from the UNIX command df.
1. LPAR Status
That's how you get an overview of all systems controlled by your HMC:
power4:
hscroot@hmc> lslpars
power5:
The format string 'lpar_id:name:serial_num:state' also tells you the serial number of the systems. You can omit the field 'serial_num' if you
don't need to know .
However, for every system from the list above you get the LPAR overview as show n below:
Example:
Don't know w here to start? Find the managed system to an LPAR with a query:
hscroot@hmc> for m in $(lssyscfg -r sys -F name); do echo $m ; lssyscfg -r lpar -m $m -F name:state ; done
power5:
You can even see the history of LED codes. Just use -n <NUM> for the last NUM codes. For example, if you w ant to see the last 5 LED codes of
an LPAR type
www.unixwerk.eu/aix/hmc-howto.html 2/6
5/28/2011 unixwerk: HMC Commandline Interface
power5:
The link to the name of the managed system is the serial number - not the IP address! The IP addresses listed above are mounted on the
service processor's private NIC and managed by the integrated DHCP server of the HMC.
power5:
A leading " none" indicates that the adapter is not assigned to an LPAR. To show a list of all I/O adapters ow ned by a specific LPAR use the "-
-filter" modifier:
power5:
www.unixwerk.eu/aix/hmc-howto.html 3/6
5/28/2011 unixwerk: HMC Commandline Interface
7. Overview DLPAR status
power5:
power5:
power5:
5. Virtual Console
That's how you get a connection to an LPAR's serial console:
power4 + power5:
If your system is running in FullSystemPartition-Mode you connect w ith a command like this:
power4:
You can escape from the console connection by typing ~~. (twice tilde follow ed by a dot)
If you cannot connect to the serial console and you get an error message instead:
www.unixwerk.eu/aix/hmc-howto.html 4/6
5/28/2011 unixwerk: HMC Commandline Interface
All available virtual terminal sessions have been opened and are in use.
To force a new open session, perform a Close Terminal Session operation
which frees up the session.
there is still another active connection to this console. You can close this connection w ith:
power4 + power5:
If you're not sure which managed system belongs to an LPAR you could walk through the vtmenu:
hscroot@hmc> vtmenu
Retrieving name of managed system(s) . . .
----------------------------------------------------------
Managed Systems:
----------------------------------------------------------
1) pserver1
2) pserver2
3) pserver3
----------------------------------------------------------
Partitions On Managed System: pserver1
----------------------------------------------------------
1) mylpar1 Running
2) mylpar2 Running
3) mylpar3 Running
4) mylpar4 Running
5) mylpar5 Running
Just enter a number and you w ill be connected to the console of the corresponding LPAR.
6. Activation of an LPAR
power4:
power5:
0514-440 cfgcon: failed to create log file: check path name, permissions, and available space
When seeing this you can only access diag mode or boot the LPAR in singleuser mode. This command sets the key switch back to normal
position:
power5:
LPAR Configuration
www.unixwerk.eu/aix/hmc-howto.html 5/6
5/28/2011 unixwerk: HMC Commandline Interface
3:barney:Running
4:mylpar2:Running
5:mylpar3:Running
power5:
We check and see that the name of LPAR 3 indeed has changed to mylpar1:
power5:
power5:
www.unixwerk.eu/aix/hmc-howto.html 6/6