Solved

PowerCLI Scripts

Posted on 2014-04-16
2
338 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
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…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

746 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

13 Experts available now in Live!

Get 1:1 Help Now