Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Administration: Network Interfaces and Network Virtualization Oracle Solaris 11 Express 11/10 |
2. NWAM Configuration and Administration (Overview)
3. NWAM Profile Configuration (Tasks)
4. NWAM Profile Administration (Tasks)
5. About the NWAM Graphical User Interface
Part II Administering Single Interfaces
6. Overview of the Networking Stack
7. Datalink Configuration and Administration
8. Configuring an IP Interface
9. Configuring Wireless Interface Communications on Oracle Solaris
Part III Administering Interface Groups
11. Administering Link Aggregations
Part IV Network Virtualization and Resource Management
15. Introducing Network Virtualization and Resource Control (Overview)
16. Planning for Network Virtualization and Resource Control
17. Configuring Virtual Networks (Tasks)
18. Using Link Protection in Virtualized Environments
19. Managing Network Resources
20. Monitoring Network Traffic and Resource Usage
Overview of Network Traffic Flow
Monitoring Traffic and Use of Resources (Task Map)
Gathering Statistics About Network Traffic on Links
How to Obtain Basic Statistics About Network Traffic
How to Obtain Statistics About Ring Usage
How to Obtain Statistics About Network Traffic on Lanes
How to Configure Extended Network Accounting
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.
You can use the flowstat command only if flows exist in your network configuration. To configure flows, see Chapter 19, Managing Network Resources.
For more information, see How to Obtain Administrative Rights in System Administration Guide: Security Services.
Display statistics about incoming and outgoing packets on all flows.
# flowstat
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 20-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 20-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 20-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