Usefull hmc commands
GUI of hmc interface works with JAVA so....ssh hmchost as dest user.
hscroot@hmc3:~> lssyscfg -r sys -F name
Server-8205-E6B-SN0694E7P
Server-9119-FHB-SN5172EDD
S824_3-828..............
hscroot@hmc3:~>
hscroot@hmc3:~> lssyscfg -r lpar -m S824_3-8286-42A-SN21898FV -F name
sas....
hscroot@hmc3:~> mkvterm -m S824_1-8286-42A-SN21898EV -p lpar1
hscroot@hmc3:~> rmvterm -m Server-8408-E8D-SN067382T -p lpar1
hscroot@hmc3:~> chsysstate -r lpar -m S824_1-8286-42A-SN21898EV -o shutdown --immed --restart -n lpar1
hscroot@hmc3:~> lssyscfg -m Server-9119-FHB-SN5172EDD -r lpar -F name:state
lpar1:Not Activated
lpar2:Not Activated
lpar3:Not Activated
kenanbis:Not Activated
VIOS2_795:Running
VIOS1_795:Running
hscroot@hmc3:~>
chsysstate -r lpar -m <MANAGED SYSTEM> -o shutdown --immed -n <LPAR NAME>
chsysstate -r lpar -m <MANAGED SYSTEM> -o on -f <PROFILE NAME> -n <LPAR NAME>
lssyscfg -m <MANAGED SYSTEM> -r lpar -F name:state
chsysstate -r sys -m <MANAGED SYSTEM> -o on
lssyscfg -r prof -m <Managed System> | cut -d, -f1,2
Regards
kamil.piorekk@gmail.com
Komentarze
Prześlij komentarz