def get_aix_data(ip, usr, pwd): if MOD_AIX: ibm = aix.GetAixData(ip, SSH_PORT, TIMEOUT, usr, pwd, USE_KEY_FILE, KEY_FILE, \ GET_SERIAL_INFO, GET_HARDWARE_INFO, GET_OS_DETAILS, \ GET_CPU_INFO, GET_MEMORY_INFO, IGNORE_DOMAIN, UPLOAD_IPV6, DEBUG) data = ibm.main() if DEBUG: lock.acquire() print 'AIX data: ', data lock.release() if DICT_OUTPUT: return data else: # Upload ----------- upload(data)
def get_aix_data(ip, usr, pwd): if mod_aix: ibm = aix.GetAixData(ip, ssh_port, timeout, usr, pwd, use_key_file, key_file, get_serial_info, get_hardware_info, get_os_details, get_cpu_info, get_memory_info, ignore_domain, upload_ipv6, debug) data = ibm.main() if debug: lock.acquire() print 'AIX data: ', data lock.release() if DICT_OUTPUT: return data else: # Upload ----------- upload(data)