#NEWLINE# def _CallClients( self , client_id_list ) : #NEWLINE# #INDENT# now = rdfvalue . RDFDatetime ( ) . Now ( ) #NEWLINE# due = ( now + rdfvalue . Duration ( config_lib . CONFIG [ 'StatsHunt.CollectionInterval' ] ) ) #NEWLINE# for client in aff4 . FACTORY . MultiOpen ( client_id_list , token = self . token ) : #NEWLINE# #INDENT# if ( client . Get ( client . SchemaCls . SYSTEM ) == 'Windows' ) : #NEWLINE# #INDENT# wmi_query = 'Select * from Win32_NetworkAdapterConfiguration where IPEnabled=1' #NEWLINE# self . CallClient ( 'WmiQuery' , query = wmi_query , next_state = 'StoreResults' , client_id = client . urn , start_time = due ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . CallClient ( 'EnumerateInterfaces' , next_state = 'StoreResults' , client_id = client . urn , start_time = due )