I was trying to figure out what I was missing. It goes through each HBA with the loop though? It does show the correct paths for some hosts, but other it doesn't and it is strange. I can provide an example if needed.
I ran it and its showing 0 for everything? It is trying to match name, but that gives a device name.
VMHost HBA Cluster Active Dead Standby
------ --- ------- ------ ---- -------
appvmware442 vmhba1 CLU23 0 0 0
appvmware442 vmhba2 CLU23 0 0 0