HMC
Commands
Show
HMC Version
hscroot@hmc:~>
lshmc –V
Reboot
HMC
hscroot@hmc:~>
hmcshutdown -t now –r
Network
configuration of the HMC
hscroot@hmc:~>
lshmc -n
Change
hscroot Password
hscroot@hmc:~>
chhmcusr -u hscroot -t passwd
List
open serviceable events
hscroot@hmc:~>
lssvcevents -t hardware -m 9133-55A-SN10BFG1G --filter status=open
Close
all serviceable events
hscroot@hmc:~>
chsvcevent -o closeall
Check
HMC file system Space
hscroot@hmc:~>
monhmc -r disk -n 0
Power
On/Off Frame
hscroot@hmc:~>
chsysstate -r sys -m 9133-55A-SN10BFG1G -o on/off
Lists
name of Managed System
hscroot@hmc:~>
lssyscfg -r sys -F name
9133-55A-SN10BFG1G
192.168.2.147
hscroot@hmc:~>
Find
State of Managed System
hscroot@hmc:~>
lssyscfg -r sys -m 9133-55A-SN10BFG1G -F name,state --header
name,state
9133-55A-SN10BFG1G,Operating
hscroot@hmc:~>
Create
an LPAR e.g. with name LPAR10
hscroot@hmc:~>
mksyscfg -r lpar –m 9133-55A-SN10BFG1G -i name=LPAR10, profile_name=default_lpar10,
lpar_env=aixlinux, shared_proc_pool_util_auth=1,
min_mem=256, desired_mem=512, max_mem=1024,
proc_mode=shared, min_proc_units=0.1, desired_proc_units=0.2,
max_proc_units=0.3, min_procs=1,
desired_procs=2, max_procs=3, sharing_mode=uncap, uncap_weight=128,
boot_mode=norm, conn_monitoring=1,
shared_proc_pool_util_auth=1
hscroot@hmc:~>
List
name of LPARS of the managed system
hscroot@hmc:~>
lssyscfg -r lpar -m 9133-55A-SN10BFG1G -F name
LPAR10
LPAR9
LPAR8
LPAR7
LPAR6
LPAR5
vios2
LPAR4
LPAR3
LPAR2
LPAR1
NIMSERVER
VIOS1
hscroot@hmc:~>
List
status of all the LPARs on a Managed System:
hscroot@hmc:~>
lssyscfg -m 9133-55A-SN10BFG1G -r lpar -F name:state
LPAR10:Not
Activated
LPAR9:Running
LPAR8:Running
LPAR7:Not
Activated
LPAR6:Not
Activated
LPAR5:Not
Activated
vios2:Not
Activated
LPAR4:Not
Activated
LPAR3:Not
Activated
LPAR2:Not
Activated
LPAR1:Not
Activated
NIMSERVER:Running
VIOS1:Running
hscroot@hmc:~>
Once
you find the LPAR names, find profile name
hscroot@hmc:~>
lssyscfg -r prof -m 9133-55A-SN10BFG1G --filter "lpar_names=LPAR7" -F
name,boot_mode
default_profile,norm
hscroot@hmc:~>
Power
on LPAR in SMS
hscroot@hmc:~>
chsysstate -r lpar -m 9133-55A-SN10BFG1G -b sms -o on -f default_profile -n
LPAR7
Normal
Power on LPAR
hscroot@hmc:~>
chsysstate -r lpar -m 9133-55A-SN10BFG1G -o on -f default_profile -n LPAR7
Lists
general info of LPARS on the managed system
hscroot@hmc:~>
lssyscfg -m 9133-55A-SN10BFG1G -r lpar
Open
a virtual terminal
hscroot@hmc:~>
mkvterm -m 9133-55A-SN10BFG1G -p NIMSERVER
Close
a virtual terminal
hscroot@hmc:~>
rmvterm -m 9133-55A-SN10BFG1G -p NIMSERVER
Rename
LPAR name
hscroot@hmc:~>
chsyscfg -r lpar -m 9133-55A-SN10BFG1G -i "name=old_name,new_name=LPAR00"
Shut
down an LPAR:
Immediate
Shutdown
hscroot@hmc:~>
chsysstate -r lpar -m 9133-55A-SN10BFG1G -o shutdown --immed -n LPAR7
Normal
Shutdown
hscroot@hmc:~>
chsysstate -r lpar -m 9133-55A-SN10BFG1G -o shutdown -n LPAR7
Delete
LPAR
hscroot@hmc:~>
rmsyscfg -r lpar -m 9133-55A-SN10BFG1G -n LPAR7
Open
a text console window:
hscroot@hmc:~>
vtmenu
Close
a session & return back to vtmenu
~.<Enter>