The function gets the state of services on remote servers