Difference between revisions of "ESX Script Extracts and Examples"

Jump to navigation Jump to search
m
Added category
(Initial creation - content from Script_Extracts_and_Examples_(PowerCLI) page)
 
m (Added category)
Line 1: Line 1:
= ESX NIC Info =
== ESX NIC Info ==
Provides a list of all vmnic speeds for ESX's managed by the vCentre you're connected to.
Provides a list of all vmnic speeds for ESX's managed by the vCentre you're connected to.
<source lang="powershell">
<source lang="powershell">
Line 18: Line 18:
</source>
</source>


= ESX Log Tail =
== ESX Log Tail ==
'''''Note that the below only seems to work for ESX3.5, I gave up trying to get it work for both v3 and v4, its a lot easier to just enable [[ESX#ESXi_Tech_Support_Mode|ESXi Tech Support Mode]] and tail the log'''''
'''''Note that the below only seems to work for ESX3.5, I gave up trying to get it work for both v3 and v4, its a lot easier to just enable [[ESX#ESXi_Tech_Support_Mode|ESXi Tech Support Mode]] and tail the log'''''


Line 84: Line 84:
</source>
</source>


= Discovered Networks Hint =
== Discovered Networks Hint ==
This function provides the discovered network hints for the network interface its passed.  Bear in mind that its just a hint, for an ESX to be aware of a particular vLAN it needs to see traffic.  If there's no traffic (eg a newly set-up ESX with no VMs) it will show nothing.
This function provides the discovered network hints for the network interface its passed.  Bear in mind that its just a hint, for an ESX to be aware of a particular vLAN it needs to see traffic.  If there's no traffic (eg a newly set-up ESX with no VMs) it will show nothing.


Line 136: Line 136:
</source>
</source>


= ESX BIOS, NIC and HBA Driver Versions =
== ESX BIOS, NIC and HBA Driver Versions ==
Getting BIOS, NIC and HBA driver versions is dependant on what's reported to the ESX by the hardware vendor's CIM provider.  This script was written using various HP servers and may well only work for them.
Getting BIOS, NIC and HBA driver versions is dependant on what's reported to the ESX by the hardware vendor's CIM provider.  This script was written using various HP servers and may well only work for them.


Line 286: Line 286:
</source>
</source>


= Daily ESX Up/Down Check =
== Daily ESX Up/Down Check ==
Simple script that runs every morning just before I start work to provide a basic sanity check email to glance through over the first tea of the day.
Simple script that runs every morning just before I start work to provide a basic sanity check email to glance through over the first tea of the day.


Line 426: Line 426:


[[Category:PowerCLI]]
[[Category:PowerCLI]]
[[Category:ESX]]

Navigation menu