def server_enabled(s_name, **connection_args):
 server = _server_get(s_name, **connection_args)
 return ((server is not None) and (server.get_state() == 'ENABLED'))

def server_enabled ( s_name , ** connection_args ) : server = _server_get ( s_name , ** connection_args ) return ( ( server is not None ) and ( server . get_state ( ) == 'ENABLED' ) )
check if a server is enabled globally cli example: .