get_network_info
Retrieve per-interface network I/O counters (bytes, packets, errors, drops) to diagnose bandwidth issues and packet drops. Reads /proc/net/dev; fails only if unreadable.
Instructions
Returns per-interface network I/O counters (bytes, packets, errors, drops). Read-only from /proc/net/dev. Fatal only if that file is unreadable. Use for bandwidth and drop analysis; get_network_connections for sockets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| interfaces | Yes |