View Single Post

   
  #2 (permalink)  
Old 01-05-2008, 06:31 AM
Dero
 
Posts: n/a
Default Re: HMC Command Line & Num Procs

Try this ... Hope it helps. Christopher D. (dero@us.ibm.com)

The preferred way to list the systems connected to the HMC is as
follows:

hscroot@z1434b:~> lssyscfg -r sys


name=Server-9406-595-SN1Y1AAYX,type_model=9406-595,serial_num=1Y1AAYX,ipaddr=172.16.254.255,state =Operating,sys_time=01/06/2005
16:50:45,power_off_policy=1,cod_mem_capable=1,cod_ proc_capable=1,micro_lpar_capable=1,os400_capable= 1,vet_activation_capable=1,virtual_io_server_capab le=1,assign_5250_cpw_percent=0,max_lpars=254,max_p ower_ctrl_lpars=1,service_lpar_id=1,service_lpar_n ame=rchast70,curr_sys_keylock=norm,pend_sys_keyloc k=norm,curr_power_on_side=temp,pend_power_on_side= temp,curr_power_on_speed=fast,pend_power_on_speed= fast,curr_power_on_speed_override=none,pend_power_ on_speed_override=none,power_on_type=poweron,power _on_option=autostart,power_on_method=02,power_on_a ttr=0000,sp_boot_attr=0000,sp_boot_major_type=08,s p_boot_minor_type=01,sp_version=00040000,mfg_defau lt_config=0,curr_mfg_default_ipl_source=b,pend_mfg _default_ipl_source=b,curr_mfg_default_boot_mode=n orm,pend_mfg_default_boot_mode=norm

Using the system name from above, I can query the CPU information for
the overall system as follows:

hscroot@z1434b:~> lshwres -r proc -m Server-9406-595-SN1Y1AAYX --level
sys

configurable_sys_proc_units=38.0,curr_avail_sys_pr oc_units=19.0,pend_avail_sys_proc_units=19.0,insta lled_sys_proc_units=48.0,deconfig_sys_proc_units=1 0.0,min_proc_units_per_virtual_proc=0.1,max_virtua l_procs_per_lpar=64,max_shared_proc_pools=1

This shows me:
-how many processors are installed: installed_sys_proc_units=48.0)
-how many are configurable (usable for partitions):
configurable_sys_proc_units=38.0
-if any are deconfigured (taken offline because of failure or manual
deconfiguration): deconfig_sys_proc_units=10.0
-how many are available (configurable processors that are not currently
assigned to any partition): curr_avail_sys_proc_units=19.0

Note that by specifying "--level lpar" instead of "--level sys" in the
command above, you can get the current processor assignments broken
down by LPAR.

Running the Capacity-on-Demand command line function, as mentioned in
the original posting, tells you how many permanently licensed
processors you have (on my test system, it was all 48):

hscroot@z1434b:~> lscod -m Server-9406-595-SN1Y1AAYX -t cap -r proc -c
cuod
perm_procs=48

Reply With Quote