# How to extract 'restart pending' processes list from Deployment status page?

**URL:** <https://community.dynatrace.com/t/how-to-extract-restart-pending-processes-list-from-deployment-status-page/19744>\
**Category:** Open Q&A\
**Tags:** oneagent\
**Created:** [February 23, 2019, 1:38pm UTC](https://community.dynatrace.com/t/how-to-extract-restart-pending-processes-list-from-deployment-status-page/19744 "2019-02-23T13:38:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![skanchalwar2](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@skanchalwar2](https://community.dynatrace.com/u/skanchalwar2)\
**Post date:** [February 23, 2019, 1:38pm UTC](https://community.dynatrace.com/t/how-to-extract-restart-pending-processes-list-from-deployment-status-page/19744/1 "2019-02-23T13:38:59Z")

</div>

Scenario → I’m on deployment status page. We are done with all agents update activity. Now I want to send all these server names and respective ‘restart pending’ processes to a different team. Pls advise how to do it. I don’t want to expand each server and manually copy-paste the processes to a text editor.

---

<div class="post-metadata">

**Author:** ![imoskovko1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imoskovko1/32/3573_2.png) [@imoskovko1](https://community.dynatrace.com/u/imoskovko1)\
**Post date:** [February 23, 2019, 5:51pm UTC](https://community.dynatrace.com/t/how-to-extract-restart-pending-processes-list-from-deployment-status-page/19744/2 "2019-02-23T17:51:38Z")

</div>

Hello.

I am mnot sure it is published out

but you have to study API docs [https://www.dynatrace.com/support/help/extend-dyna…](https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/)

Regards, Igor

---

<div class="post-metadata">

**Author:** ![imoskovko1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/imoskovko1/32/3573_2.png) [@imoskovko1](https://community.dynatrace.com/u/imoskovko1)\
**Post date:** [February 24, 2019, 6:24am UTC](https://community.dynatrace.com/t/how-to-extract-restart-pending-processes-list-from-deployment-status-page/19744/3 "2019-02-24T06:24:01Z")

</div>

Fresh info here:

[https://community.dynatrace.com/spaces/482/dynatrace-open-qa/questions/192233/dynatrace-managed-alert-on-hostprocess-needs-to-be.html](https://community.dynatrace.com/spaces/482/dynatrace-open-qa/questions/192233/dynatrace-managed-alert-on-hostprocess-needs-to-be.html)

---

<div class="post-metadata">

**Author:** ![jortiz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jortiz/32/14548_2.png) [@jortiz](https://community.dynatrace.com/u/jortiz)\
**Post date:** [February 24, 2019, 10:36pm UTC](https://community.dynatrace.com/t/how-to-extract-restart-pending-processes-list-from-deployment-status-page/19744/4 "2019-02-24T22:36:09Z")

</div>

You need to build code to query Topology Smartscape Processes API and there you got and example answer like this [https://www.dynatrace.com/support/help/extend-dyna…](https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment/topology-and-smartscape-api/topology-smartscape-api-processes/#expand-1098example)

```auto
"monitoringState": {<br> "actualMonitoringState": "ON",<br> "expectedMonitoringState": "ON",<br> "restartRequired": false<br> },

```

Then you can process restartRequired parameter and check which ones are **true.**

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 25, 2019, 7:30am UTC](https://community.dynatrace.com/t/how-to-extract-restart-pending-processes-list-from-deployment-status-page/19744/5 "2019-02-25T07:30:31Z")

</div>

Here is a "2-liner " using curl and jq, just set the TENANT and APITOKEN environment variables:

```auto
curl -X GET "https://$TENANT/api/v1/entity/infrastructure/hosts?relativeTime=day&Api-Token=$APITOKEN" -H "accept: application/json; charset=utf-8" |jq -s '.[]| map({(.entityId): .displayName})|add' >hostsmap<br>curl -X GET "https://$TENANT/api/v1/entity/infrastructure/processes?relativeTime=day&Api-Token=$APITOKEN"| jq -s '.[][]|select ( .monitoringState.restartRequired==true )| .fromRelationships.isProcessOf[0]|=$hosts[.] | { "hostname" : .fromRelationships.isProcessOf[0], "processName": .displayName }' --argfile hosts hostsmap<br>

```
