User Manual

Table Of Contents
InfiniBand FabricRev 4.3
Mellanox Technologies
53
In case of multiple channel adapters (CAs) or multiple ports without a CA/port being specified, a
port is chosen by the utility according to the following criteria:
1. The first ACTIVE port that is found.
2. If not found, the first port that is UP (physical link state is LinkUp).
Examples
1. Query the status of Port 1 of CA mlx4_0 (using ibstatus) and use its output (the LID – 3 in
this case) to obtain additional link information using ibportstate.
-G/--Guid Use GUID address argument. In most cases, it is the Port GUID. Example:
‘0x08f1040023’
-s/--sm_port Use <smlid> as the target lid for SM/SA queries
-C/--Ca Use the specified channel adapter or router
-P/--Port Use the specified port
-u/--usage Usage message
-t/--timeout Override the default timeout for the solicited MADs [msec]
<dest dr_path | lid | guid> Destination’s directed path, LID, or GUID.
<portnum> Destination’s port number
<op> [<value>] Define the allowed port operations: enable, disable, reset, speed, and
query
> ibstatus mlx4_0:1
Infiniband device 'mlx4_0' port 1 status:
default gid: fe80:0000:0000:0000:0000:0000:9289:3895
base lid: 0x3
sm lid: 0x3
state: 2: INIT
phys state: 5: LinkUp
rate: 20 Gb/sec (4X DDR)
> ibportstate -C mlx4_0 3 1 query
PortInfo:
# Port info: Lid 3 port 1
LinkState:.......................Initialize
PhysLinkState:...................LinkUp
LinkWidthSupported:..............1X or 4X
LinkWidthEnabled:................1X or 4X
LinkWidthActive:.................4X
LinkSpeedSupported:..............2.5 Gbps or 5.0 Gbps
LinkSpeedEnabled:................2.5 Gbps or 5.0 Gbps
LinkSpeedActive:.................5.0 Gbps
Table 6 - ibportstate Flags and Options (Continued)
Flag Description