VMware Cloud Community
AlbertWT
Virtuoso
Virtuoso
Jump to solution

PowerShell script to export MTU size for all PortGroup & vSwitches ?

Hi All,

Would it be possible to export the pNIC, PortGroup and vSwitch MTU size to .CSV file for all of the ESXi hosts in the VCenter server ?

Thanks in advance.

/* Please feel free to provide any comments or input you may have. */
1 Solution
4 Replies
AlbertWT
Virtuoso
Virtuoso
Jump to solution

yezdi ,

Can the script be executed without causing any outage to the current production servers?

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos
Sreejesh_D
Virtuoso
Virtuoso
Jump to solution

I cant see any code/line in the script which is making any changes. It only reads the configs. So its safe to run.

Note : it collect details from all hosts in the vcenter.

if you need details from a single host change this line

$VMHosts = Get-VMHost 

to

$VMHosts = Get-VMHost  "<hostname>"

AlbertWT
Virtuoso
Virtuoso
Jump to solution

yezdi

Many thanks for the sharing and clarification.

/* Please feel free to provide any comments or input you may have. */
Reply
0 Kudos