Some very useful HMC commands!!
# 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:
# ls -al /var/hsc/log/hmclogger.log
# ls -al /var/hsc/log/cimserver.log
Monitor the disk space:
# 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:
# 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
To start all partitions of one managed server:
# 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
0 comments:
Post a Comment