Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

vCenter 6.5

Since there is no ETA on when 6.5 will be supported - here is a quick guide on how to bridge the gap.
Notes - I'm running these commands from a Linux machine - and monitoring the output written to log files.

1) Locate your vcenter API page
Make sure the page is accessible from the server you are running the queries from.
Get yourself a user with enough privileges to Login and Execute commands on the API page.

2) Bash time
Grab yourself a folder and create a credential file - yourcredentials.cred
Syntax for the content of the file is:
-u User:Password
(example) -u myapiuser@vsphere.local:supersecurepassword

Now, we need credentials to authenticate in order to get a sessionid:
curl -s -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'vmware-use-header-authn: test' --header 'vmware-api-session-id: null' -K yourcredentials.cred 'https://yourvcenter/rest/com/vmware/cis/session' --insecure > /tmp/sessionid.file

This should give you a sessionid(I think they are valid 1 hour by default, but don't quote me on that).
Gotta transform this one a bit so we can use it as HEADER parameter with all the queries we want - you are free to do this any way you want:
SESSIONID=`cat sessionid.file | cut -c 11- | rev | cut -c 3- | rev`

#echo $HEADER

Alright - we got everything we need to do queries now
curl -s -X GET --header 'Accept: application/json' --header $HEADER 'https://yourvcenter/rest/appliance/health/system' --insecure > /tmp/appliance_health_system

cat /tmp/appliance_health_system

Hope this helps

Labels (1)
3 Replies
Micro Focus Expert
Micro Focus Expert

FYI. Generic monitoring of ESXi 6.5 host(s) & VM(s) including those managed via vCenter server should be already available in QCCR1I123709 enhancement request. Please check below links if this might be part of one's use cases.

sitescope 11.40 IP2 for Windows/64

sitescope 11.40 IP2 for Linux/64

Best Regards,

Honored Contributor.
Honored Contributor.

HI Nuyanko,

I have installed the  required patch to support ESXi 6.5 but now there is no SDK inetrface for this verison of ESXi 6.5 

what I should write in the URL files in VMware performance monitor type ?? 

you reply is high appreciated ? 

Micro Focus Expert
Micro Focus Expert

In many customer environments, this is working as simple as documented.
e.g. https://myesxi65.example.com/sdk

However we CANNOT access SDK URL in your browser as it's using SOAP protocol.

Cannot access the SDK URL at https://servername/sdk(1003218)

Best Regards,

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.