Describe the REST API and demonstrate how to use the REST API explorer

Understanding REST API REST API is also known as Web Services API because behind the scenes, REST API calls are nothing but HTTP requests used to retrieve information from, or making changes to, the cluster. Response Codes In response to an HTTP request, the server (cluster) returns a HTTP response which carries a Response Code….

Read more...

Install and configure a REST client to trigger REST API and generate code snippets

Postman Powerful HTTP client for testing web services. Makes it easy to test, develop and document APIs by allowing users to quickly put together both simple and complex HTTP requests. Google Chrome app for interacting with HTTP APIs. It presents you with a friendly GUI for constructing requests and reading responses. Offers an add-on package…

Read more...

Execute PowerShell cmdlets in interactive and batch modes

PowerShell Interactive Mode (add-pssnapin) The PowerShell Interactive Mode allows you to run individual PowerShell commands inside the PowerShell mode. View some of the PowerShell cmdlets here. The Add-PSSnapin command allows you to load Nutanix PowerShell cmdlets into the PowerShell environment. Convert the raw password to a secure string. This step is required because the Nutanix…

Read more...

Perform unattended installation and configure Nutanix Guest Tools (NGT)

What is Nutanix Guest Tools? As a recap, let’s revisit what is included in the Nutanix Guest Tools (NGT) Bundle: Nutanix Guest Agent (NGA) Service: This provides CVM-to-VM communication. File Level Restore (FLR) CLI: Exactly what it sounds like. This allows users to recover files without the need of an administrator. Nutanix VM Mobility Drivers:…

Read more...

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...

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...