Smarter by Design.Simpler for Business
sys-cmd netstat
sys-cmd netstat shows the network state of the route table selected in WEB-CLI: the open connections and the listening ports, the routing table, the incoming and outgoing packet, error and dropped packet counts per interface, and the protocol counters. It is used especially to see the routes of the route table and the interface statistics with a single command.
Command Summary
# type netstat and press Tab: a free parameter
admin@TR7LBWAF01> sys-cmd netstat
<netstat-parameter-1>
admin@TR7LBWAF01> sys-cmd netstat <parameters>
admin@TR7LBWAF01>
Everything written after the word netstat is passed to the tool as it is. There is no mandatory field.
How It Works
| Subject | Behavior |
|---|---|
| Context | It shows the connections, the routes and the interfaces of the selected v-device and route table. |
| Duration | It writes the list and closes immediately. |
| Pipe | The output can be filtered with | or written to a file with to-file. |
| Recording | Every run is written to the user logs. |
Frequently Used Parameters
| Parameter | What it does | What is written after it |
|---|---|---|
-t · -u | Shows only the TCP or the UDP connections | — |
-l | Shows only the listening ports | — |
-a | Shows all the connections including the listening ones | — |
-n | Writes the addresses and the ports without resolving them to names | — |
-r | Shows the routing table | — |
-i | Shows the packet, error and dropped packet counts per interface | — |
-s | Shows the total counters per protocol | — |
The parameters can be written combined (-tuln). The table summarizes the frequently used parameters; the full list depends on the version of the tool on the device.
Examples
admin@TR7LBWAF01> sys-cmd netstat -rn
admin@TR7LBWAF01>
admin@TR7LBWAF01> sys-cmd netstat -tuln
admin@TR7LBWAF01>
admin@TR7LBWAF01> sys-cmd netstat -i
admin@TR7LBWAF01>
admin@TR7LBWAF01> sys-cmd netstat -tan | grep :443
admin@TR7LBWAF01>
Things to Know
- The process name. The process column requested with
-pmostly remains as-in this command; to see which process holds a port,ss -tlnpis used. - There is no route. If the
-rnoutput does not show the default route (0.0.0.0), the selected route table does not have a defined path out; the routes are managed with thenetwork routecommand or from the Route Tables page. - Increasing error counters. If the error or dropped packet count in the
-ioutput increases between measurements, the problem may be the cable, the switch port or an MTU mismatch.
