def get_fc_wwpns():
 hbas = get_fc_hbas()
 wwpns = []
 if hbas:
  for hba in hbas:
   if (hba['port_state'] == 'Online'):
    wwpn = hba['port_name'].replace('0x', '')
    wwpns.append(wwpn)
 return wwpns

def get_fc_wwpns ( ) : hbas = get_fc_hbas ( ) wwpns = [ ] if hbas : for hba in hbas : if ( hba [ 'port_state' ] == 'Online' ) : wwpn = hba [ 'port_name' ] . replace ( '0x' , '' ) wwpns . append ( wwpn ) return wwpns
get fibre channel wwpns from the system .