Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    monitor interface

    Syntax

    monitor interface<interface-name | traffic <detail>>

    Release Information

    Command introduced before Junos OS Release 7.4.

    Command introduced in Junos OS Release 9.0 for EX Series switches.

    Command introduced in Junos OS Release 11.1 for the QFX Series.

    Description

    Display real-time statistics about interfaces, updating the statistics every second. Check for and display common interface failures, such as SONET/SDH and T3 alarms, loopbacks detected, and increases in framing errors.

    Note: This command is not supported on the QFX3000 QFabric system.

    Options

    none
    —

    Display real-time statistics for all interfaces.

    detail
    —

    (Optional) With traffic option only, display detailed output.

    interface-name
    —

    (Optional) Display real-time statistics for the specified interface. In a TX Matrix or TX Matrix Plus router, display real-time statistics for the physical interfaces on the specified line-card chassis (LCC) only.

    traffic
    —

    (Optional) Display traffic data for all active interfaces. In a TX Matrix or TX Matrix Plus router, display real-time statistics for the physical interfaces on the specified LCC only.

    Additional Information

    The output of this command shows how much each field has changed since you started the command or since you cleared the counters by pressing the c key. For a description of the statistical information provided in the output of this command, see the show interfaces extensive command for a particular interface type in the CLI Explorer. To control the output of the monitor interface command while it is running, use the keys listed in Table 1. The keys are not case-sensitive.

    Table 1: Output Control Keys for the monitor interface Command 

    Key

    Action

    c

    Clears (returns to zero) the delta counters since monitor interface was started. This does not clear the accumulative counter. To clear the accumulative counter, use the clear interfaces interval command.

    f

    Freezes the display, halting the display of updated statistics and delta counters.

    i

    Displays information about a different interface. The command prompts you for the name of a specific interface.

    n

    Displays information about the next interface. The monitor interface command displays the physical or logical interfaces in the same order as the show interfaces terse command.

    q or Esc

    Quits the command and returns to the command prompt.

    t

    Thaws the display, resuming the update of the statistics and delta counters.

    To control the output of the monitor interface traffic command while it is running, use the keys listed in Table 2. The keys are not case-sensitive.

    Table 2: Output Control Keys for the monitor interface traffic Command

    Key

    Action

    b

    Displays the statistics in units of bytes and bytes per second (Bps).

    c

    Clears (return to 0) the delta counters in the Current Delta column. The statistics counters are not cleared.

    d

    Displays the Current Delta column (instead of the rate column) in Bps or packets per second (pps).

    p

    Displays the statistics in units of packets and packets per second (pps).

    q or Esc

    Quits the command and returns to the command prompt.

    r

    Displays the rate column (instead of the Current Delta column) in Bps and pps.

    Required Privilege Level

    trace

    List of Sample Output

    monitor interface (Physical)
    monitor interface (OTN Interface)
    monitor interface (Logical)
    monitor interface (QFX3500 Switch)
    monitor interface traffic
    monitor interface traffic (QFX3500 Switch)
    monitor interface traffic detail (QFX3500 Switch)

    Output Fields

    Table 3 describes the output fields for the monitor interface command. Output fields are listed in the approximate order in which they appear.

    Table 3: monitor interface Output Fields

    Field Name

    Field Description

    Level of Output

    router1

    Hostname of the router.

    All levels

    Seconds

    How long the monitor interface command has been running or how long since you last cleared the counters.

    All levels

    Time

    Current time (UTC).

    All levels

    Delay x/y/z

    Time difference between when the statistics were displayed and the actual clock time.

    • x—Time taken for the last polling (in milliseconds).
    • y—Minimum time taken across all pollings (in milliseconds).
    • z—Maximum time taken across all pollings (in milliseconds).

    All levels

    Interface

    Short description of the interface, including its name, status, and encapsulation.

    All levels

    Link

    State of the link: Up, Down, or Test.

    All levels

    Current delta

    Cumulative number for the counter in question since the time shown in the Seconds field, which is the time since you started the command or last cleared the counters.

    All levels

    Local Statistics

    (Logical interfaces only) Number and rate of bytes and packets destined to the router or switch through the specified interface. When a burst of traffic is received, the value in the output packet rate field might briefly exceed the peak cell rate. It usually takes less than 1 second for this counter to stabilize.

    • Input bytes—Number of bytes received on the interface.
    • Output bytes—Number of bytes transmitted on the interface.
    • Input packets—Number of packets received on the interface.
    • Output packets—Number of packets transmitted on the interface.

    All levels

    Remote Statistics

    (Logical interfaces only) Statistics for traffic transiting the router or switch. When a burst of traffic is received, the value in the output packet rate field might briefly exceed the peak cell rate. It usually takes less than 1 second for this counter to stabilize.

    • Input bytes—Number of bytes received on the interface.
    • Output bytes—Number of bytes transmitted on the interface.
    • Input packets—Number of packets received on the interface.
    • Output packets—Number of packets transmitted on the interface.

    All levels

    Traffic statistics

    Total number of bytes and packets received and transmitted on the interface. These statistics are the sum of the local and remote statistics. When a burst of traffic is received, the value in the output packet rate field might briefly exceed the peak cell rate. It usually takes less than 1 second for this counter to stabilize.

    • Input bytes—Number of bytes received on the interface.
    • Output bytes—Number of bytes transmitted on the interface.
    • Input packets—Number of packets received on the interface.
    • Output packets—Number of packets transmitted on the interface.

    All levels

    Description

    With the traffic option, displays the interface description configured at the [edit interfaces interface-name] hierarchy level.

    detail

    Sample Output

    monitor interface (Physical)

    user@host> monitor interface so-0/0/0
    router1                           Seconds: 19                  Time: 15:46:29
    
    Interface: so-0/0/0, Enabled, Link is Up
    Encapsulation: PPP, Keepalives, Speed: OC48
    Traffic statistics:                                           Current Delta
      Input packets:                      6045 (0 pps)                     [11]
      Input bytes:                     6290065 (0 bps)                  [13882]
      Output packets:                    10376 (0 pps)                     [10]
      Output bytes:                   10365540 (0 bps)                   [9418]
    Encapsulation statistics:
      Input keepalives:                   1901                              [2]
      Output keepalives:                  1901                              [2] 
      NCP state: Opened
      LCP state: Opened
    Error statistics:
      Input errors:                          0                              [0]
      Input drops:                           0                              [0]
      Input framing errors:                  0                              [0]
      Policed discards:                      0                              [0]
      L3 incompletes:                        0                              [0]
      L2 channel errors:                     0                              [0]
      L2 mismatch timeouts:                  0                              [0]
      Carrier transitions:                   1                              [0]
      Output errors:                         0                              [0]
      Output drops:                          0                              [0]
      Aged packets:                          0                              [0]
    Active alarms : None
    Active defects: None
    SONET error counts/seconds:
      LOS count                              1                              [0]
      LOF count                              1                              [0]
      SEF count                              1                              [0]
      ES-S                                   0                              [0]
      SES-S                                  0                              [0]
    SONET statistics:
      BIP-B1                            458871                              [0]
      BIP-B2                            460072                              [0]
      REI-L                             465610                              [0]
      BIP-B3                            458978                              [0]
      REI-P                             458773                              [0]
    Received SONET overhead:
      F1      : 0x00  J0        : 0x00  K1        : 0x00
      K2      : 0x00  S1        : 0x00  C2        : 0x00
      C2(cmp) : 0x00  F2        : 0x00  Z3        : 0x00
      Z4      : 0x00  S1(cmp)   : 0x00
    Transmitted SONET overhead:
      F1      : 0x00  J0        : 0x01  K1        : 0x00
      K2      : 0x00  S1        : 0x00  C2        : 0xcf
      F2      : 0x00  Z3        : 0x00  Z4        : 0x00
    
    Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i'
    

    monitor interface (OTN Interface)

    user@host> monitor interface ge-7/0/0
    
    Interface: ge-7/0/0, Enabled, Link is Up
    Encapsulation: Ethernet, Speed: 10000mbps
    Traffic statistics:
      Input bytes:                         0 (0 bps)
      Output bytes:                        0 (0 bps)
      Input packets:                       0 (0 pps)
      Output packets:                      0 (0 pps)
    Error statistics:
      Input errors:                        0
      Input drops:                         0
      Input framing errors:                0
      Policed discards:                    0
      L3 incompletes:                      0
      L2 channel errors:                   0
      L2 mismatch timeouts:                0
      Carrier transitions:                 5
      Output errors:                       0
      Output drops:                        0
      Aged packets:                        0
    Active alarms : None
    Active defects: None
    Input MAC/Filter statistics:
      Unicast packets                      0
      Broadcast packets                    0
      Multicast packets                    0
      Oversized frames                     0
      Packet reject count                  0
      DA rejects                           0
      SA rejects                           0
    Output MAC/Filter Statistics:
      Unicast packets                      0
      Broadcast packets                    0
      Multicast packets                    0
      Packet pad count                     0
      Packet error count                   0
    OTN Link 0
      OTN Alarms: OTU_BDI, OTU_TTIM, ODU_BDI
      OTN Defects: OTU_BDI, OTU_TTIM, ODU_BDI, ODU_TTIM
      OTN OC - Seconds
        LOS                                2
        LOF                                9
      OTN OTU - FEC Statistics
        Corr err ratio                   N/A
        Corr bytes                         0
        Uncorr words                       0
      OTN OTU - Counters
        BIP                                0
        BBE                                0
        ES                                 0
        SES                                0
        UAS                              422
      OTN ODU - Counters
        BIP                                0
        BBE                                0
        ES                                 0
        SES                                0
        UAS                              422
      OTN ODU - Received Overhead    APSPCC 0-3:              0
    

    monitor interface (Logical)

    user@host> monitor interface so-1/0/0.0
    host name                Seconds: 16                  Time: 15:33:39
                                                                   Delay: 0/0/1
    Interface: so-1/0/0.0, Enabled, Link is Down
    Flags: Hardware-Down Point-To-Point SNMP-Traps
    Encapsulation: PPP
    Local statistics:                                             Current delta
      Input bytes:                          0                               [0]
      Output bytes:                         0                               [0]
      Input packets:                        0                               [0]
      Output packets:                       0                               [0]
    Remote statistics:
      Input bytes:                          0 (0 bps)                       [0]
      Output bytes:                         0 (0 bps)                       [0]
      Input packets:                        0 (0 pps)                       [0]
      Output packets:                       0 (0 pps)                       [0]
    Traffic statistics:
      Destination address: 192.168.8.193, Local: 192.168.8.21
    
    Next='n', Quit='q' or ESC, Freeze='f', Thaw='t', Clear='c', Interface='i' 
    

    monitor interface (QFX3500 Switch)

    user@switch> monitor interface ge-0/0/0
    Interface: ge-0/0/0, Enabled, Link is Down
    Encapsulation: Ethernet, Speed: Unspecified
    Traffic statistics:                                           Current delta
      Input bytes:                         0 (0 bps)                        [0]
      Output bytes:                        0 (0 bps)                        [0]
      Input packets:                       0 (0 pps)                        [0]
      Output packets:                      0 (0 pps)                        [0]
    Error statistics:
      Input errors:                        0                                [0]
      Input drops:                         0                                [0]
      Input framing errors:                0                                [0]
      Policed discards:                    0                                [0]
      L3 incompletes:                      0                                [0]
      L2 channel errors:                   0                                [0]
      L2 mismatch timeouts:                0                                [0]
      Carrier transitions:                 0                                [0]
      Output errors:                       0                                [0]
      Output drops:                        0                                [0]
      Aged packets:                        0                                [0]
    Active alarms : LINK
    Active defects: LINK
    Input MAC/Filter statistics:
      Unicast packets                      0                                [0]
      Broadcast packets                    0  Multicast packet              [0]
    
    Interface warnings:
      o Outstanding LINK alarm

    monitor interface traffic

    user@host> monitor interface traffic
    host name                Seconds: 15                  Time: 12:31:09
    
    Interface    Link  Input packets        (pps)     Output packets        (pps)
     so-1/0/0    Down              0          (0)                  0          (0)
     so-1/1/0    Down              0          (0)                  0          (0)
     so-1/1/1    Down              0          (0)                  0          (0)
     so-1/1/2    Down              0          (0)                  0          (0)
     so-1/1/3    Down              0          (0)                  0          (0)
     t3-1/2/0    Down              0          (0)                  0          (0)
     t3-1/2/1    Down              0          (0)                  0          (0)
     t3-1/2/2    Down              0          (0)                  0          (0)
     t3-1/2/3    Down              0          (0)                  0          (0)
     so-2/0/0      Up         211035          (1)              36778          (0)
     so-2/0/1      Up         192753          (1)              36782          (0)
     so-2/0/2      Up         211020          (1)              36779          (0)
     so-2/0/3      Up         211029          (1)              36776          (0)
     so-2/1/0      Up         189378          (1)              36349          (0)
     so-2/1/1    Down              0          (0)              18747          (0)
     so-2/1/2    Down              0          (0)              16078          (0)
     so-2/1/3      Up              0          (0)              80338          (0)
     at-2/3/0      Up              0          (0)                  0          (0)
     at-2/3/1    Down              0          (0)                  0          (0)
    
    Bytes=b, Clear=c, Delta=d, Packets=p, Quit=q or ESC, Rate=r, Up=^U, Down=^D
    

    monitor interface traffic (QFX3500 Switch)

    user@switch> monitor interface traffic
    switch                             Seconds: 7                   Time: 16:04:37
    
    Interface    Link  Input packets        (pps)     Output packets        (pps)
     ge-0/0/0    Down              0          (0)                  0          (0)
     ge-0/0/1      Up         392187          (0)             392170          (0)
     ge-0/0/2    Down              0          (0)                  0          (0)
     ge-0/0/3    Down              0          (0)                  0          (0)
     ge-0/0/4    Down              0          (0)                  0          (0)
     ge-0/0/5    Down              0          (0)                  0          (0)
     ge-0/0/6    Down              0          (0)                  0          (0)
     ge-0/0/7    Down              0          (0)                  0          (0)
     ge-0/0/8    Down              0          (0)                  0          (0)
     ge-0/0/9      Up         392184          (0)             392171          (0)
     ge-0/0/10   Down              0          (0)                  0          (0)
     ge-0/0/11   Down              0          (0)                  0          (0)
     ge-0/0/12   Down              0          (0)                  0          (0)
     ge-0/0/13   Down              0          (0)                  0          (0)
     ge-0/0/14   Down              0          (0)                  0          (0)
     ge-0/0/15   Down              0          (0)                  0          (0)
     ge-0/0/16   Down              0          (0)                  0          (0)
     ge-0/0/17   Down              0          (0)                  0          (0)
     ge-0/0/18   Down              0          (0)                  0          (0)
     ge-0/0/19   Down              0          (0)                  0          (0)
     ge-0/0/20   Down              0          (0)                  0          (0)
     ge-0/0/21   Down              0          (0)                  0          (0)
     ge-0/0/22     Up         392172          (0)             392187          (0)
     ge-0/0/23     Up         392185          (0)             392173          (0)
     vcp-0       Down              0                               0
     vcp-1       Down              0                               0
     ae0         Down              0          (0)                  0          (0)
     bme0          Up              0                         1568706
    

    monitor interface traffic detail (QFX3500 Switch)

    user@switch> monitor interface traffic detail
    switch                                                     Seconds: 74                  Time: 16:03:02
    
    Interface    Link  Input packets        (pps)     Output packets        (pps) Description
     ge-0/0/0    Down              0          (0)                  0          (0)
     ge-0/0/1      Up         392183          (0)             392166          (0)
     ge-0/0/2    Down              0          (0)                  0          (0)
     ge-0/0/3    Down              0          (0)                  0          (0)
     ge-0/0/4    Down              0          (0)                  0          (0)
     ge-0/0/5    Down              0          (0)                  0          (0)
     ge-0/0/6    Down              0          (0)                  0          (0)
     ge-0/0/7    Down              0          (0)                  0          (0)
     ge-0/0/8    Down              0          (0)                  0          (0)
     ge-0/0/9      Up         392181          (0)             392168          (0)
     ge-0/0/10   Down              0          (0)                  0          (0)
     ge-0/0/11   Down              0          (0)                  0          (0)
     ge-0/0/12   Down              0          (0)                  0          (0)
     ge-0/0/13   Down              0          (0)                  0          (0)
     ge-0/0/14   Down              0          (0)                  0          (0)
     ge-0/0/15   Down              0          (0)                  0          (0)
     ge-0/0/16   Down              0          (0)                  0          (0)
     ge-0/0/17   Down              0          (0)                  0          (0)
     ge-0/0/18   Down              0          (0)                  0          (0)
     ge-0/0/19   Down              0          (0)                  0          (0)
     ge-0/0/20   Down              0          (0)                  0          (0)
     ge-0/0/21   Down              0          (0)                  0          (0)
     ge-0/0/22     Up         392169          (0)             392184          (1)
     ge-0/0/23     Up         392182          (0)             392170          (0)
     vcp-0       Down              0                               0
     vcp-1       Down              0                               0
     ae0         Down              0          (0)                  0          (0)
     bme0          Up              0                         1568693

    Published: 2014-07-23