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.

demandé il y a un an326 vues
3 réponses
0
Réponse acceptée

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
EXPERT
répondu il y a un an
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
EXPERT
répondu il y a un an
0

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

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions