You can use the dlstat show-link command to display the network traffic statistics for a datalink.
Example 8-6 Displaying Network Traffic Statistics for a DatalinkThis example shows the network traffic statistics for the datalink vnic0.
# dlstat show-link vnic0 LINK IPKTS RBYTES OPKTS OBYTES vnic0 3 180 0 0Example 8-7 Displaying Network Traffic Statistics for a Datalink With Dedicated Hardware Rings
This example shows the receive-side network traffic statistics for the datalink vnic0 that has four dedicated Rx rings. The hw value under the ID column in the output indicates that the datalink vnic0 has dedicated hardware rings.
# dlstat show-link -r vnic0 LINK TYPE ID INDEX IPKTS RBYTES INTRS POLLS IDROPS vnic0 rx local -- 0 0 0 0 0 vnic0 rx other -- 64 2.94K 0 0 0 vnic0 rx hw 8 0 0 0 0 0 vnic0 rx hw 9 53 7.97K 53 0 0 vnic0 rx hw 10 4 392 4 0 0 vnic0 rx hw 11 153.65K 220.68M 153.65K 0 0Example 8-8 Displaying Transmit-Side Network Traffic Statistics for a Datalink
This example shows the transmit-side network traffic statistics for the datalink vnic0.
# dlstat show-link -t vnic0 LINK TYPE ID INDEX OPKTS OBYTES ODROPS vnic0 tx local -- 0 0 0 vnic0 tx other -- 19 798 0 vnic0 tx sw -- 0 0 0Example 8-9 Displaying Network Traffic Statistics for a Datalink Without Dedicated Hardware Rings
This example shows the network traffic statistics for the datalink net6 that does not have dedicated Rx rings. The sw value under the ID column in the output indicates that the datalink net6 is not configured with dedicated hardware rings.
# dlstat show-link -r net6 LINK TYPE ID INDEX IPKTS RBYTES INTRS POLLS IDROPS net6 rx local -- 0 0 0 0 0 net6 rx other -- 0 0 0 0 0 net6 rx sw -- 0 0 0 0 0