Using the netstat command
The netstat command displays the contents of various network-related data structures for active connections.
- netstat -in command
This netstat function shows the state of all configured interfaces. - netstat -i -Z command
This function of the netstat command clears all the statistic counters for the netstat -i command to zero. - netstat -I interface interval
This netstat function displays the statistics for the specified interface. - netstat -a command
The netstat -a command shows the state of all sockets. - netstat -m
This netstat function displays the statistics recorded by the mbuf memory-management routines. - netstat -M command
The netstat -M command displays the network memory's cluster pool statistics. - netstat -v command
The netstat -v command displays the statistics for each Common Data Link Interface (CDLI)-based device driver that is in operation. - netstat -p protocol
The netstat -p protocol shows statistics about the value specified for the protocol variable (udp, tcp, ip, icmp), which is either a well-known name for a protocol or an alias for it. - netstat -s
The netstat -s command shows statistics for each protocol (while the netstat -p command shows the statistics for the specified protocol). - netstat -s -s
The undocumented -s -s option shows only those lines of the netstat -s output that are not zero, making it easier to look for error counts. - netstat -s -Z
This is an undocumented function of the netstat command. It clears all the statistic counters for the netstat -s command to zero. - netstat -r
Another option relevant to performance is the display of the discovered Path Maximum Transmission Unit (PMTU). Use the netstat -r command to display this value. - netstat -D
The -D option allows you to see packets coming into and going out of each layer in the communications subsystem along with packets dropped at each layer.
No comments:
Post a Comment