Exemplo n.º 1
0
def get_solaris_data(ip, usr, pwd):
    if MOD_SOLARIS:
        solaris = ms.GetSolarisData(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 = solaris.main()
        if DEBUG:
            lock.acquire()
            print 'Solaris data: ', data
            lock.release()
        if DICT_OUTPUT:
            return data
        else:
            # Upload -----------
            upload(data)
Exemplo n.º 2
0
def get_solaris_data(ip, usr, pwd):
    if mod_solaris:
        solaris = ms.GetSolarisData(ip, ssh_port, timeout, usr, pwd, use_key_file, key_file,
                                    get_serial_info, get_hardware_info, get_os_details, add_hdd_as_parts,
                                    get_cpu_info, get_memory_info, ignore_domain, upload_ipv6, debug)
        data = solaris.main()
        if debug:
            lock.acquire()
            print '\nSolaris data: ', data
            lock.release()
        solaris.ssh.close()
        if DICT_OUTPUT:
            return data
        else:
            # Upload -----------
            upload(data)