# On-demand Schedule to Enable/Disable the Host Monitoring

**URL:** <https://community.dynatrace.com/t/on-demand-schedule-to-enable-disable-the-host-monitoring/21204>\
**Category:** Dynatrace API\
**Tags:** hosts-classic, dynatrace-api\
**Created:** [January 13, 2021, 1:42pm UTC](https://community.dynatrace.com/t/on-demand-schedule-to-enable-disable-the-host-monitoring/21204 "2021-01-13T13:42:04Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 14, 2021, 10:53am UTC](https://community.dynatrace.com/t/on-demand-schedule-to-enable-disable-the-host-monitoring/21204/7 "2021-01-14T10:53:34Z")

</div>

Hello [@Antonio S.](https://answers.dynatrace.com/users/9493/view.html)

Thank you for the details.

**Point # 1** :

- Where it will be configured (_ **/etc/crontab** _)?
- Will the below commands star/stop hosts or disable monitoring?

00 \* \* \* 1-5 nnnnnnnnnn cd /home/nnnnnnnnnn/APIdyna && **./startHosts.sh**  
58 \* \* \* 1-5 nnnnnnnnnn cd /home/nnnnnnnnnn/APIdyna && **./stopHosts.sh**

**Point # 2** :

- Do you mean reenabling/disabling the host monitoring with curl command instead of the UI?

Regards,

Babar

---

_[View the full topic](https://community.dynatrace.com/t/on-demand-schedule-to-enable-disable-the-host-monitoring/21204)._
