command to find all active ports & their state

  • 0
  • 1
  • Question
  • Updated 4 months ago
  • Answered
I am looking for a way to find all the active ports and their states on a couple stacks.  Does anyone know of a command I can run to get that from the stacks?

Thanks
Photo of Chris Forbes

Chris Forbes

  • 70 Points

Posted 3 years ago

  • 0
  • 1
Photo of Drew C.

Drew C., Community Manager

  • 39,516 Points 20k badge 2x thumb
Hi Chris,
Does this look like what you're expecting to see?
X460-48t.1 # show port config no-refresh
Port Configuration
Port Virtual Port Link Auto Speed Duplex Flow Load Media
router State State Neg Cfg Actual Cfg Actual Cntrl Master Pri Red
================================================================================
1 VR-Default E A ON AUTO 1000 AUTO FULL SYM UTP
2 VR-Default E A ON AUTO 1000 AUTO FULL NONE UTP
3 VR-Default E R ON AUTO AUTO UTP
4 VR-Default E R ON AUTO AUTO UTP
5 VR-Default E R ON AUTO AUTO UTP
6 VR-Default E A ON AUTO 1000 AUTO FULL SYM UTP
7 VR-Default E R ON AUTO AUTO UTP
8 VR-Default E R ON AUTO AUTO UTP
9 VR-Default E A ON AUTO 1000 AUTO FULL SYM UTP
<snip>
48 VR-Default E A ON AUTO 100 AUTO FULL NONE UTP
49 VR-Default E R ON AUTO AUTO NONE
50 VR-Default E R ON AUTO AUTO NONE
51 VR-Default E A ON AUTO 1000 AUTO FULL SYM 51 SX
52 VR-Default E R ON AUTO AUTO 51 NONE
53 VR-Default E A OFF 10000 10000 FULL FULL NONE 53 SF+_SR
54 VR-Default E A OFF 10000 10000 FULL FULL NONE 53 SF+_SR
55 VR-Default E NP OFF 10000 FULL NONE
56 VR-Default E NP OFF 10000 FULL NONE
57 VR-Default E NP OFF 10000 FULL NONE
58 VR-Default E NP OFF 10000 FULL NONE
================================================================================
> indicates Port Display Name truncated past 8 characters
Link State: A-Active, R-Ready, NP-Port Not Present, L-Loopback
Port State: D-Disabled,E-Enabled, Media: %-Licensed, !-Unsupported, $-Unlicensed
Media Red: * - use "show port info detail" for redundant media type
Flow Cntrl: Shows link partner's abilities. NONE if Auto Neg is OFF
You can also do show port no-refresh to get a simpler list that shows the VLAN or number of VLANs and link state.
Photo of Grosjean, Stephane

Grosjean, Stephane, Employee

  • 13,348 Points 10k badge 2x thumb
You could optimize Drew's command that way:

VM1.3 # sh port config no-refresh | inc " A "
1        VPN-Green   E      A    ON  AUTO   100 AUTO FULL   NONE        UTP    
2        VPN-Blue    E      A    ON  AUTO   100 AUTO FULL   NONE        UTP    
3        VR-Default  E      A    ON  AUTO   100 AUTO FULL   NONE        UTP    
4        VR-Default  E      A    ON  AUTO   100 AUTO FULL   NONE        UTP    
VM1.4 #

That could be easily turned into a small script to have fancy output or extract what you really want to see, maybe with some other details from the list of port you find.
(Edited)
Photo of Christina M

Christina M, Information Architect, Information Development

  • 1,668 Points 1k badge 2x thumb
If you have ExtremeXOS 15.7, you can use the web-based UI (known as Chalet) to get a view of your ports and lots of other information, quickly. Check it out! http://documentation.extremenetworks.com/chalet/
Photo of Drew C.

Drew C., Community Manager

  • 39,028 Points 20k badge 2x thumb
If you have input, we'll take it!  I've got the translation file (in .json format) that I'll email you directly, eyeV.
Thanks!
Photo of eyeV

eyeV

  • 2,484 Points 2k badge 2x thumb
Sorry for waiting. I've got it from Drew.
Photo of Drew C.

Drew C., Community Manager

  • 39,028 Points 20k badge 2x thumb
Just to update the thread... your suggestions got sent along to the Chalet devs and I believe it was approved for inclusion in a future release.  I don't know which release though.
Photo of eyeV

eyeV

  • 2,484 Points 2k badge 2x thumb
Thanks. It was great to participate in it.
Photo of Dayanand Biradar

Dayanand Biradar

  • 60 Points
Thanks Stephan for the commands but after entering the command i am not able to see the port number details with interface status in the Extreme x450g4 model.