Network:getStatistics
Method
Purpose
This method (on Mac OS X) returns network performance information in a manner similar to using the netstat
command. All statistics are for the lifetime of the system since it was last booted.
Type
Synchronous, IMPACT_INFO.
Arguments
Name |
Type |
Description |
Interface Name |
String |
Name of the network interface |
Returns
Name |
Type |
Description |
Interface Name |
String |
Name of the network interface. Table is indexed on Interface Name. |
Input Bytes |
Long |
The number of octets of data received through the interface |
Input Packets |
Integer |
Packets received on the interface, lifetime total |
Input Packet Errors |
Integer |
Packet errors received on the interface, lifetime total |
Output Bytes |
Long |
The number of octets of data sent through this interface |
Output Packets |
Integer |
Packets sent on the interface, lifetime total |
Output Packet Errors |
Integer |
Packet errors sent on the interface, lifetime total |
Network Collisions |
Integer |
Collisions, lifetime total |
Framing Errors |
Integer |
Framing errors, lifetime total |
No Carrier Errors |
Integer |
No carrier errors, lifetime total |
% Network Collisions |
Double |
Rate (percentage) of collisions against total number of output packets, lifetime total |