The media thing was good, didn't know that one. Another way (well, two):
show interfaces ge* terse | except "\.0" <--- Only all ge-interfaces, but without the ones including a dot followed by a zero
show interfaces *e*-* terse | except "\.0" <--- All ge, xe, et but will show pfe-1/0/0 and pfe-1/0/0.16383 that you may not want
EusaHues regexps are nifty but a tad too complicated to be used in a CLI typing situation. Very good when scripting, though!
Original Message:
Sent: 11-16-2022 14:59
From: Mark Sinclair
Subject: sh int terse
You can add the "media" option to the "show interfaces" command, which not show any of the logical interfaces / units.
mark@p1> show interfaces terse media Interface Admin Link Proto Local Remotege-0/0/0 up uplc-0/0/0 up uppfe-0/0/0 up uppfh-0/0/0 up upge-0/0/1 up upge-0/0/2 up upge-0/0/3 up upge-0/0/4 up upge-0/0/5 up upge-0/0/6 up upge-0/0/7 up upge-0/0/8 up upge-0/0/9 up upcbp0 up updemux0 up updsc up upem1 up upesi up upfti0 up upfti1 up upfti2 up upfti3 up upfti4 up upfti5 up upfti6 up upfti7 up upfxp0 up upgre up upipip up upirb up upjsrv up uplo0 up uplsi up upmif up upmtun up uppimd up uppime up uppip0 up uppp0 up uprbeb up uptap up upvtep up upmark@p1>
I like using wildcards in the show command to only display the ethernet interfaces.
mark@p1> show interfaces terse media *e-* Interface Admin Link Proto Local Remotege-0/0/0 up uppfe-0/0/0 up upge-0/0/1 up upge-0/0/2 up upge-0/0/3 up upge-0/0/4 up upge-0/0/5 up upge-0/0/6 up upge-0/0/7 up upge-0/0/8 up upge-0/0/9 up upmark@p1>
FYI, if you use the "media" option with "detail" or "extensive", it gives you all the logical units anyway.
------------------------------
Mark Sinclair
Original Message:
Sent: 11-15-2022 23:20
From: Unknown User
Subject: sh int terse
Hi all,
The command of show interface terse is handy...
But what I am looking for is how to list only xe and ge physical interfaces without its all logical interfaces(like xe-0/0/0.10, xe-0/0/0.250 or ge-3/0/10.10- ge3/0/10.150)
Any idea?
thx
A