Navigation: Developing Apps > BINETIX® AGE™ API > Plugins > System Monitor > Modules > sysmon
get_net_info/1
Description
get_net_info/1 is an Erlang function exported by "sysmon" module.
Returns a list of fields with various network statistics and overall status evaluation of the current network configuration.
References
•get_info/1
Parameters
Name
Type
Fields
list()
List of fields with system information retrieved by get_info/1
Result
Value or Type
List of fields with network statistics.
Code Sample
> {sysinfo, Fields} = sysmon:get_info().
> sysmon:get_net_info(Fields).
[
{status, ok},
{net_receive_bytes, 942296282},
{net_receive_packets, 728867},
{net_send_bytes, 220708758},
{net_send_packets, 528455},
{net_diff_receive_bytes, 288703},
{net_diff_receive_packets, 260},
{net_diff_send_bytes, 15273},
{net_diff_send_packets, 167}
]