Checking the status of services

You can check the status of the Dgraph, the HDFS Agent, Studio, and the Dgraph Gateway by running the bdd-admin script with the status command.

Run the following command from the Admin Server:
./bdd-admin.sh status [component] <option>

You can specify any of the component and option arguments listed in About the bdd-admin script.

When the script runs, it checks to see if the specified services are running, unresponsive, or stopped. It outputs one of the following messages for each service, depending on its status:
[<hostname>] <service> (pid <number>) is running...
[<hostname>] <service> (pid <number>) is not responsible...
[<hostname>] <service> is stopped.

Examples

The following command returns the status of every Dgraph, HDFS Agent, Studio, and Dgraph Gateway service in the cluster:
./bdd-admin.sh status --all
If all components were running, the script's output would be similar to the following:
[<hostname>] Dgraph (pid <number>) is running...
[<hostname>] Agent (pid <number>) is running...
[<hostname>] Studio and Endeca Server (pid <number>) is running...
The following command returns the status of just the Dgraph service on the web009.us.example.com server:
./bdd-admin.sh status --dgraph web009.us.example.com
If the Dgraph were not running, the script would output the following:
[web009] Dgraph is stopped.