WebPowerCLI is a webpage which allows you to run PowerCLI commands. A major advantage of running PowerCLI through a webpage is that you can write and run scripts virtually from any platform having a web browser.
Download WebPowerCLI from GitHub
How to use it:
First cmdlet of your scripts must always be Connect-VIServer (...) in order to establish connection to the vCenter Server or to an ESXi host.
For example:
Connect-VIServer -Server <vcenter_ip_address> -User <username> -Password <password>
Features:
-Run PowerCLI from web.
-Autocomplete for PowerCLI cmdlets.
-Click to add cmdlet. Full syntax for any PowerCLI cmdlet.
-Every cmdlet links to official VMware documentation.
-Place your own PowerCLI scripts in "ps" folder in order to use them from WebPowerCLI.
-EsxCLI support.
Installation steps:
1)Install Windows 2012 and configure networking according to your vSphere environment (Windows server must be able to communicate with vCenter Server/ESXi hosts).
2)Install IIS Web Server.
3)Install PHP5
4)Open PowerShell and run Set-ExecutionPolicy Unrestricted.
5)Install VMware PowerCLI.
6)Copy all files from webpowercli.zip archive to your www directory. You could either create a new website from IIS either replace the default one.
Known Issues:
There are some issues in the current version of WebPowerCLI. For example PowerCLI comment tag "#" does not work. "Save to File" feature works only in Chrome and sometimes cmdlets require more than a single click to be inserted in Input text-area.
Disclaimer: I'm NOT a developer and I coded WebPowerCLI in my spare time. I'm totally aware the code is far from elegant and far from efficient but please don't take this software too seriously.
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. AUTHOR IS NOT RESPONSIBLE FOR ANY DAMAGE RESULTING IN USING THIS SOFTWARE.
Current WebPowerCLI version 1.0 - This page will be updated whenever new versions will be available.
Download WebPowerCLI from GitHub
Source: WebPowerCLI repository on GitHub
Nessun commento:
Posta un commento