Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show interfaces forwarding-class-counters

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show interfaces forwarding-class-counters interface-name <comprehensive>

Description

Display interface accounting information by forwarding class for IPv4, IPv6, MPLS, Layer 2, and Other traffic.

Options

comprehensive

(Optional) Display forwarding-class-counters per traffic family for all logical interfaces under the physical interface along with other quality-of-service information.

Additional Information

For physical interface-level statistics, if none of the logical interfaces have any of the traffic families configured on them, the forwarding class statistics for that family are still displayed with a value of 0.

For physical interface-level statistics, in case of Layer 2 families such as ccc, tcc, or vpls, the Layer2 keyword is displayed because it is possible that different Layer 2 families are configured on the logical interface.

For logical interface-level statistics, the output displays statistics only for families that are configured on that logical interface. The statistics under Other family are still displayed because these are packets that are not classified as belonging to any family.

In the case of Layer 2 families such as ccc, tcc, or vpls configured on the logical interface, the actual family name is displayed in the output.

Statistics include input and output byte and packets and corresponding rates.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show interfaces forwarding-class-counters command. Output fields are listed in the approximate order in which they appear.

Table 1: show interfaces forwarding-class-counters Output Fields

Field Name

Field Description

Input bytes

A count of received bytes that match the forwarding class.

Output bytes

A count of transmitted bytes that match the forwarding class.

Input packets

A count of received packets that match the forwarding class.

Output packets

A count of transmitted packets that match the forwarding class.

Sample Output

show interfaces forwarding-class-counters interface-name

content_copy zoom_out_map
user@host> show interfaces forwarding-class-counters ge-4/2/1

user@host> show interfaces forwarding-class-counters ge-4/2/1        
Physical interface ge-4/2/1 (Index 228) (SNMP ifIndex 870)   
			 Aggregate Forwarding-class statistics :
       Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps

    IPv4 Forwarding-class statistics :
       Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : expedited-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : assured-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps

   IPv6 Forwarding-class statistics :
       Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : expedited-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : assured-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps

   MPLS Forwarding-class statistics :
       Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : expedited-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : assured-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps

   Layer2 Forwarding-class statistics 
       Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : expedited-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : assured-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps

   Other Forwarding-class statistics :
       Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : expedited-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : assured-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps


  Logical interface ge-4/2/1.0 (Index 347) (SNMP ifIndex 1032)
     Forwarding-class accounting parameters :
   Aggregate Forwarding-class statistics :
              Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : expedited-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : assured-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps

   ccc Forwarding-class statistics :       
       Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : expedited-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : assured-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps

   Other Forwarding-class statistics :
       Forwarding-class statistics : best-effort
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : expedited-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : assured-forwarding
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps
       Forwarding-class statistics : network-control
        Input   bytes   :                     0		0 bps
        output  bytes   :                     0		0 bps
        Input   packets :                     0		0 pps
        output  packets :                     0 	0 pps

command-name

Release Information

Command introduced in Junos OS 14.1.

footer-navigation