command to find all active ports & their state


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

10 replies

Userlevel 7
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

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[/code]You can also do
code:
show port no-refresh
to get a simpler list that shows the VLAN or number of VLANs and link state.
Userlevel 7
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 # [/code]
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.
Userlevel 5
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/
Userlevel 3
Christina M wrote:

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/

Interesting thing!

But when I enable Russian language.. Translation is pretty ugly and a bit funny. ) I really can improve it if you want. Although a few people would use it.
Userlevel 5
Christina M wrote:

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/

The UI was translated in-house by a native speaker, but that doesn't mean it's perfect! If you would like to let us know what is inaccurate, I can pass the corrections on to the developers. You can email me https://mailto:internalinfodev@extremenetworks.com?subject=For Christina M - Chalet translation corrections. Thanks!
Userlevel 7
Christina M wrote:

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/

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!
Userlevel 3
Christina M wrote:

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/

Sorry for waiting. I've got it from Drew.
Userlevel 7
Christina M wrote:

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/

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.
Userlevel 3
Christina M wrote:

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/

Thanks. It was great to participate in it.
Christina M wrote:

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/

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.

Reply