Pivotal Knowledge Base


How to find which Apps are Running in a Diego Cell


Pivotal Cloud Foundry® (PCF) Version 1.7.x


This article describes how you can determine which applications are running on a specific cell. You might want to do this prior to restarting/recreating a cell or perhaps as a part of troubleshooting problems.


You can get either the apps name or the apps URL in the following manner. I have two examples here and in both cases, I assume that the IP address of the Diego cell is You can replace the IP address with the suitable one on your side.

1. Here is the way to get the apps' name running in a specific cell.

You can use one command to achieve this. Please replace the ip_address_of_diego_cell with the real one on your side.

curl http://ip_address_of_diego_cell:1800/state|python -m json.tool |grep process_guid|cut -d ':' -f2|cut -c 3-38|xargs -I '<guid>' cf curl '/v2/apps/<guid>'|grep '"name"'|cut -d ':' -f2|sort -u

Here is an example on my side.

ubuntu@pivotal-ops-manager:~$ curl|python -m json.tool |grep process_guid|cut -d ':' -f2|cut -c 3-38|xargs -I '<guid>' cf curl '/v2/apps/<guid>'|grep '"name"'|cut -d ':' -f2|sort -u
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4780    0  4780    0     0   687k      0 --:--:-- --:--:-- --:--:--  777k

2. Here is the other way to get the apps' URL running in a specific cell:

1) Get the password of Status Credentials in Elastic Runtime > Credentials > Router >Status Credentials
Here is mine for your reference:


2) Get the IP address of gorouter:
Here is my example, it is running in a specific cell. 

ubuntu@pivotal-ops-manager:~$ bosh vms|grep router
Acting as user 'director' on 'p-bosh-05f96aa4a0bc7e91b12f'
RSA 1024 bit CA certificates are loaded due to old openssl compatibility
| router-partition-1506967bb2eea78b2b46/0 (c66d0314-86c9-43da-a606-100d49bd80ee)                        | running | n/a | router-partition-1506967bb2eea78b2b46                        | |

3) Open the following page for all app routes:

http://router_status:<password>@<router IP>:8080/routes

Here is my example, the password gets in step 1 while router IP is


4) Copy the result of all app routes into a file, format like below and then filter by the specific Diego cell IP address:

Here is my example, all app routes are saved into the file test and I would like to list apps in Diego cell only. You can omit those URLs without the IP address followed.

ubuntu@pivotal-ops-manager:~$ python -mjson.tool test|grep -v '{'|grep -v '}'|grep -v ttl|egrep "\[|"
    "*.login.system.xxxx.com": [
    "*.uaa.system.xxxx.com": [
    "api.system.xxxx.com": [
    "app-usage.system.xxxx.com": [
    "apps-manager-js.system.xxxx.com": [
            "address": "",
            "address": "",
    "apps.system.xxxx.com": [
            "address": "",
            "address": "",
            "address": "",
    "apps.system.xxxx.com/2": [
            "address": "",
            "address": "",
    "autoscale.system.xxxx.com": [
    "c9cb3082-4710-410a-798d-fc885def1b55.app.xxxx.com": [
            "address": "",
    "console.system.xxxx.com": [
            "address": "",
            "address": "",
            "address": "",
    "console.system.xxxx.com/2": [
            "address": "",
            "address": "",
    "doppler.system.xxxx.com": [
    "loggregator.system.xxxx.com": [
    "login.system.xxxx.com": [
    "notifications-ui.system.xxxx.com": [
            "address": "",
            "address": "",
    "p-mysql.system.xxxx.com": [
    "proxy-0-p-mysql.internal.system.xxxx.com": [
    "proxy-0.p-mysql.system.xxxx.com": [
    "proxy-1.p-mysql.system.xxxx.com": [
    "uaa.system.xxxx.com": [




  • Avatar
    Christian Stein

    Hi David, was using this curl command for troubleshooting Garden containers. Unfortunately port 1800 is blocked now with ERT 1.10. And on my customer site I cannot http into the router getting the status (only https/443 is allowed and no direct routing). Would you see any possibility how this could work with ERT 1.10?

  • Avatar
    muni sekhar reddy chada

    `cd /var/vcap/jobs/rep/config/certs; curl -k -s https://localhost:1801/state --cert server.crt --key server.key | json_pp`.

    To scan all the diego cells and dump out the available resources -
    cd `/var/vcap/jobs/rep/config/certs` directory on diego cell.
    do this to get `jq` on the PATH: `source /var/vcap/jobs/cfdot/bin/setup; which jq`
    then `for u in $(curl -s | jq -r .[].Value | base64 -d | jq -r .rep_url); do echo $u; curl -s -k --cert server.crt --key server.key "${u}/state" | jq .AvailableResources; done`

Powered by Zendesk