Solved

PowerCLI Scripts

Posted on 2014-04-16
2
340 Views
Last Modified: 2014-04-17
If anyone know of any PowerCLI scripts of any type or function I would like to know where they are located.  I am in the process of becoming more proficient in scripting using the PowerCLI scripting tool.  My most pressing need is to develop a script that would help produce reports from within vCenter and the ESXi host.

I am also in need of a script that can query the logs within the ESXi host.

Thank you,

lipotech
0
Comment
Question by:lipotech
2 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 40004269
I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

http://powergui.org/index.jspa

and

Reports can be generated from:-

VMware Community Pack
http://www.virtu-al.net/featured-scripts/vmware-powerpack/

vCheck Daily Report
http://www.virtu-al.net/vcheck-pluginsheaders/vcheck/

If you do want a script, LucD (1 of *the* premier PowerCLI gurus; literally co-wrote the book on PowerCLI :) ) provides a script in the following link:

http://www.lucd.info/

It's worth getting this book!

http://www.amazon.com/gp/product/0470890797?ie=UTF8&tag=lucnot-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0470890797
0
 

Author Closing Comment

by:lipotech
ID: 40006781
Thank you
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why run Active Fulls in Backups 19 112
How Veeam backs up VMs 5 70
Could you bit more specific in describtion 2 32
vCheck Report and vCenter 6 Very Slow 5 30
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now