If I'm wrong that should be the hostname but in out put i am not getting host name
sample output for the above script:
In vmhost coloum it is writing IP address but i need host name in another coloum along with ip address
| Datacenter | Cluster | VMHost | Device | Status | WWN | |
| Testdatacenter | Testcluster | 10.75.6.110 | vmhba1 | online | 50:06:0b:00:00:c2:66:38 | |
| Testdatacenter | Testcluster | 10.75.6.110 | vmhba4 | online | 50:06:0b:00:00:c2:66:3e |