How to perform automatic update of multiple nodes on the same machine?

We update nodes in waves to do not shutdown the network at the same time.
So, it will be updated when its time to come (depends on NodeID).