show interfaces statistics (SDK)

Syntax

show interface statistics interface-name<brief | detail | terse>

Release Information

For routers running Junos SDK applications, support for rms interfaces added in Junos OS Release 9.5.

Description

Display interface statistics, such as packets received, packets transmitted, and errors.

For this command’s usage in other contexts, see the Junos Interfaces Command Reference.

Options

interface-name

Display statistics for the interface named.

brief | detail | terse

(Optional) Display the specified detail level of output.

Required Privilege Level

view

List of Sample Output

Output Fields

For descriptions of the output fields see the output fields table for the show interfaces (Adaptive Services) command in the Junos Interfaces Command Reference.

show interfaces statistics

user@host> show interface statistics rms0
Physical interface: rms0, Enabled, Physical link is Up
  Interface index: 158, SNMP ifIndex: 149
  Type: Adaptive-Services, Link-level type: Adaptive-Services, MTU: 1504,
  Speed: 1000mbps
  Device flags   : Present Running
  Interface flags: Point-To-Point SNMP-Traps Internal: 0x4000
  Link type      : Full-Duplex
  Link flags     : None
  Last flapped   : 2009-01-27 18:17:21 PST (16:29:12 ago)
  Input rate     : 0 bps (0 pps)
  Output rate    : 0 bps (0 pps)

  Logical interface rms0.1 (Index 74) (SNMP ifIndex 150) 
    Flags: Point-To-Point SNMP-Traps 0x4000 Encapsulation: Adaptive-Services
    Bandwidth: 800mbps
    Input packets : 0 
    Output packets: 0
    Protocol inet, MTU: 1504
      Flags: None
      Addresses, Flags: Is-Primary
        Local: 1.1.1.1

show interfaces statistics brief

user@host> show interfaces statistics rms0 brief
Physical interface: rms0, Enabled, Physical link is Up
  Type: Adaptive-Services, Link-level type: Adaptive-Services, MTU: 1504,
  Clocking: Unspecified, Speed: 1000mbps
  Device flags   : Present Running
  Interface flags: Point-To-Point SNMP-Traps Internal: 0x4000

  Logical interface rms0.1 
    Flags: Point-To-Point SNMP-Traps 0x4000 Encapsulation: Adaptive-Services
    inet  1.1.1.1          --> 0/0

show interfaces statistics detail

user@host> show interfaces statistics detail
Physical interface: rms0, Enabled, Physical link is Up
  Interface index: 158, SNMP ifIndex: 149, Generation: 168
  Type: Adaptive-Services, Link-level type: Adaptive-Services, MTU: 1504,
  Clocking: Unspecified, Speed: 1000mbps
  Device flags   : Present Running
  Interface flags: Point-To-Point SNMP-Traps Internal: 0x4000
  Link type      : Full-Duplex
  Link flags     : None
  Physical info  : Unspecified
  Hold-times     : Up 0 ms, Down 0 ms
  Current address: Unspecified, Hardware address: Unspecified
  Alternate link address: Unspecified
  Last flapped   : 2009-01-27 18:17:21 PST (16:29:22 ago)
  Statistics last cleared: 20-01-27 18:20:31 PST (16:26:12 ago)
  Traffic statistics:
   Input  bytes  :                    84000                0 bps
   Output bytes  :                    84000                0 bps
   Input  packets:                    1000                 0 pps
   Output packets:                    1000                 0 pps
   IPv6 transit statistics:
    Input  bytes  :                   0 
    Output bytes  :                   0
    Input  packets:                   0
    Output packets:                   0
  Input errors:
    Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0, Policed discards: 0,
    Resource errors: 0
  Output errors:
    Carrier transitions: 0, Errors: 0, Drops: 0, MTU errors: 0, Resource errors: 0

  Logical interface rms0.1 (Index 74) (SNMP ifIndex 150) (Generation 143)
    Flags: Point-To-Point SNMP-Traps 0x4000 Encapsulation: Adaptive-Services
    Bandwidth: 800mbps
    Traffic statistics:
     Input  bytes  :                    84000
     Output bytes  :                    84000
     Input  packets:                    1000
     Output packets:                    1000
    Local statistics:
     Input  bytes  :                    0
     Output bytes  :                    0
     Input  packets:                    0
     Output packets:                    0
    Transit statistics:
     Input  bytes  :                    84000                0 bps
     Output bytes  :                    84000                0 bps
     Input  packets:                    1000                 0 pps
     Output packets:                    1000                 0 pps
    Protocol inet, MTU: 1504, Generation: 154, Route table: 0
      Flags: None   
      Addresses, Flags: Is-Primary
        Destination: Unspecified, Local: 1.1.1.1, Broadcast: Unspecified,
        Generation: 170

show interfaces statistics terse

user@host> show interfaces statistics terse rms0 terse
Interface               Admin Link Proto    Local                 Remote
rms0                    up    up  
rms0.1                  up    up   inet     1.1.1.1             --> 0/0