Adapter statistics
The commands in this section provide output comparable to the netstat -v command. They allow you to reset adapter statistics (-r) and to get more detailed output (-d) than the netstat -v command output provides.
The entstat command
The entstat command displays the statistics gathered by the specified Ethernet device driver. The user can optionally specify that the device-specific statistics be displayed in addition to the device-generic statistics. Using the -d option will list any extended statistics for this adapter and should be used to ensure all statistics are displayed. If no flags are specified, only the device-generic statistics are displayed.
# entstat ent0
-------------------------------------------------------------
ETHERNET STATISTICS (ent0) :
Device Type: 10/100/1000 Base-TX PCI-X Adapter (14106902)
Hardware Address: 00:02:55:6a:a5:dc
Elapsed Time: 1 days 18 hours 47 minutes 34 seconds
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 1108055 Packets: 750811
Bytes: 4909388501 Bytes: 57705832
Interrupts: 0 Interrupts: 681137
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 0 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 101
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0
Broadcast Packets: 3 Broadcast Packets: 3
Multicast Packets: 3 Multicast Packets: 5
No Carrier Sense: 0 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 2000
Driver Flags: Up Broadcast Running
Simplex 64BitSupport ChecksumOffload
PrivateSegment LargeSend DataRateSet
In the above report, you may want to concentrate on:
- Transmit Errors
- Number of output errors encountered on this device. This is a counter for unsuccessful transmissions due to hardware/network errors.
- Receive Errors
- Number of input errors encountered on this device. This is a counter for unsuccessful reception due to hardware/network errors.
- Packets Dropped
- Number of packets accepted by the device driver for transmission which were not (for any reason) given to the device.
- Max Packets on S/W Transmit Queue
- Maximum number of outgoing packets ever queued to the software transmit queue.
- S/W Transmit Queue Overflow
- Number of outgoing packets that have overflowed the transmit queue.
- No Resource Errors
- Number of incoming packets dropped by the hardware due to lack of resources. This error usually occurs because the receive buffers on the adapter were exhausted. Some adapters may have the size of the receive buffers as a configurable parameter. Check the device configuration attributes (or SMIT helps) for possible tuning information.
- Single Collision Count/Multiple Collision Count
- Number of collisions on an Ethernet network. These collisions are accounted for here rather than in the collision column of the output of the netstat -i command.
Notice in this example, the Ethernet adapter is behaving well because there are no Receive Errors. These errors are sometimes caused when a saturated network only transmits partial packets. The partial packets are eventually retransmitted successfully but are recorded as receive errors.
If there are not enough receive resources, this would be indicated by Packets Dropped: and depending on the adapter type, would be indicated by Out of Rcv Buffers or No Resource Errors: or some similar counter.
The elapsed time displays the real-time period that has elapsed since the last time the statistics were reset. To reset the statistics, use the entstat -r adapter_name command.
Similar output can be displayed for Token-Ring, FDDI, and ATM interfaces using the tokstat, fddistat, and atmstat commands.
The tokstat command
The tokstat command displays the statistics gathered by the specified Token-Ring device driver. The user can optionally specify that the device-specific statistics be displayed in addition to the device driver statistics. If no flags are specified, only the device driver statistics are displayed.
This command is also invoked when the netstat command is run with the -v flag. The netstat command does not issue any tokstat command flags.
The output produced by the tokstat tok0 command and the problem determination are similar to that described in The entstat command.
The fddistat command
The fddistat command displays the statistics gathered by the specified FDDI device driver. The user can optionally specify that the device-specific statistics be displayed in addition to the device driver statistics. If no flags are specified, only the device driver statistics are displayed.
This command is also invoked when the netstat command is run with the -v flag. The netstat command does not issue any fddistat command flags.
The output produced by the fddistat fddi0 command and the problem determination are similar to that described in The entstat command.
The atmstat command
The atmstat command displays the statistics gathered by the specified ATM device driver. The user can optionally specify that the device-specific statistics be displayed in addition to the device driver statistics. If no flags are specified, only the device driver statistics are displayed.
The output produced by the atmstat atm0 command and the problem determination are similar to that described in The entstat command.