Settings

class getmac.variables.Settings[source]

Bases: VarsClass

User-configurable settings.

Attributes Summary

DEBUG

Debugging level.

FORCE_METHOD

Force a specific method to be used for all lookups.

OVERRIDE_PLATFORM

User-configurable override to force a specific platform.

PORT

UDP port to use for populating the ARP table (IPv4) or NDP list (IPv6) when looking up MACs for hosts or IPs.

Attributes Documentation

DEBUG: int = 0

Debugging level. Increased value => more output. 4 is roughly the highest.

FORCE_METHOD: str = ''

Force a specific method to be used for all lookups. Used for debugging and testing.

OVERRIDE_PLATFORM: str = ''

User-configurable override to force a specific platform.

PORT: int = 55555

UDP port to use for populating the ARP table (IPv4) or NDP list (IPv6) when looking up MACs for hosts or IPs.