Here are some very useful commands for the Hardware Management Console (HMC): Show vital product data, such as the serial number:
# lshmc -vShow the release of the HMC:
# lshmc -VShow network information of the HMC:
# lshmc -nReboot the HMC:
# hmcshutdown -r -t nowShow the connected managed systems:
# lssysconn -r allChange the password of user hscpe:
# chhmcusr -u hscpe -t passwd -v abc1234List the users of the HMC:
# lshmcusrThese are intersting log files of the HMC:
Monitor the disk space:# ls -al /var/hsc/log/hmclogger.log # ls -al /var/hsc/log/cimserver.log
# monhmc -r diskThis can be used to view the file systems of the HMC. Try using "proc", "mem" and "swap as well. By default this command will loop forever and update the screen every 4 seconds. You can run it only once, with the following command:
# monhmc -r disk -n 0Zero out log files:
# chhmcfs -o f -d 0This will delete any temporary files. Extremely useful if the HMC calls home to IBM about high usage of one of its file systems. Open a virtual console from the HMC:
# vtmenuExit by typing "~." (tilde dot) or "~~." (tilde tilde dot). Force the closure of a virtual terminal session:
# rmvterm -m SYSTEM-9117-570-SN10XXXXX -p nameChange the state of a partition:
To start all partitions of one managed server:# chsysstate -m SYSTEM-9131-52A-SN10XXXXX -r lpar -o on -n name -f default_profile # chsysstate -m SYSTEM-9131-52A-SN10XXXXX -r lpar -o shutdown -n name --immed
# chsysstate -m Prd2-Server-8233-E8B-SN0XXXXXX -r lpar -o on --allList partition profiles for a managed system:
# lssyscfg -r prof -m SYSTEM-9117-570-SN10XXXXXList partition information:
# lspartition
If you found this useful, here's more on the same topic(s) in our blog:
- Stopping and starting a LPAR from the HMC prompt
- Lpar tips
- Introduction to VIO
- Installing Linux websm client from HMC version 3.3.6
- Opening a virtual terminal window on HMC version 3.3.6
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?




