알아두면 유용한 hmc 커맨드

hmc에 ssh 접속하기위해서는 hmc콘솔의 web browser에서 해당 interface의 ssh접속을 허용해 놓아야 한다.

hmc 콘솔의 정보 보기

hscroot@localhost:~> lshmc -v
"vpd=*FC ????????
*VC 20.0
*N2 Thu Jul 24 10:47:38 KST 2014
*FC ????????
*DS Hardware Management Console
*TM 7042-CR6
*SE 0660F3C
*MN IBM
*PN Unknown
*SZ 4227448832
*OS Embedded Operating Systems
*NA 127.0.0.1
*FC ????????
*DS Platform Firmware
*RM V7R7.4.0.0
"

hmc 정보보기

hscroot@localhost:~> lshmc -V
"version= Version: 7
Release: 7.4.0
Service Pack: 0
HMC Build level 20111010.1
MH01275: Required fix for HMC V7R7.4.0 (10-10-2011)
","base_version=V7R7.4.0
"

hmc 콘솔의 resource 사용량 보기

hscroot@localhost:~> monhmc -r disk -n 0
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 16121184 7906760 7395512 52% /
udev 2064184 228 2063956 1% /dev
/dev/sda3 6040320 2483412 3250068 44% /var
/dev/sda7 8056524 151088 7496184 2% /dump
/dev/sda8 442460668 227632 419757300 1% /extra

hscroot@localhost:~> monhmc -r mem -n 0
Mem: 4128368k total, 1749540k used, 2378828k free, 397128k buffers

hscroot@localhost:~> monhmc -r proc -n 0
Cpu0 : 0.1%us, 0.1%sy, 0.0%ni, 98.4%id, 1.4%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 0.1%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 0.0%us, 0.0%sy, 0.0%ni, 99.9%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 0.1%us, 0.0%sy, 0.0%ni, 99.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st

hmc콘솔이 관리하는 서버(frame) 보기.

hscroot@localhost:~> lssysconn -r all
resource_type=sys,type_model_serial_num=9117-570*65E71CE,sp=unavailable,sp_phys_loc=unavailable,ipaddr=192.168.3.147,alt_ipaddr=unavailable,state=Connecting,connection_error_code=Connecting 0000-0000-00000000
resource_type=sys,type_model_serial_num=9117-570*65E71CE,sp=primary,sp_phys_loc=U7879.001.DQDVFZD-P1-C8,ipaddr=192.168.2.147,alt_ipaddr=unavailable,state=Connected
resource_type=sys,type_model_serial_num=9117-570*65DB60F,sp=unavailable,sp_phys_loc=unavailable,ipaddr=192.168.10.200,alt_ipaddr=unavailable,state=No Connection,connection_error_code=Connecting 0000-0000-00000000

hmc 콘솔이 관리하는 서버(frame) 전원 켜기

hscroot@localhost:~> lssyscfg -r sys -F name
192.168.10.200
FOX
hscroot@localhost:~> chsysstate -m FOX -r sys -o on

서버(frame)의 LPAR 정보 보기

hscroot@localhost:~> lssyscfg -r lpar -m FOX
name=2,lpar_id=2,lpar_env=aixlinux,state=Not Activated,resource_config=1,os_version=AIX 6.1 6100-06-10-1241,logical_serial_num=65E71CE2,default_profile=box1-2,curr_profile=box1-2,work_group_id=none,shared_proc_pool_util_auth=0,allow_perf_collection=0,power_ctrl_lpar_ids=none,boot_mode=norm,lpar_keylock=norm,auto_start=0,redundant_err_path_reporting=0,rmc_state=inactive,rmc_ipaddr=192.168.0.201
name=1,lpar_id=1,lpar_env=aixlinux,state=Not Activated,resource_config=1,os_version=AIX 6.1 6100-06-10-1241,logical_serial_num=65E71CE1,default_profile=1,curr_profile=1,work_group_id=none,shared_proc_pool_util_auth=0,allow_perf_collection=0,power_ctrl_lpar_ids=none,boot_mode=norm,lpar_keylock=norm,auto_start=0,redundant_err_path_reporting=0,rmc_state=inactive,rmc_ipaddr=192.168.0.200
hscroot@localhost:~> lssyscfg -r lpar -m FOX -F name:lpar_id:state
2:2:Not Activated
1:1:Not Activated

LPAR 전원 켜기

hscroot@localhost:~> chsysstate -r lpar -o on -f 1 -m FOX -n 1
hscroot@localhost:~> lssyscfg -r lpar -m FOX -F name:lpar_id:state
2:2:Not Activated
1:1:Running

가상 터미널 연결(FOX frame 의 LPAR 1)과 종료.

hscroot@localhost:~> mkvterm -m FOX -p 1

가상터미널의 연결을 끊기 위해서는 ~~. 을 입력하면 hmc 콘솔로 돌아온다.

hscroot@localhost:~> rmvterm -m FOX -p 1
Close command senthscroot@localhost:~>

 

참고문서: http://ezh.sourceforge.net/

답글 남기기

Your email address will not be published.