It can be a nightmare when you need to create a script listing easily and quickly some of the informations given by lssyscfg commande.

Unfortunately, IBM didn’t really think about us, because what you get is this :

hscroot@HMC# lssyscfg -r prof -m MyBigp795
name=myvirtuallpar,lpar_name=myvirtuallpar-prod,lpar_id=41,lpar_env=aixlinux,all_resources=0,min_mem=256,desired_mem=28672,\
max_mem=43008,min_num_huge_pages=0,desired_num_huge_pages=0,max_num_huge_pages=0,\
mem_mode=ded,mem_expansion=1.0,\ hpt_ratio=1:64,proc_mode=shared,min_proc_units=0.1,\
desired_proc_units=2.0,max_proc_units=48.0,min_procs=1, desired_procs=4,max_procs=48,sharing_mode=uncap,uncap_weight=128,\
shared_proc_pool_id=24,shared_proc_pool_name=shp_bdi_was, affinity_group_id=none,\
io_slots=none,lpar_io_pool_ids=none,max_virtual_slots=255,\
"virtual_serial_adapters=0/server/1/any//any/1,1/server/1/any//any/1",\
virtual_scsi_adapters=none,virtual_eth_adapters=4/0/373//0/1/VS_VIO38\ //all/none,vtpm_adapters=none,\
"virtual_fc_adapters=""10/client/11/vio3/3/c050760499910068,\
c0507604f999069/0"",""11/client/12/vio3/3/c0507609999906a,\
c0507604f99906b/0""",hca_adapters=none,boot_mode=norm,conn_monitoring=1,\
auto_start=0,power_ctrl_lpar_ids=none,work_group_id=none,\
redundant_err_path_reporting=0,bsr_arrays=0, lpar_proc_compat_mode=default,electronic_err_reporting=null

OK, that’s a mess but I know that with the -F option I can limit the information I want, and that would be the virtual adapters and their WWNs:

hscroot@HMC# lssyscfg -r prof -m MyBigp795 -Fvirtual_fc_adapters
"""10/client/15/vio1/5/c050769993d100ce,c0507604f99900cf/0"",""11/\
client/16/vio4/5/c0507604f99990d0,c0507604f999d1/0"""
"""10/client/15/vio1/14/c05079999d10048,c0507604f9999049/0"",""11/\
client/16/vio4/14/c050760499904a,c05079993d1004b/0"""
"""10/client/13/vio2/2/c059994f3d10058,c0509993d10059/0"",""11/\
client/14/vio5/2/c0507604f3d1005a,c0507604f3d1005b/0"""
"""14/client/1/vio3/9/c0507604f3d10000,c0507604f3d10001/0"",""15/\
client/2/vio6/9/c050769990002,c050760499910003/0"""
"""10/client/1/vio3/171/c0507609990010,c0507699993d10011/0"",""11/\
client/2/vio6/172/c0507604f3d999012,c0507604f9913/0"""

It’s a little bit better…

Share Button
How to ease up HMC’s lsysscfg output when you have many virtual adapters and you want to know if you’re LPM compatible
Taggé sur :        

Laisser un commentaire