Wednesday, October 29. 2014
VMware vSphere PowerCLI contains snapins of cmdlets based on Microsoft PowerShell for automating vSphere and vCloud administration. It provides C# and PowerShell interfaces to VMware vSphere and vCloud APIs. You can download the VMware Management with PowerCLI 5.8 Release 1 Poster here.
Thursday, March 13. 2014
VMware vSphere PowerCLI provides a Windows Powershell interface to the VMware vSphere and vCloud and the SRM APIs. VMware vSphere PowerCLI includes numerous cmdlets, sample scripts, and a function library. PowerCLI is a command-line and scripting tool built on Windows PowerShell, and provides more than 400 cmdlets for managing and automating vSphere and vCloud.
This release of vSphere PowerCLI introduces a number of new capabilities and expands on the existing cmdlets introducing cmdlets for vCenter Site Recovery Manager and providing further management of the VMware vSphere and VMware vCloud Director products.
Using the Connect-SRMServer and Disconnect-SRMServer you are now able to connect to vCenter SRM and access all public APIs available, use of the $global:DefaultSrmServers object properties and methods after connection allow for access to recovery group and protection group automation.
Sample Scripts for Managing vCenter Site Recovery Manager with VMware vSphere PowerCLI
- Protect a Virtual Machine - You can protect a virtual machine by replicating it to a remote SRM site.
- Connect-SrmServer - This cmdlet establishes a connection to a vCenter Site Recovery Manager (SRM) server.
- Create a Report of the Virtual Machines Associated with All Protection Groups - You can create a simple report containing information about the virtual machines associated with all protection groups.
- Create a Report of the Protected Virtual Machines - You can create a simple report containing information about the protected virtual machines associated with an SRM server.
Wednesday, October 24. 2012
- Learn PowerShell fast using the Interactive Learning Center
- Execute PowerShell quickly and accurately with the powerful interactive console
- Take advantage of the PowerShell remoting features directly from the interactive console
- Access hundreds of pre-loaded scripts in the personal QuickClick™ library
- Download thousands of community scripts from PowerShell.com, TechNet and PoshCode – directly from the PowerShell Plus console and editor
- Debug PowerShell 10x faster with the advanced script editor and easily share your scripts with the PowerShell community
- The PowerShell Plus Console allows you to work interactively with PowerShell from a feature-rich Windows UI. This integration makes working with PowerShell faster and easier to use than ever before.
- The advanced debugger and script editor lets you build and test complex PowerShell scripts, try one line PowerShell commands from an embedded console window, and sign your script with a security certificate … all from a single workspace.
- The Comprehensive Learning Center helps you experience PowerShell by example. Short tutorials guide you through basic concepts at your own pace. The Comprehensive Learning Center also includes dynamically created help topics from currently installed PowerShell CmdLets, Snap-Ins, and WMI objects.
Wednesday, April 27. 2011
Windows PowerShell is Microsoft’s command line shell and scripting language. PowerShell is built on the Microsoft .NET Framework and helps in system administration. By providing full access to COM (Component Object Model) and WMI (Windows Management Instrumentation), PowerShell enables administrators to perform administrative tasks on both local and remote Windows systems.
Administrators can manage the computers in the enterprise and perform administrative tasks from the command line using built-in cmdlets, which are specialized .NET classes. Unlike most other command line interfaces, PowerShell commands have been standardized using a verb-noun naming convention known as a cmdlet. This convention provides a clear description of the cmdlet, and enables access to different Windows components like the registry, file system, services, processes, and others. There are sufficient cmdlets to support most administrative activities.
VMware View PowerCLI cmdlets are provided by a dll, which is installed as part of the VMware View Connection Server (Server\bin\PowershellServiceCmdlets.dll) under the VMware Connection Server installation). This dll, once registered with PowerShell, allows all VMware View PowerCLI cmdlets to be run on the VMware Connection Server.
This technical paper covers the integration of VMware View with Windows PowerShell and PowerCLI.
Friday, April 1. 2011
In this demo from Train Signal's VMware vSphere PowerCLI course, Hal Rottenberg shows how to use PowerCLI to get a VM host that is in maintenance mode and move it to an existing cluster. He'll then go into detail about cluster settings and how to make changes to them using PowerCLI. You can use these and other High Availability tasks in your own environment to minimize downtime in case of a host or virtual machine outage.
Tuesday, December 21. 2010
Thursday, December 2. 2010
With the latest release of PowerCLI (4.1.1) VMware has introduced a real cool new commandlet.
Get-EsxTop exposes esxtop functionality. The default parameter set is CounterValues. The Counter parameter filters the specified statistics. To retrieve all available counters, use the CounterInfo parameter set. The properties of each counter are returned through the Fields property (an array) of the CounterInfo output object. You can also retrieve stats topologies using the TopogyInfo parameter set. This information contains either inventory data that does not change or a counter instance structure describing the relationship between different counter instances.
Monday, November 22. 2010
Friday, October 1. 2010
The vSphere PowerCLI Administration Guide provides information about using the VMware vSphere PowerCLI cmdlets set that ships with vSphere PowerCLI for managing, monitoring, automating, and handling life‐cycle operations for VMware vSphere components—virtual machines, datacenters, storage, networks, and so on.
There are two categories of users for vSphere PowerCLI: Basic administrators can use PowerShell commands included in vSphere PowerCLI to manage their VMware infrastructure from the command line and Advanced administrators can develop PowerShell scripts that may be reused by other administrators or integrated into other applications.
Friday, June 4. 2010
Scott Herold is happy to announce the release of the vEcoShell 1.2.6. It’s out of beta and officially has been deemed as a stable release. The list of features is quite limited, but the biggest change is multi session management which makes copying and pasting from the web and PS1 files possible. Under the hood every single script in the function library was re-written from scratch. Scott also has transferred the community homepage of The vEcoShell Initiative to Vizioncore’s vCommunity.
What's New with 1.2.6?
•Completely rewritten PowerPack to support VMware PowerCLU 4.0 Update 1 and its ability to manage connections to multiple $viServer objects.
•Ability to copy and paste code from "PowerShell Code" tab directly into standalone PS1 files (Will still need to Add-PSSnapin and Connect-VIServer for script to function).
•Ability to copy and paste code snippets from the internet and they will work without needing to add the $managedHost.connection code everywhere.
Download the latest version of vEcoShell and additional PowerPacks here.
Scott Herold about the GA: I am happy to announce that the 1.2.6 version of vEcoShell is now available on the Downloads Page. This update brings us into full compatibility with VMware PowerCLI 4.0 U1. In addition, we have decided to remove the product from beta and have provided our first stable release , which has been rigourously tested by the Vizioncore QC team. vEcoShell will remain Freeware, and continue to have a community support policy. The major difference in 1.2.6 is in how connections to multiple vCenter or ESX Servers are managed. In previous versions, vEcoShell maintained all session management and required custom code in nearly all of it's scripts to function properly. These scripts could not run externally to vEcoShell, so the PowerShell Code tab provided limited value. With the 1.2.6 release, vEcoShell now lets PowerCLI manage all connections. This means we were able to remove all custom code from our script library. Nearly every script that is in vEcoShell today can be run externally. Simply copy a code block from the "PowerShell Code"...
Sunday, May 16. 2010
PowerShell Inside is a new and separate division of /n software focused exclusively in PowerShell technologies. PowerShell Inside products make technologies more customizable by enhancing them with PowerShell scripting. /n software has built these tools to provide an easy way to enhance and integrate applications without the complexity or expense of custom development. With PowerShell you get comprehensive access to the power of the .NET Framework in an easy to use interface that is tailor-made to help you get more work done, faster.
The following PowerShell Inside products are currently available:
• PowerShell ASP - Build dynamic Web content with PowerShell.
• PowerShell Panel - A PowerShell powered ASP.NET Panel control.
• PowerShell SSH Server - Access PowerShell remotely from SSH terminals.
• PowerShell Web Part - Extend SharePoint portals with dynamic content.
• PowerShell Data Provider - Databind to PowerShell, like you Databind to SQL.
• PowerShell Office Add-In - Automate Outlook with PowerShell scripting.
• PowerShell SSH Components - Components for PowerShell SSH Server Access.
• PowerShell BizTalk Adapter - Automate BizTalk and simplify orchestrations.
• PowerShell SSIS Task - Automate SQL Server and simplify SSIS Workflows.
• PowerShell Workflow Activity - Simplify WF Workflows with PowerShell.
Monday, April 12. 2010
1.Installation of Windows PowerShell
2.Installation of VMware PowerCLI
3.Installation of The Virtualization EcoShell
On April 8th we had a very good DutchVMUG meeting, which was totally dedicated to using PowerCLI and The VESI (Virtualization EcoShell Initiative). Although setting up the environment is straightforward, I wanted to do a small write-up which leads you through the install process and includes all download links needed.
Thursday, April 1. 2010
Pablo Roesch has just announced the winners of the Scriptomania contest, congratulations to everyone that participated!
We are happy to announce our Script-O-Mania contest Winners. Our judges were extremely excited about all the creative and useful scripts submitted into the community. The decisions were tough to make, some we even considered splitting the prize money but in the end we went with the following line up. Congratulations to all that won and participated. Also wanted to thank Scott L, Robert B, Jeff H. again for their efforts in participating as Judges.
Saturday, March 27. 2010
1) One file with all hosts and their compliancy state
2) One file with all attached baselines found
3) One file for every attached baseline found with its content
You can get you copy of Harold’s script here: Baseline-Compliancy.ps1 If you have any questions or suggestions for improvements just send your Tweets to @Hharold.
Monday, March 22. 2010
There are a lot of automation tools available which are able to deploy and configure an ESX host but if you want to use PowerCLI for the finishing configuration part there was always a manual step involved. I’ve found a way to start a PowerShell script from the service console trough SSH. The only thing you have to do is install WinSSHD on one of your Windows servers, just execute the distributable that you downloaded from the Bitvise website and follow the process. As soon as the installer completes, you will have a working WinSSHD installation on your machine. No changes to the default configuration are necessary; you only need to start it. However, you might want restrict your users' access to those features that they actually need, which will improve security. If you are new to WinSSHD, it’s highly recommended that you first make sure that you can establish a working SSH connection before you change any settings on the server. If you cannot connect to WinSSHD using its default configuration, this is most likely due to a network or firewall problem that you will need to resolve before you are able to connect. In its default configuration, WinSSHD accepts connections on the well-known port number for SSH servers, 22.
I’ve recorded a Jing video (with audio) which demos the CPU-Ready PowerCLI script running on my vCenter server launched from one of my ESX host’s service console.
Thursday, March 4. 2010
vCenter Update Manager PowerCLI provides an easy-to-use Windows Powershell interface to VMware vCenter Update Manager and has numerous cmdlets and sample scripts. vCenter Update Manager PowerCLI now also has its own VMTN forum. To find additional resources and exchange ideas with other users, visit http://www.vmware.com/go/powercliupdate.
Automate patching and update of the vSphere environment with the vCenter Update Manager PowerCLI. Cmdlets are provided for your most-frequently performed operations such as downloading software updates, creating baselines, scanning and remediating virtual machines components or hosts. vCenter Update Manager PowerCLI is distributed as a Windows PowerShell snapin, and comes with documentation and samples.
Thursday, January 7. 2010
After a second or 10 you’ll see the following output, followed by every property you can think of:
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.01.07 21:41:38 =~=~=~=~=~=~=~=~=~=~=~=
Connecting to : localhost at 443 as root over SOAP
Found 67 managed objects:
8. vim.DiagnosticManager::ha-diagnosticmgr Continue reading "Hidden tool: vmware-vimdump" »
Tuesday, December 22. 2009
Virtualization EcoShell is a freeware desktop application that enables IT administrators to unlock the full potential of their virtual infrastructure and reduce the daily operating costs of managing multi-platform environments. Virtualization EcoShell contains over 250 pre-built scripts to help administrators identify and resolve configuration and management challenges in their environment while providing daily cost-saving opportunities.
Ready to unlock the full potential of their virtual infrastructure and reduce the daily operating costs of managing multi-platform environments? Join Scott Herold, Lead Architect for Virtualization Solutions at Vizioncore, as he highlights the key best-practices of daily management and highlights the flexibility of Virtualization EcoShell.
Friday, December 18. 2009
Alan Renouf has just released version 3 of his Virtualization EcoShell PowerPack and it contains some great new features. In its short existence Alan’s PowerPack has already been downloaded over 2500 times. During the Dutch VMUG last Friday, I’ve presented a session which will give you a good insight into working with the Virtualization EcoShell and Alan’s PowerPack. Just to show you how easy it is to upgrade to the newest version, I’ve created a little Jing movie.Continue reading "How to upgrade Alan Renouf’s Virtualization..." »
Sunday, November 22. 2009
Currently I’m working very hard on my upcoming Dutch VMUG presentation. While I was testing the demo part which is going to be real cool btw, I discovered a real useful feature in the Virtualization EcoShell. The EcoShell Provides pre-defined and customizable reports as well as automated maps without hassle in HTML, XML and CSV formats, including support for Microsoft Visio. But if you want to hassle with XML, what’s the best way? The example screenshots show how to export a selection of data stores to an XML file and then create an Microsoft Excel Map by importing the XML from the file. Excel really does a good job with creating an XML-based representation objects from the EcoShell. The under laying technique is based on the Export-Clixml cmdlet, it creates an XML-based representation of an object or objects and stores it in a file. You can then use the Import-CLIXML cmdlet to re-create the saved object based on the contents of that file. This cmdlet is similar to ConvertTo-XML, except that Export-Clixml stores the resulting XML in a file. ConvertTo-XML returns the XML, so you can continue to process it in Windows PowerShell.
Friday, November 20. 2009
VMware vSphere PowerCLI 4.0 Update 1 has been tested against the beta release of vSphere 4.1. To find the related issues, see Known Issues, Compatibility with VMware vSphere 4.1 Beta.
What's New in This Release?
This release of vSphere PowerCLI 4.0 Update 1 introduces the following new capabilities:
•Managing the failover and load-balancing policies of VirtualSwitch and VirtualPortGroup objects with Get-NicTeamingPolicy and Set-NicTeamingPolicy.
•Copying files in and out of guest operating systems with Copy-VMGuestFile.
•Restarting virtual machines with Restart-VM.
•Managing the power state of hosts using Start-VMHost, Restart-VMHost, Suspend-VMHost, and Stop-VMHost.
•Managing guest networks with Get-VMGuestNetworkInterface, Set-VMGuestNetworkInterface, Get-VMGuestRoute, New-VMGuestRoute, Remove-VMGuestRoute, and Set-VMGuestRoute.
•Retrieving and removing USB devices with Get-UsbDevice and Remove-UsbDevice.
•Managing NIC customization settings with Get-OSCustomizationNicMapping, New-OSCustomizationNicMapping, and Set-OSCustomizationNicMapping.
•Handling virtual machine questions with Get-VMQuestion and Set-VMQuestion.
•Working with host storages and iSCSI HBA devices with Get-VMHostHba, Set-VMHostHba, Get-iScsiHbaTarget, New-iScsiHbaTarget, Remove-iScsiHbaTarget, Set-iScsiHbaTarget, and Set-VMHostStorage.
•Moving templates with Move-Template and Move-Inventory.
•Managing the access control system with Get-VIPrivilege, Get-VIRole, New-VIRole, Remove-VIRole, Set-VIRole, Get-VIPermission, New-VIPermission, Remove-VIPermission, and Set-VIPermission.
•Managing DRS recommendations with Get-DrsRecommendation and Apply-DrsRecommendation.
•Upgrading hosts with Install-VMHostPatch.
•Managing virtual appliances with Get-VApp, Export-VApp, Import-VApp, New-VApp, Remove-VApp, Set-VApp, Start-VApp, and Stop-VApp.
•Managing PCI and SCSI passthrough devices with Add-PassthroughDevice, Get-PassthroughDevice, and Remove-PassthroughDevice.
•Running BAT (Windows) and BASH (Linux) scripts with Invoke-VMScript.
•Granting and revoking shell access with New-VMHostAccount and Set-VMHostAccount.
•Uploading firmware packages with Set-VMHostFirmware.
•Creating virtual machines with thin provisioned disks with New-VM.
•Cloning powered-on virtual machines with New-VM.
•Resizing virtual disks and guest partitions with Set-HardDisk.
•Extending, cloning, inflating, and reallocating virtual hard disks with Copy-HardDisk, New-HardDisk, and Set-HardDisk.
•Managing the host time zones with Get-VMHostAvailableTimeZone and Set-VMHost.
•Working with default Datastore Provider and Inventory Provider drives.
•Working with files and directories in datastores by using the Datastore Provider.
For more information on changes made in vSphere PowerCLI 4.0 Update 1, including deprecations and security enhancements, see the vSphere PowerCLI Change Log.
Monday, November 16. 2009
Carter Shanklin just released the alpha version of project Onyx trough Twitter and YouTube. Onyx generates PowerShell code to help you solve your toughest automation challenges. See the full demonstration with a complete explanation of how to use Onyx at YouTube. Once you have downloaded Project Onyx (http://blogs.vmware.com/files/onyx_1.5.3607.25516.zip) this video shows you how to use it. I already did some tests and it looks awesome.
Onyx is a standalone application that serves as a proxy between the vSphere Client and the vCenter Server. It monitors the network communication between them and translates it into an executable PowerShell code. Later, this code can be modified and saved into a reusable function or script.
1. To connect to a server, click the "Connect" icon.
2. Enter the IP of the vCenter Server on which you want to work and click Connect.
3. Connect with any of the following clients:
For vSphere Client, in the "IP Address" field enter the following address:
http:// [IP of the machine where Onyx is running] : [listening port]
For vSphere PowerCLI, run the following command:
Connect-VIServer [IP of the machine where Onyx is running] -Protocol http
-Port [listening port] -User [username] -Pass [password]
4. To start the generation of PowerCLI.NET scripts, click the "Start" icon.
5. To save the generated script, click the "Save output to file" icon.
Note: To run the generated script, use VMware vSphere PowerCLI.
Free download at: http://www.vmware.com/go/powercli
Monday, November 2. 2009
Alan invited me to the beta, so the only thing I had to do is upgrade the PowerPack. It’s as simple as one, two, three. There’s only one little problem, I have to recapture a lot of screenshots for my upcoming VESI presentation at the Dutch VMUG the 11th of December.
Sunday, October 11. 2009
Scott Herold is happy to announce that the 1.2 version of Virtualization EcoShell is officially available for download at TheVESI.org Download Page.
We’ve added several new key features that we will be highlighting on our blog over the next several days! Make sure you you download the newest release and give it a shot! Don’t forget to check back here for tips and tricks on how to use the new features over the next few days!
New in the Virtualization EcoShell 1.2 Release
•Charts Tab allowuing users to graph any information presented in the grid view using various chart formats
•Best Practices Filters allow customers to easly perform daily checks of common misconfigurations
•Custom Attribute Manager allows users to view all custom attributes and quickly modify custom attribute values against multiple entities
•Hyper-V PowerPack allowing administrators to manage indivdual Microsoft Hyper-V installations using PowerShell
The first new feature that stroke my eye was the Chart tab in the Grid. After some customization , I was able to create really cool charts. You can select different types like Area, Column, Doughnut, Line, Scatter, Stacked Area and Stacked Column. The horizontal axes labels hold the category and can be fed by everything that’s measurable. You can also select multiple legend entries.
Monday, October 5. 2009
Pablo Roesch : Folks, Our marketing team put together a nice poster with all the PowerCLI commandlets for your enjoyment. We handed some out during VMworld and have a few hardcopies left. Here is a PDF for folks that are interested. Regards, Pablo Download Powercli-poster.
Friday, August 28. 2009
You definitely have to attend Scott Herold’s session (DS-16) at the VMware Developer day or Carter Shanklin’s PowerShell session at the VMworld 2009. In those two sessions you might see the new version of the Virtualization EcoShell 1.2 in action. Since I’m not attending but delivering a VMware ICM training instead :-( Scott Herold was kind enough to let me do some pre-testing with version 1.2. The upgrade went smooth. The first new feature that stroke my eye was the Chart tab in the Grid. After some customization , I was able to create really cool charts. You can select different types like Area, Column, Doughnut, Line, Scatter, Stacked Area and Stacked Column. The horizontal axes labels hold the category and can be fed by everything that’s measurable. You can also select multiple legend entries.
Thursday, August 27. 2009
Onyx generates code to help you solve your toughest automation challenges.
See the full demonstration with a complete explanation of how to use Onyx at VMworld -- session VM2241. Bring your business card if you want to be 1 of ten beta (maybe VMware should make that alpha) testers.
Tuesday, August 18. 2009
I’ve stumbled on a great demo created by someone from China, it’s about controlling virtual distributed switches with PowerCLI. I’m trying to contact this (137145shi) guy because he didn’t post a download link or a homepage URL. The only thing I can see in the video is that he’s copying some VDSAutomation.dll files.
We? developed a PowerShell snap-in to manage vSphere vDS , which could help VI admins a lot. This vedio is a demo about vDS management cmdlets implemented in PowerCLI. There are some preliminary vDS cmdlets showed in this demo and they are listed as follows.
update : Here is the supervisor's official response:
"Sorry this tool is still a bit unbaked as of now, hence no download information. In the mean while, you may attend the upcoming VMworld 2009 TA3521 session, where a number of 3rd party and/or open source Virtual Switch/Networking related management and troubleshooting tools are going to be demonstrated and discussed for the first time."
Tuesday, August 4. 2009
New in this release: dockable windows in the main console, new message pane, support for Posh v2 modules, and configurable, recently opened files function that remembers your tabs in the editor. See the release notes attachment for details.
Wednesday, July 15. 2009
This script will save you time and resources.
I have been using this script for the past month and it has highlighted a number of issues which would have been harder to find without it.
Daily Report does what it says on the tin, it runs as a scheduled task before you get into the office to present you with key information about your infrastructure in a nice easily readable format.
This script picks on the key areas of the virtual infrastructure and reports it all in one place so all you do in the morning is check your email.
One of they key things about this report is if there is no issue in a particular place you will not receive that section in the email, for example if there are no datastores with less than 5% free space (configurable) then the disk space section will not show in the email, this ensures that you have only the information you need in front of you when you get into the office.
So what areas does this script report on ?
Firstly it will give you a very brief summary detailing some of the critical information, it does not list every name and how many cpu’s or how much memory your vms and hosts have as that would be a audit report not a daily report.