Reboot instance in sequence

0

Is there anyone here that has Document or script that can reboot multiple instances in order? The logic of the solution or script I want to achieve is Server 1 will reboot first then wait for netlogon service to start before restarting Server 2.

preguntada hace un año327 visualizaciones
3 Respuestas
0
Respuesta aceptada

Hi, apart from above, you could look inspiration in this: https://repost.aws/knowledge-center/start-stop-lambda-eventbridge.

Personally, I would combine the above with an orchestrator such as step function and see if you can achieve the waiting of service programmatically.

Hope it helps ;)

profile picture
EXPERTO
respondido hace un año
0

Arh your wanting to reboot domain controllers

You could use a mixture of aws cli to reboot an instance then a power shell script to check the status of the netlogon service remotely. This of course requires access to the servers directly.

https://theitbros.com/get-service-powershell/

profile picture
EXPERTO
respondido hace un año
0

Thanks guys for the suggestions. I created an automation document and create steps to restart and check window service Enter image description here

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas