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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: