This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//action Inputs: | |
// vmName - string | |
// | |
//Return Type: VC:VirtualMachine | |
var found = VcPlugin.getAllVirtualMachines(null, "xpath:name[matches(.,'"+vmName+"')]"); | |
if (found.length > 1) { | |
throw(vmName+" matched more than one Virtual Machine"); | |
} | |
if (found.length == 1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Action Inputs: | |
// vm - VC:VirtualMachine | |
// scsiController - number (Defaults to 0) | |
// | |
//Return Type: number | |
var devices = vm.config.hardware.device; | |
var controllerKey; | |
var controllerUnit; // typically '7' | |
if (scsiController == null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************** | |
* Parses a CSV string as an array of Properties. | |
* The first row of the CSV file is assumed to be | |
* the header row. This row will act as the keys | |
* for each rows "Properties" object. | |
* | |
* Written for VMware vRealize Orchestrator (vRO) | |
******************************************************/ | |
//Action Inputs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
MAINTAINER Lino Telera Linoproject.net <[email protected]> | |
# Install base packages | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get -yq install \ | |
python \ | |
python-pip python-dev build-essential \ | |
openssh-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script from http://poshcode.org/?show=928 | |
function Get-VMHostWSManInstance { | |
param ( | |
[Parameter(Mandatory=$TRUE,HelpMessage="VMHosts to probe")] | |
[VMware.VimAutomation.Client20.VMHostImpl[]] | |
$VMHost, | |
[Parameter(Mandatory=$TRUE,HelpMessage="Class Name")] | |
[string] | |
$class, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Action Inputs: | |
// resourceId - string | |
// | |
//Return Type: string | |
var hosts = Server.findAllForType("vCACCAFE:VCACHost"); | |
var cafehost = hosts[0]; | |
var catalogResource = vCACCAFEEntitiesFinder.getCatalogResource(cafehost, resourceId); | |
return catalogResource.providerBinding.getBindingId(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# @file install_esxi_host_client | |
# Download and install the ESXi html client and patch | |
# @see https://labs.vmware.com/flings/esxi-embedded-host-client | |
# @author Alister Lewis-Bowen <[email protected]> | |
set -e | |
is_installed() { | |
# @see https://gist.github.com/JamieMason/4761049 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# @file install_esxi_host_client | |
# Download and install the ESXi html client and patch | |
# @see https://labs.vmware.com/flings/esxi-embedded-host-client | |
# @author Alister Lewis-Bowen <[email protected]> | |
set -e | |
is_installed() { | |
# @see https://gist.github.com/JamieMason/4761049 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Dennis Zimmer, company: opvizor GmbH | |
# HTML structure based on: | |
# http://www.myexchangeworld.com/2010/03/powershell-disk-space-html-email-report/ | |
# Script based on sVMotion history | |
# Source: http://www.lucd.info/2013/03/31/get-the-vmotionsvmotion-history/ | |
# Variables | |
$from = "sender@" | |
$to = "receiver@" | |
$subject = "VMware SVMotion Activities - $Date" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Track Datastore Space script # | |
# # | |
################################################### | |
# Variables # | |
############# | |
$VIServer = Read-Host "Enter IP or Hostname for your VI Server" | |
$digits = 2 | |
$Folder = 'C:\Scripts' |
OlderNewer