How to list all ESX hosts that are attached to any Virtual Data Centre Subscription on the Satellite Server?
Environment
- Red Hat Satellite 6.3
Issue
- How to list all ESX hosts that are attached to any Virtual Data Centre Subscription on the Satellite Server?
Resolution
- Run the below command to list all ESX hosts that are attached to any Virtual Data Centre Subscription.
curl -s -u admin:password -k 'https://<satellite.example.com>/katello/api/v2/organizations/<organization-id>/subscriptions?per_page=15000&search=Datacenters'|python -m json.tool |awk -F'"' '/virt-who/{print $4}')
- NOTE : Replace the satellite.example.com,organization-id, admin and password with the respective values.
For more KB articles/solutions related to Virt-who and Virtual Datacenter (VDC) Subscriptions Issues, please refer to the Consolidated Troubleshooting Article for Virt-who and Virtual Datacenter (VDC) Subscriptions Issues
SBR
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.