In one of the environments there are over 100 managed servers running in a domain.
I need to find only those server names which are in RUNNING state.
I am using :
for server in servers :
which lists all the 100+ managed servers' names.
Please suggest how can I get the names of only the RUNNING servers (and not the servers which are SHUTDOWN).