|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Administration: Network Interfaces and Network Virtualization Oracle Solaris 11 Information Library|
Flow statistics help you evaluate packet traffic on any defined flows on the system. To obtain flow information, you use the flowstat command. For more information about this command, refer to the flowstat(1M) man page.
The most commonly used syntax of the flowstat command follows:
# flowstat [-r|-t] [-i interval] [-l link flow]
Displays either receive-side statistics only (-r option) or transmit-side statistics only (-t option). If you do not use these options, then statistics for both the receive-side and the transmit-side are displayed.
Specifies the time in seconds at which you want the displayed statistics to be refreshed. If you do not use this option, then static output is displayed.
Indicates that you want to monitor the statistics for all the flows on the specified datalink. If you do not use this option, then information about all the flows on all the datalinks is displayed.
Indicates that you want to monitor the statistics of a specified flow only. If you do not use this option, then depending on whether you specified a link, all flow statistics are displayed.
Before You Begin
You can use the flowstat command only if flows exist in your network configuration. To configure flows, see Chapter 21, Managing Network Resources.
For more information, see How to Obtain Administrative Rights in Oracle Solaris Administration: Security Services.
Display statistics about incoming and outgoing packets on all flows.
This command provides a static display of traffic information on all configured flows.
Display basic network traffic statistics on all flows at a specified interval
# flowstat -i interval
The display of statistics is refreshed at the specified interval until you stop the output generation by pressing Control–C.
Display statistics about incoming packets on all flows that are configured over a specified datalink.
# flowstat -r -l link
Display statistics about outgoing packets on a specified flow at a specified interval.
# flowstat -t -i interval flow
Example 22-8 Displaying Traffic Statistics for All Flows at One-Second Intervals
This example shows information every second about incoming and outgoing traffic on all configured flows on the system.
# flowstat -i 1 FLOW IPKTS RBYTES IERRS OPKTS OBYTES OERRS flow1 528.45K 787.39M 0 179.39K 11.85M 0 flow2 742.81K 1.10G 0 0 0 0 flow3 0 0 0 0 0 0 flow1 67.73K 101.02M 0 21.04K 1.39M 0 flow2 0 0 0 0 0 0 flow3 0 0 0 0 0 0 ... ^C
Example 22-9 Displaying Transmit–Side Statistics for All Flows
# flowstat -t FLOW OPKTS OBYTES OERRS flow1 24.37M 1.61G 0 flow2 0 0 0 flow1 4 216 0
Example 22-10 Displaying Receive-Side Statistics for All Flows on a Specified Link
This example shows incoming traffic in hardware lanes in all the flows that were created over the net0, the datalink.
# flowstat -r -i 2 -l net0 FLOW IPKTS RBYTES IERRS tcp-flow 183.11K 270.24M 0 udp-flow 0 0 0 tcp-flow 373.83K 551.52M 0 udp-flow 0 0 0 tcp-flow 372.35K 549.04M 0 udp-flow 0 0 0 tcp-flow 372.87K 549.61M 0 udp-flow 0 0 0 tcp-flow 371.57K 547.89M 0 udp-flow 0 0 0 tcp-flow 191.92K 282.95M 0 udp-flow 206.51K 310.70M 0 tcp-flow 0 0 0 udp-flow 222.75K 335.15M 0 tcp-flow 0 0 0 udp-flow 223.00K 335.52M 0 tcp-flow 0 0 0 udp-flow 160.22K 241.07M 0 tcp-flow 0 0 0 udp-flow 167.89K 252.61M 0 tcp-flow 0 0 0 udp-flow 9.52K 14.32M 0 ^C