FACT show ports

From DocWiki

Jump to: navigation, search

To show the state of the ports in a given switch or an entire network, use the show ports command.


show ports {chassis | chips | ports} [internal | external] [disabled] {state [down | initialize | armed | active]} [summary | guids | detail | full]



Syntax Description

chassis Show all ports in one or more chassis.
chips Shows all ports on one or more chips that are specified.
ports Shows one port or multiple ports that you specify.
internal (Optional) Shows the internal ports only.
external (Optional) Shows the external ports only.
disabled (Optional) Shows only the ports that are disabled.
state Initializes the port state.
down (Optional) Shows which ports are in the down state.
initialize (Optional) Shows the ports that are in the initialized state.
armed (Optional) Shows which ports are in the armed state.
active (Optional) Shows which ports are in the active state.
summary (Optional) Shows one line of information for each port.
guids (Optional) Shows one line of information for the GUID and LID of each port.
detail (Optional) Shows the most important attributes for each port.
full (Optional) Shows multiple attributes about each port.


Command Default

The default view is the summary view, which shows one line per port. If there is no current scan or the curent scan is incomplete, using the show chassis command automatically performs a fabric scan.


Usage Guidelines

Shows the port and the neighbor of each port. When you use the GUID view, FACT shows the port GUID and the neighbor GUID. Host ports have GUIDs, so the GUIDs will show, but switch ports do not have GUIDs, so they will not show. If the port is not connected, FACT looks through previous scans for the last-known neighbor and prints the port name and GUID of the neighbor (if it has a GUID), both in square brackets, and it also shows the scan number.
If the port was connected at one time yet is no longer connected, the port will have a last-known neighbor. The last-known neighbor appears in square brackets, followed by the scan number in which it was last seen.


Examples

The following example shows all the active external ports in the subnet:
  fact> show ports external state active
  
  port                           state  capacity neighbor
  ------------------------------ ------ -------- --------------------------------
  host01/1/1                     active 4x-ddr   switchB/1/7
  switchA/1/3                    active 4x-sdr   switchB/1/3
  switchB/1/3                    active 4x-sdr   switchA/1/3
  switchB/1/7                    active 4x-ddr   host01/1/1
   


Related Commands

show changes
show chassis
show chips
show multicast groups

Rating: 0.0/5 (0 votes cast)

Personal tools