show spx debug

Displays debug information for an SPX port, an SPX LAG, or a set of ports or LAGs.
Syntax
show spx debug port { unit/slot/port } [ distributed ]
show spx debug port all [ distributed { pe-id | all-pe | units list } ] ]
show spx debug lag { lag-id | all } [ distributed { pe-id | all-pe | units list } ]
Parameters
lag
Specifies output as SPX LAG information.
lag-id
Identifies the SPX LAG
all
Includes IDs and information for all SPX LAGs in the output.
port
Displays information for the specified port.
unit/slot/port
Identifies the SPX port for which information is displayed.
all
Displays information for all SPX ports.
distributed
Specifies that debug information is to originate from a particular PE unit, a list of PE units, or all PE units (rather than from the data stored at the CB).
pe-id
Specifies the attached PE from which information is to be obtained.
all-pe
Specifies that information will be obtained from all PE units.
units list
Lists the units from which debug information is to be obtained.
Modes

Privileged EXEC mode

The show spx debug command displays the following information:

Output field Description
spx-lag ID Number of the SPX LAG. The SPX ports in the LAG are listed.
Port SPX port for which information is displayed.
PortExtDb Index Database active on the PE unit associated with the port.
Port type

Type of port by number:

  1. Cascade
  2. Uplink
  3. Host
  4. Cascade Init
  5. Cascade FWD
  6. Cascade BLK

lag_id Identifies the SPX LAG associated with this port in hardware (used to cross check LAG ID stored in software)
Examples

The following example provides the SPX LAG ID (columns 1 and 4), lists the ports in each SPX LAG (column 1), provides a database index number (column 2), and displays a port type for each port in the LAG (column 3). In the example, the database index for ports 1/1/1 and 2/1/1 do not match although they should.

device# show spx debug lag all

spx-lag ID 3072

Port          PortExtDb Index          Port type          lag_id
1/1/1            0                       1                 3072   |<-- Database mismatch
2/1/1            f                       1                 3072   |    on 1/1/1 and 2/1/1

spx-lag ID 3073

Port          PortExtDb Index          Port type          lag_id
1/1/6            6                       1                 3073

spx-lag ID 3074

Port          PortExtDb Index          Port type          lag_id
1/1/2            ff                       1                 3074
1/1/3            ff                       1                 3074  


The following example obtains debug information on all SPX LAGs directly from all PE units in the system. The information comes from the PE units rather than the CB when the keyword distributed is used. The command lists the LAG IDs, ECID values, and port type for all ports in each LAG.

device# show spx debug lag all distributed all-pe

*********************
Response from PE 19:
*********************

spx-lag ID 1
Port          ECID          Port type          lag_id
19/1/1         236           5                   1
19/1/2         236           5                   1

spx-lag ID 2
Port          ECID          Port type          lag_id
19/2/1         235           2                   2

*********************
Response from PE 20:
*********************

spx-lag ID 1
Port          ECID          Port type          lag_id
20/1/1         315           2                   1
20/1/2         315           2                   1

spx-lag ID 2
Port          ECID          Port type          lag_id
20/1/3         316           6                   2

*********************
Response from PE 23:
*********************

spx-lag ID 1
Port          ECID          Port type          lag_id
23/1/47         556           6                   1

spx-lag ID 2
Port          ECID          Port type          lag_id
23/2/3         555           2                   2
23/2/4         555           2                   2

*********************
Response from PE 29:
*********************

spx-lag ID 1
Port          ECID          Port type          lag_id
29/2/1        1036           5                   1

spx-lag ID 2
Port          ECID          Port type          lag_id
29/2/3        1035           2                   2
29/2/4        1035           2                   2
History
Release version Command history
08.0.40 This command was introduced.
08.0.61 The command was modified to include the distributed parameter.