Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 181080

Need powershell script to collect ESX host Network Info

$
0
0

 

hi,

 

I need two powershell scripts for collecting two types of ESX host network information,

 

 

 

 

1. vNIC information --> the information about the vmnic(physical nic of ESX hosts) connected to vSwitches.

 

vNIC | Model | vSwitch | Portgroups | Speed | Status | PCI Location | Active/stand-by/unassigned

 

 

Expected output(Example):

 

 

vmnic0 | intel corporation 82XXXX gigabit ethernet controller | vSwitch0 | service console, vMotion | 1000mbps Full | up | 01:01.00 | Active

 

 

 

 

 

2. Portgroup information

 

 

Portgroup | vNIC(s) with active/standby |  PCI location of vNIC(s) with active/standby | Physical switch with port number

 

 

Expected Output (Example):

 

 

Service console | vmnic0(a) : vmnic1(s) | 01:00.00(a) : 02:00.00(s) | abcd-123[GigabitEthernet10/10] : xyzf-7890[Gigabitethernet11/11]

 

 

Please note if CDP not enabled, then in values of physical switch field can contain "CDP not enabled"

 

 

 

 

 

Thanks in advance!

 

 


Viewing all articles
Browse latest Browse all 181080


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>