User guide
G–Commands and Files
Summary and Descriptions of Commands
G-8 IB0054606-02 A
Examples:
Query by LID and SID:
iba_opp_query -s 0x31 -d 0x75 -i 0x107
iba_opp_query --slid 0x31 --dlid 0x75 --sid 0x107
Queries using octal or decimal numbers:
iba_opp_query --slid 061 --dlid 0165 --sid 0407 (using octal
numbers)
iba_opp_query –slid 49 –dlid 113 –sid 263 (using decimal
numbers)
Note that these queries are the same as the first two, only the base of the
numbers has changed.
Query by LID and PKEY:
iba_opp_query --slid 0x31 --dlid 0x75 –pkey 0x8002
Query by GID:
iba_opp_query -S fe80::11:7500:79:e416 -D
fe80::11:7500:79:e54a --sid 0x107
iba_opp_query -S 0xfe80000000000000:0x001175000079e416 -D
0xfe80000000000000:0x001175000079e394 --sid 0x107
As before, these queries are identical to the first two queries – they are just
using the GIDs instead of the LIDs to specify the ports involved.