Monthly Archives: April 2013

Juniper – Show interface stats

Stumbled across a useful command for juniper devices which will display all interfaces and any part of info you wish from the interface statistics.

run show interfaces “[gfx]e-*” media detail | grep “(physical|crc)”

The part in red you can change to out put different so you can change this to speed to show all interface and speed of them interfaces. You can | this in at the end to display both CRC and Speed.

run show interfaces “[gfx]e-*” media detail | grep “(physical|crc|speed)”

This is an example of the output below.

root@SW-01# run show interfaces “[gfx]e-*” media detail | grep “(physical|crc)”

Physical interface: ge-0/0/0, Enabled, Physical link is Up

CRC/Align errors                       557                0

Physical interface: ge-0/0/1, Enabled, Physical link is Up

CRC/Align errors                         0                0

Physical interface: ge-0/0/2, Enabled, Physical link is Up

CRC/Align errors                         0                0

Physical interface: ge-0/0/3, Enabled, Physical link is Up

CRC/Align errors                         0                0

Physical interface: ge-0/0/4, Enabled, Physical link is Up

CRC/Align errors                         0                0

 

Advertisements