Subscribe Now

  • Twitter
  • Facebook Social Icon

Copyright © 2019 nukescloud

  • Arun Nukula

Check vRA Services status via API

As a first step login into vRA appliance

Set VRA variable to the vRA appliance you would like to check the services on

export VRA=<vra-fqdn>

Then execute following command ( just copy and paste on the shell session , as the variable is already set in your previous step )

curl --insecure -f -s -H "Content-Type: application/json" "https:/$VRA/component-registry/services/status/current?limit=200" | sed "s/}/\n/g" | grep -E -o ".serviceName.*serviceInitializationStatus.[^,]*" | sed "s/\"serviceTypeId.*,//g" | sed -e "s/\"//g" -e "s/:/=/g" -e "s/,/, /" | sed -e "s/serviceName\|serviceInitializationStatus\|=\|,\|null//g" | column -t | sort | cat -n

Now see the fun