Module: tools/network_scanner

tools.network_scanner.is_alive(ip)

Checks if the given IP address is alive by sending a ping request.

Parameters:

ip (str) – The IP address to check.

Returns:

True if the IP address is alive, False otherwise.

Return type:

bool

tools.network_scanner.network_enum(ip, netmask)

Enumerates all devices on the given IP address range and adds information about them to a list.

Parameters:
  • ip (str) – The IP address to scan.

  • netmask (int) – The subnet mask for the IP address range, as an integer between 0 and 32.

Returns:

None

tools.network_scanner.scan(ip, netmask)

Scans the IP address range specified by ip and netmask, and adds information about each device to the DeviceInfo list in the devices_info module.

Parameters:
  • ip (str) – The IP address to scan.

  • netmask (int) – The subnet mask for the IP address range, as an integer between 0 and 32.

Returns:

None

tools.network_scanner.scan_single_ip(ip)

Scans a single IP address and adds information about the device to the DeviceInfo list in the devices_info module.

Parameters:

ip (str) – The IP address to scan.

Returns:

None