Access vCenter Rest API via Postman

I wanted to do some testing on Center rest API, so I get the relevant method from centre developer page(ex https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/api/vcenter/vm/get/) and trying to get it using postman. Then I’m getting an unauthenticated error. So I tried with the password as well using basic authentication. But the result was the same

To avoid this error. First, we need to get the session id using basic authentication. Please see the below picture.

The method should be Post

Basic authentication and we can use our credential

This will generate a session id. We need to copy this

After that, I was able to avoid that error.

We need to use API key authentication and the key value should be the session id which we copied earlier.

How to increase disk space of vCenter appliance

vCenter appliance is a vm and most of the time we are running it on the same ESXi cluster.

In some cases we may need to increase the disk capacity of some partition(most of the time its log file path).If our vCenter is running out of disk space, vCenter related services may not tart as expected. To resolve this issue we need to increase the free space capacity of the vCenter appliance.

How to do this

Continue reading “How to increase disk space of vCenter appliance”

how to use telnet command in vCenter appliance putty session

Telnet is the command which we can easily use to check the service status of the remote system.

Ex if we can telnet to vCenter server from our desktop using port 443, we can say that web services of the vCenter is up

But when we use vCenter shell or ESXi shell, we cannot use telnet command.

clip_image001

As an alternative option, we can use curl command. Please refer the below screen capture

clip_image002

 

curl -v telent://vcsa-01a:443

vSphere 6.7 Quick boot

vSphere 6.7 quick boot is new feature which is integrated with update manager. When we performing patching activities with earlier versions of vSphere most of the time we need to reboot the ESX hosts. This is very painful because normayy it will take more than 5 minutes to reboot hardware server. Also sometimes we may need to login using ILO\BMC\IDRAC and check the boot status.

With the version 6.7 we can configure quick boot of ESX hosts.This feature will allow us to reboot only the hypervisor without rebooting ESX’s hardware.

Requirements of this feature-

This feature will not work with all the hardware servers.we can follow below link to get the compatible hardware models.

Dell severs

HP Servers

How to check the compatibility of your server-

We can run

/usr/lib/vmware/loadesx/bin/loadESXCheckCompat.py

And check the compatibility of our server with quick boot.

clip_image001

How to configure this feature

1.login to your vCenter web client

Go to the update manager

Select Manage

Select Settings

Click on Edit

clip_image002

Enable quick boot

clip_image003

Now we are going to remediate one of my esx host.

From the target host we can see qucik boot is enable on this

clip_image004

clip_image005

I used VMware hol HOL-1904-01-SDC-HOL to test this feature

Reference links

https://kb.vmware.com/s/article/52477