Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Administration: Network Interfaces and Network Virtualization Oracle Solaris 11 Information Library |
1. Overview of the Networking Stack
Network Configuration in This Oracle Solaris Release
The Network Stack in Oracle Solaris
Network Devices and Datalink Names
Administration of Other Link Types
3. NWAM Configuration and Administration (Overview)
4. NWAM Profile Configuration (Tasks)
5. NWAM Profile Administration (Tasks)
6. About the NWAM Graphical User Interface
Part II Datalink and Interface Configuration
7. Using Datalink and Interface Configuration Commands on Profiles
8. Datalink Configuration and Administration
9. Configuring an IP Interface
10. Configuring Wireless Interface Communications on Oracle Solaris
12. Administering Link Aggregations
16. Exchanging Network Connectivity Information With LLDP
Part III Network Virtualization and Resource Management
17. Introducing Network Virtualization and Resource Control (Overview)
18. Planning for Network Virtualization and Resource Control
19. Configuring Virtual Networks (Tasks)
20. Using Link Protection in Virtualized Environments
21. Managing Network Resources
22. 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.
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.
# 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 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