I'm collecting the VLAN details for each VIO server and LPAR's from HMC. I would need to group those VLANs one Vwsitch as VSWITCHName=VLANID, separated by comma. But some VIO servers have 2 VSWITCHES. I would like to display the data on single line as i'm using for loop to collect the data.
LAB1:~> lshwres -m system-01 -r virtualio --rsubtype eth --level lpar --filter lpar_names=ABC1234 -F vswitch:port_vlan_id:addl_vlan_ids ETHERNET0:64: ETHERNET0:2215:52,64 ETHERNET0:3969:701,702,2152,2154 ETHERNET0:4001: LAB1:~> lshwres -m system-01 -r virtualio --rsubtype eth --level lpar --filter lpar_names=ABCD4567 -F vswitch:port_vlan_id:addl_vlan_ids ETHERNET1:55: ETHERNET1:3971:51,53,55 ETHERNET1:3972:2151,2153,2155 ETHERNET1:4002: hmclab:~> lshwres -m system-01 -r virtualio --rsubtype eth --level lpar --filter lpar_names=ABCD7890 -F vswitch:port_vlan_id:addl_vlan_ids ETHERNET0:52: ETHERNET0:2152: LAB1:~> lshwres -m system-01 -r virtualio --rsubtype eth --level lpar --filter lpar_names=ABCD7869 -F vswitch:port_vlan_id:addl_vlan_ids ETHERNET0:54:4001 ETHERNET0:3968:52,54 ETHERNET1:3969:701,702,2152,2154,5569 ETHERNET1:4002: ETHERNET1:5001 Output Expected is: ETHERNET0= 52,54,3968,etc & ETHERNET1=5001,3969.701,etc