The Interface
class provides information about a network interface.
Constructs a new Interface
object.
ntopng_obj
: The ntopng handle (Ntopng instance).ifid
: The interface ID (integer).
Returns information about a network interface.
- Returns: Information about the interface (object).
Returns information about broadcast domains on an interface.
- Returns: Information about broadcast domains (object).
Returns the interface IP address(es).
- Returns: The interface address(es) (array).
Returns statistics about Layer 7 protocols seen on an interface.
max_num_results
: The maximum number of results to limit the output (integer).- Returns: Layer 7 protocol statistics (object).
Returns statistics about DSCP (Differentiated Services Code Point).
- Returns: DSCP statistics (object).
Returns a Host
instance.
ip
: The host IP address (string).vlan
(optional): The host VLAN ID (integer, if applicable).- Returns: The host instance (
ntopng.Host
).
Retrieves the list of active hosts for the specified interface.
- Returns: All active hosts (array).
Retrieves the paginated list of active hosts for the specified interface.
currentPage
: The current page (integer).perPage
: The number of results per page (integer).- Returns: All active hosts (array).
Returns the top local hosts generating more traffic on the interface.
- Returns: The top local hosts (array).
Returns the top remote hosts generating more traffic on the interface.
- Returns: The top remote hosts (array).
Retrieves the paginated list of active flows for the specified interface.
currentPage
: The current page (integer).perPage
: The number of results per page (integer).- Returns: All active flows (array).
Returns statistics about active flows per Layer 4 protocol on the interface.
- Returns: Layer 4 protocol flows statistics (object).
Returns statistics about active flows per Layer 7 protocol on the interface.
- Returns: Layer 7 protocol flows statistics (object).
Returns a Historical
handle for the interface.
- Returns: The historical handle (
ntopng.Historical
).