Diag portloopbacktest – Brocade Network OS Command Reference v4.1.0 User Manual
Page 260

222
Network OS Command Reference
53-1003115-01
diag portloopbacktest
2
diag portloopbacktest
Runs the port loopback test on a given slot-based switch or fixed-configuration switch. You can run
this test on a single port or on all ports in the blade (slot-based switches) or switch
(fixed-configuration switches). This functional test verifies the ability of each port to transmit and
receive frames by setting up the loopback at various levels and speed modes.
Synopsis
diag portloopbacktest [ethernet rbridgeid/slot/port] [fibrechannel rbridgeid/slot/port]
[lbmode loopback_mode] [nframes count] [slot slot_id] [spdmode mode]
Operands
ethernet
The logical Ethernet interface name, which is mutually exclusive from the
Fibre Channel parameter. By default, all ports are tested.
rbridge-id
Specifies the RBridge ID. This is not valid in standalone mode.
slot
Specifies a valid slot number.
port
Specifies a valid port number
fibrechannel
The logical Fibre Channel interface name, which is mutually exclusive from
the Ethernet parameter. By default, all ports are tested.
rbridge-id
Specifies the RBridge ID. This is not valid in standalone mode.
slot
Specifies a valid slot number.
port
Specifies a valid port number.
lbmode mode
Specifies the loopback point for the test. Valid values are 1 (external) or
2 (internal). The default is 2.
nframes count
Specifies the number of frames to send. Valid values range from 1
through 16. The default is 16.
slot slot_id
Specifies the slot identifiers for slot-based systems only.
spdmode mode
Specifies the speed mode for the test. This parameter controls the speed at
which each port operates during the test. Valid parameters are as follows:
1 Gbps
2 Gbps
4 Gbps
8 Gbps
10 Gbps
16 Gbps
40 Gbps
100 Gbps
Defaults
Number of frames (nframes) is 16.
Loopback mode (lbmode) is 2.
Speed mode (spdmode) depends on the platform. On a 10 Gbps port, the default speed mode
is 10.
Command Modes
Privileged EXEC mode (with the chassis disabled, in offline mode)
Description
Use this command to send frames between various ASICS on the switch and to validate ASIC
functionality.