Sunday 17 March 2013

HMC useful commands

lshmc -v 
Shows vital product data, such as the serial number.

lshmc -V 
Shows the release of the HMC.

lshmc -n 
Shows network information of the HMC.

hmcshutdown -r -t now 
Reboot the HMC.

lssysconn -r all 
Show the connected managed systems.

chhmcusr -u hscpe -t passwd -v abc1234 
Change the password of user hscpe.

lshmcusr 
List the users of the HMC.

ls -al /var/hsc/log/hmclogger.log
ls -al /var/hsc/log/cimserver.log 
Intersting log files of the HMC.

monhmc -r disk 
Look at the filesystems of the HMC. Try using "proc", "mem" and "swap as well.

vtmenu 
Open a virtual console from the HMC. Exit by typing "~." (tilde dot) or "~~." (tilde tilde dot).

rmvterm -m SYSTEM-9117-570-SN10XXXXX -p name 
Forces the closure of a virtual terminal session.

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 
Change the state of a partition.

lssyscfg -r prof -m SYSTEM-9117-570-SN10XXXXX 
List partition profiles for a managed system.

lspartition 
Used for listing partition information.

No comments:

Post a Comment