Enable / Disable alerts on ESXi Cluster script

Share This:

 
Continue reading…

 

Configure all vDS port groups as Elastic script – vSphere 6.0 (vds 5/5.5)

Share This:

Tested on vSphere 6.0u1 vDS 5 and 5.5, Nov 2016
Continue reading…

 

vBlock upgrade: Cisco Nexus 1000v VSM upgrade guide – example target version 5.2(1)SV3(1.5a)

Share This: Cisco Nexus 1000v VSM upgrade 1.Download the necessary files from VCE portal based on your target RCM 2.Verify all the prerequisites on Cisco documentation: (here’s the example for version we are upgrading to 5.2(1)SV3(1.5a) http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus1000/sw/5_2_1_s_v_3_1_5a/install_upgrade/guide/b_Cisco_N1KV_VMware_Install_and_Upgrade_Guide_521SV315a/b_Cisco_N1KV_VMware_Install_and_Upgrade_Guide_521SV314a_chapter_010.html#d8382e1765a1635 3.Make sure there is sufficient space on active and standby VSM: Log into active VSM check active VSM disk space: […]
Continue reading…

 

vSphere 6u2 permissions vs perl SDK API calls.

Share This: Prior to upgrading to vSphere 6  (running 5.5) my user account had a read-only privileges on the vSphere object, Datacenter object, as well as some grater rights on clusters, vDS and datastore. Using Perl SDK to deploy new VM’s – vmcreate.pl worked fine. PowerCLI C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\apps\vm> perl .\vmcreate.pl –url https://vCenterServer.local:443/sdk/webService –filename C:\Sc ripts\XMLVM.xml –schema C:\Scripts\Schema.xsd […]
Continue reading…

 

vCloud Director RESTapi using powershell to disable org,orgvdc and poweroff vApps

Share This: Script written to automate vCD cancellation process using powershell and REST. It takes vcd and organization as input and cancel that customer in multi tenant environments. By cancel I mean disable org,orgvcd and power off all existing vApps.

Any questions let me know! Enjoy.
Continue reading…

 

Powershell & SSH-Module – automated ssh/sshd configuration changes for multiple nodes

Share This: This script uses powershell ssh module and provides a quick way for global configuration changes if puppet/chef etc is not available in your environment. Below is an example of ssh/sshd changes. Moreover using invoke-sshcommand can perform any  action / pass parameters to the shell.

Enjoy.
Continue reading…

 

Powershell,ovftool & powercli unattended deployment Tips

Share This: Typical vCC deployment command syntax is:

Here’s how to obtain some of those parameters (PowerCLI): Get host from specific cluster:

Get datastore with most free space for specific cluster:

Get network with specific content/prefix:

Have fun!
Continue reading…

 

ovftool syntax and escaping special characters

Share This: Came across an issue (what are the odds for that ?) where my password did not go along with ovftool syntax. The syntax is vi://username:password@vcserveraddress You could see having @ is a problem, as well as ad account having ‘ad\’ , found this blog by Steve Flanders which allow me to bypass this […]
Continue reading…

 

Automated deployment of vCC Server/Node on biggest datastore/dmz network/LDAP auth using powershell and powerCLI

Share This:

EDIT – Struggling with VAMI property key does not exist, here’s the workaround. Let the VM boot without applying network settings and use PowerCLI – Invoke-VMScript

Enjoy. Datastore calculations found on http://www.spug.co.uk/?p=185 @Thanks! Also William Lam’s post http://www.virtuallyghetto.com/2011/11/unattended-deployment-of-vcloud.html – Thanks!
Continue reading…

 

VCAP5-DCA Objective 1.2 Configure and Administer storage based profile / policies

Share This: Quick and easy post on VCAP objective with regards to vSphere storage profiles. Profile driven storage is a great way to efficiently manage storage capabilities, its usage and associated cost. In a simple words: Let’s say customer’s on-premis or cloud-based VDC contains some LUN from cheap SAN that uses 2TB 7k drives (inexpensive and average performance) and […]
Continue reading…