Ejemplo n.º 1
0
 def __init__(self):
     Super_dict.__init__(self)
    
     """
     Device db
    
     self.dict_db format is [hostname][ip  |  user specified fields]
     
     self.index is a list containing all hosts and is used to 
     resolve searches to a single host entry
     """
    
     self.path = os.getcwd() + '\\'
    
     self.device_file = self.path + 'Devices.csv'
     self.device_update_file = self.path + 'devices_updates.csv'
     self.bt_load_file = self.path + 'bt_Devices.csv'
     self.bt_update_file = self.path+ 'bt_device_updates.csv'
     self.win_host_file = 'C:/WINDOWS/system32/drivers/etc/hosts'
     self.alt_host_file = self.path + 'hosts'
    
     #self.dict_file = 'c:/device_db'
     
     self.device_load()
     self.load_hosts(self.win_host_file)
     self.load_hosts(self.alt_host_file)
Ejemplo n.º 2
0
 def __init__(self):
     Super_dict.__init__(self)
    
     """
     Device db
    
     self.dict_db format is [hostname][ip  |  user specified fields]
     
     self.index is a list containing all hosts and is used to 
     resolve searches to a single host entry
     """
    
     self.path = 'H:/crt/sessions/'
    
     self.load_file = self.path + 'Devices.csv'
     self.bt_load_file = self.path + 'bt_Devices.csv'
     self.bt_update_file = self.path+ 'bt_device_updates.csv'
    
     self.dict_file = 'c:/device_db'
     
     self.device_load()
     self.load_hosts()