Difference between revisions of "Script Extracts and Examples (PowerCLI)"

Jump to navigation Jump to search
m
→‎ESX Datastore to LUN Mapping (ESX3): Added border around script
m (Added link to Getting_Started_(PowerCLI)#Scheduling (linked to from VMware forum post))
m (→‎ESX Datastore to LUN Mapping (ESX3): Added border around script)
Line 1,049: Line 1,049:
=== ESX Datastore to LUN Mapping (ESX3) ===
=== ESX Datastore to LUN Mapping (ESX3) ===
Its bizarrely difficult to be able to map VMware presented datastore names to the underlying LUN's, despite the fact that its readily available via the VI Client.  The following was adapted from the work of ''Catman'' found in this forum thread - http://communities.vmware.com/thread/240466#240466.  As I expect to maybe want some of the other fields available during the working my notes from working through this are to be found [[Datastore to LUN Mapping (PowerCLI)|here]]
Its bizarrely difficult to be able to map VMware presented datastore names to the underlying LUN's, despite the fact that its readily available via the VI Client.  The following was adapted from the work of ''Catman'' found in this forum thread - http://communities.vmware.com/thread/240466#240466.  As I expect to maybe want some of the other fields available during the working my notes from working through this are to be found [[Datastore to LUN Mapping (PowerCLI)|here]]
<source lang="powershell" enclose="div">
<source lang="powershell">
# Thieved and adapted from the good work by catman...
# Thieved and adapted from the good work by catman...
# http://communities.vmware.com/thread/240466#240466
# http://communities.vmware.com/thread/240466#240466
Line 1,121: Line 1,121:
HP      HSV200          vmhba1:0:13  VMFS-DS-06
HP      HSV200          vmhba1:0:13  VMFS-DS-06
</pre>
</pre>


=== ESX Datastore to LUN Mapping (ESX4) ===
=== ESX Datastore to LUN Mapping (ESX4) ===

Navigation menu