List all servers in planet

Hi!

We have Edge OPDK 4.19.01.

Is there a command for listing all servers in the planet?

It's not that I don't know my servers, I'd just like to know, after adding and removing servers and components, what does Apigee think the planet looks like? Are there lingering references to servers that are decommissioned?

0 1 426
1 REPLY 1

A nice, clean, official way to do it is to use Management API to call Management Server to request your pod details.

Default names of pods at the planet are: gateway, central, analytics.

Example curl command:

curl -n http://<<em><strong>ms_IP</strong></em>>:8080/v1/servers?pod=<em><strong>gateway</strong></em>;

For details, see:

https://docs.apigee.com/private-cloud/v4.19.01/viewing-pod-details

An alternative, 'hacky' way is to dump contents of ZooKeeper database using

/opt/apigee/apigee-zookeeper/contrib/zk-tree.sh

utility. This way you will see any remnants of any servers that Edge thinks there are, even if you think you disposed of them.

Both methods are useful for different reasons and purposes as part of monitoring/troubleshooting activities.