Ejemplo n.º 1
0
def get_openbsd_data(ip, usr, pwd):
    if MOD_BSD:
        bsd = openbsd.GetBSDData(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 = bsd.main()
        if DEBUG:
            lock.acquire()
            print 'OpenBSD data: ', data
            lock.release()
        if DICT_OUTPUT:
            return data
        else:
            # Upload -----------
            upload(data)
Ejemplo n.º 2
0
def get_openbsd_data(ip, usr, pwd):
    if mod_bsd:
        bsd = openbsd.GetBSDData(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 = bsd.main()
        if debug:
            lock.acquire()
            print 'OpenBSD data: ', data
            lock.release()
        if DICT_OUTPUT:
            return data
        else:
            # Upload -----------
            upload(data)