User Manual
Rev 4.70
Mellanox Technologies
105
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.
> ibstat
CA type: MT4099
Number of ports: 2
Firmware version: 2.11.536
Hardware version: 0
Node GUID: 0x0002c903002e6670
System image GUID: 0x0002c903002e6673
Port 1:
Physical state: Disabled
Rate: 10
Base lid: 4
LMC: 0
SM lid: 2
Capability mask: 0x0251486a
Port GUID: 0x0002c903002e6671
Link layer: InfiniBand
> ibportstate -C mlx4_0 4 1 query
PortInfo:
# Port info: Lid 3 port 1
LinkState:.......................Initialize
PhysLinkState:...................LinkUp
LinkWidthSupported:..............1X or 4X
-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
Table 16 - ibportstate Flags and Options (Continued)
Flag Description