https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_Determine_vSwitch_vmnic_for_your_VM&feed=atom&action=historyPowerCLI: Determine vSwitch vmnic for your VM - Revision history2024-03-28T15:19:33ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_Determine_vSwitch_vmnic_for_your_VM&diff=1224&oldid=prevWila: Created page with "=== Determine vSwitch vmnic for your VM === author: Matt Boren ==== Description ==== Script that lists all the VMs with vmnic uplink and vSwitch for a selected host. ==== Us..."2013-01-24T04:08:48Z<p>Created page with "=== Determine vSwitch vmnic for your VM === author: Matt Boren ==== Description ==== Script that lists all the VMs with vmnic uplink and vSwitch for a selected host. ==== Us..."</p>
<p><b>New page</b></p><div>=== Determine vSwitch vmnic for your VM ===<br />
author: Matt Boren<br />
==== Description ====<br />
Script that lists all the VMs with vmnic uplink and vSwitch for a selected host.<br />
<br />
<br />
==== Usage ====<br />
PS vNuggs:\> Get-VNUplinkNic -VMHostToCheck somehost<br />
<br />
Need credentials to connect to VMHost<br />
Please enter credentials for 'somehost'<br />
User: root<br />
Password for user root: *************<br />
<br />
VMName TeamUplink vSwitch VMHostName<br />
---------- ---------- ------- ---------- <br />
Management n/a vSwitch0 somehost<br />
vmk1 vmnic0 vSwitch0 somehost<br />
vmk0 vmnic0 vSwitch0 somehost<br />
dev0-vm0 vmnic0 vSwitch0 somehost<br />
dev0-vm12323 vmnic5 vSwitch0 somehost<br />
dev0-vm2 vmnic5 vSwitch0 somehost<br />
dev0-vm32237 vmnic4 vSwitch1 somehost<br />
dev0-vm9 vmnic8 vSwitch1 somehost<br />
...<br />
==== Location ====<br />
<br />
http://vnugglets.com/2013/01/determine-vms-uplink-vmnic-on-vswitch.html<br />
<br />
[[Category: PowerCLI]] [[Category: VM Management]]</div>Wila