Wednesday, August 7, 2013

HMC console commands


lshmc –n (lists dynamic IP addresses served by HMC)
lssyscfg –r sys –F name,ipaddr (lists managed system attributes)
lssysconn –r sys (lists attributes of managed systems)
lssysconn –r all (lists all known managed systems with attributes)
rmsysconn –o remove –ip <ipaddr from lssysconn list> (removes a managed system from the HMC)
mkvterm –m {msys} –p {lpar} (opens a command line vterm from an ssh session)
rmvterm –m {msys} –p {lpar} (closes an open vterm for a partition)

Activate a partition
chsysstate –m managedsysname –r lpar –o on –n partitionname –f profilename –b normal
chsysstate –m managedsysname –r lpar –o on –n partitionname –f profilename –b sms

Shutdown a partition
chsysstate –m managedsysname –r lpar –o {shutdown/ossshutdown} –n partitionname [-immed][-restart]


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