Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1450

April 24th, 2015 11:00

Where are ESXi servers stored in PPVE 2.0

Hello,

I need to run some rpowermt commands against all of my ESXi servers that are discovered by the Powerpath/VE License Appliance. I need to collect all of the ESXi servers in a script. Where does the appliance keep these hostnames? They have to be somewhere for me to steal them.

Thanks.

5 Practitioner

 • 

274.2K Posts

April 27th, 2015 22:00

You don't need any extra plugin to send the GET request, you can use any browser. Please follow the steps below to get the host list in JSON format using REST interface

  1. Navigate to https:// /LicenseReportingApplication
  2. Provide the credentials and login
  3. Open a new tab in browser and navigate to: https:// /LicenseReportingApplication/rest/powerpath/hosts/

5 Practitioner

 • 

274.2K Posts

April 27th, 2015 05:00

Hi Daniel,

You can use the REST interface to fetch those details from PowerPath Appliance 2.0.

REST Method: GET

REST URL:  https:// /LicenseReportingApplication/rest/powerpath/hosts/

Data Format: The data is returned in JSON format.

Please note that the  REST interface access requires you to authenticate with the appliance first. If you're using a script to make REST calls, then please check the Page 5 of PowerPath Virtual Appliance REST API guide for details on how to authenticate with appliance programmatically.

If you're using a browser plugin, logging into appliance prior to sending REST request should do the trick.

309 Posts

April 27th, 2015 07:00

I was hoping I could get these hosts from the CLI so I can run a bash script with rpowermt to do all sorts of cool things. Anyway, any certain REST client/plugin I should use?

5 Practitioner

 • 

274.2K Posts

April 27th, 2015 21:00

You could  login to the appliance using ssh and run the following to get the list of hosts "rpowermt setup list_hosts".

5 Practitioner

 • 

274.2K Posts

April 27th, 2015 22:00

Please ignore my comment, please use the method mentioned by Hanish.

309 Posts

April 28th, 2015 05:00

What's wrong with rpowermt setup list_hosts? REST doesn't help as I need to run a bash script using rpowermt commands to query each ESX host for info. I just need an automated way to grab the ESX hosts from the appliance from within my bash script.

309 Posts

April 28th, 2015 05:00

I found the Mozilla plugin, thanks.

5 Practitioner

 • 

274.2K Posts

April 28th, 2015 22:00

With "rpowermt setup list_hosts" you'll get only the hosts against which you've run an rpowermt command before. So it  might not return list of entire hosts that vApp have.

309 Posts

April 29th, 2015 04:00

Yup. Noticed that. I will have to make that work.  Thanks.

No Events found!

Top