Module that exposes functions to get information on the current
interfaces enabled in ntop.
|
numInterfaces()
Get number of configured interfaces |
|
|
String @return the name of the interface
|
name()
Get interface name |
|
|
String @return the unique name of the interface
|
uniqueName()
Get unique interface name |
|
|
String @return the human-friendly name of the interface
|
humanName()
Get human-friendly interface name |
|
|
string
|
ipv4(interfaceId)
Get interface address (IPv4) |
|
|
string
|
network(interfaceId)
Get network and mask to which the interface belongs |
|
|
number
|
numHosts(interfaceId)
Get the number of hosts active on this interface |
|
|
string
|
ipv6(interfaceId)
Get interface address (IPv6) |
|
|
dictionary @return {'startTime':number, 'firstSeen': number,
'lastSeen': number}
|
time(interfaceId)
Get interface time |
|
|
|
virtual()
Check if this is a virtual interface |
|
|
|
speed()
Interface speed (0 if unknown) |
|
|
|
mtu()
Get interface MTU size |
|
|
|
bpf()
Get BPF filter set for this interface (if any) |
|
|
|
pktsStats()
Get packet statistics |
|
|
|
fcPktsStats()
Get FC pkts stats |
|
|
|
fcBytesStats()
Get FC byte stats |
|
|
|
bytesStats()
Get bytes statistics |
|
|
|
|
|
|
|
|
|
icmpStats()
Get ICMP stats |
|
|
|
|
|
securityPkts()
Get information about security packets |
|
|
|
netflowStats()
Get NetFlow interface information |
|
|
|
sflowStats()
Get sFlow interface information |
|
|
|
cpacketStats()
Get cPacket counter information |
|
|