Check VMware Tools Status

I wanted to perform a mass graceful shutdown of VM’s as part of an orchestrated lift-and-shift effort. When I started my preparation work, which mainly consisted of me testing scripts in my lab environment, it dawned on me that not all of my Production VM’s have VMware Tools installed. So how can I go about…

Read more...

Automate Advanced Settings with ESXCLI

After my last post about NFS Performance decreasing after host reboots, I was tasked with implementing the workaround across our infrastructure. My two options are click through the GUI until my fingers bleed or automate. As you can assume by this post, we’re most definitely going with the latter. And we all know the best…

Read more...

vMotion: Launch Failure

Engineers are always diligent about patching, especially when it comes to the lab (wink wink). So being the diligent engineer that I am, yesterday afternoon I setup a job in Update Manager to patch all my hosts in my cluster. I stepped away to run an errand, and when I came back my first host…

Read more...

Modify SNMP with ESXCLI V2

If you’ve ever used the Get-EsxCli command then you are familiar with the the positional variables and the army of $nulls. For example, setting SNMP in the past would consist of something like this: $esxcli.system.snmp.set($null,’$community’,$true,$null,$null,$null,$null,’162′,$null,$null,$null,$null,$null,’192.168.22.64/public’,$null,$null) Each parameter (16 for SNMP as of ESXi 6.7) needs to have either a value or $null. This is tedious…

Read more...

Reclaim IP in NSX via API

One of the more tedious things in dealing with NSX is to reclaim an IP address that is no longer in use. Here is a method I use with Postman and the NSX API. Setup your Authorization to use you NSX Manager username and password: Next, perform a GET request to your NSX Manager: This…

Read more...

Authenticate to NSX Manager via API

When working with the NSX API, the first step is always authentication. Load up your NSX Manager FQDN (or IP address), along with the NSX Manager username and password as variables in your code. The following code will take your variables and convert them to base64 for consumption and authenticate to NSX Manager via API:…

Read more...