SAQUERY(8) OpenIB Diagnostics SAQUERY(8)NAME
saquery - query InfiniBand subnet administration attributes
SYNOPSIS
saquery [-h] [-d] [-p] [-N] [--list | -D] [-S] [-I] [-L] [-l] [-G] [-O] [-U] [-c] [-s] [-g] [-m] [-x] [-C ca_name] [-P ca_port] [--smkey
val] [-t(imeout) <msec>] [--src-to-dst <src:dst>] [--sgid-to-dgid <sgid-dgid>] [--node-name-map <node-name-map>] [<name> | <lid> | <guid>]
DESCRIPTION
saquery issues the selected SA query. Node records are queried by default.
OPTIONS -p get PathRecord info
-N get NodeRecord info
--list | -D
get NodeDescriptions of CAs only
-S get ServiceRecord info
-I get InformInfoRecord (subscription) info
-L return the Lids of the name specified
-l return the unique Lid of the name specified
-G return the Guids of the name specified
-O return the name for the Lid specified
-U return the name for the Guid specified
-c get the SA's class port info
-s return the PortInfoRecords with isSM or isSMdisabled capability mask bit on
-g get multicast group info
-m get multicast member info. If a group is specified, limit the output to the group specified and print one line containing only the
GUID and node description for each entry. Example: saquery -m 0xc000
-x get LinkRecord info
--src-to-dst
get a PathRecord for <src:dst> where src and dst are either node names or LIDs
--sgid-to-dgid
get a PathRecord for sgid to dgid where both GIDs are in an IPv6 format acceptable to inet_pton(3).
-C <ca_name>
use the specified ca_name.
-P <ca_port>
use the specified ca_port.
--smkey <val>
use SM_Key value for the query. Will be used only with "trusted" queries. If non-numeric value (like 'x') is specified then saquery
will prompt for a value.
-t, -timeout <msec>
Specify SA query response timeout in milliseconds. Default is 100 milliseconds. You may want to use this option if IB_TIMEOUT is
indicated.
--node-name-map <node-name-map>
Specify a node name map. The node name map file maps GUIDs to more user friendly names. See ibnetdiscover(8) for node name map
file format. Only used with the -O and -U options.
Supported query names (and aliases):
ClassPortInfo (CPI)
NodeRecord (NR)
PortInfoRecord (PIR)
SL2VLTableRecord (SL2VL) [[lid]/[in_port]/[out_port]]
PKeyTableRecord (PKTR) [[lid]/[port]/[block]]
VLArbitrationTableRecord (VLAR) [[lid]/[port]/[block]]
InformInfoRecord (IIR)
LinkRecord (LR) [[from_lid]/[from_port]] [[to_lid]/[to_port]]
ServiceRecord (SR)
PathRecord (PR)
MCMemberRecord (MCMR)
LFTRecord (LFTR) [[lid]/[block]]
MFTRecord (MFTR) [[mlid]/[position]/[block]]
-d enable debugging
-h show help
AUTHORS
Ira Weiny
<weiny2@llnl.gov>
Hal Rosenstock
<halr@voltaire.com>
OpenIB October 19, 2008 SAQUERY(8)
Check Out this Related Man Page
IBTRACERT(8) OpenIB Diagnostics IBTRACERT(8)NAME
ibtracert- trace InfiniBand path
SYNOPSIS
ibtracert [-d(ebug)] [-v(erbose)] [-D(irect)] [-G(uids)] [-n(o_info)] [-m mlid] [-s smlid] [-C ca_name] [-P ca_port] [-t(imeout) time-
out_ms] [-V(ersion)] [--node-name--map <node-name-map>] [-h(elp)] [<dest dr_path|lid|guid> [<startlid> [<endlid>]]]
DESCRIPTION
ibtracert uses SMPs to trace the path from a source GID/LID to a destination GID/LID. Each hop along the path is displayed until the desti-
nation is reached or a hop does not respond. By using the -m option, multicast path tracing can be performed between source and destination
nodes.
OPTIONS -n, --no_info
simple format; don't show additional information
-m show the multicast trace of the specified mlid
--node-name-map <node-name-map>
Specify a node name map. The node name map file maps GUIDs to more user friendly names. See ibnetdiscover(8) for node name map
file format.
COMMON OPTIONS
Most OpenIB diagnostics take the following common flags. The exact list of supported flags per utility can be found in the usage message
and can be shown using the util_name -h syntax.
# Debugging flags
-d raise the IB debugging level.
May be used several times (-ddd or -d -d -d).
-h show the usage message
-v increase the application verbosity level.
May be used several times (-vv or -v -v -v)
-V show the version info.
# Addressing flags
-D use directed path address arguments. The path
is a comma separated list of out ports.
Examples:
"0" # self port
"0,1,2,1,4" # out via port 1, then 2, ...
-G use GUID address argument. In most cases, it is the Port GUID.
Example:
"0x08f1040023"
-s <smlid> use 'smlid' as the target lid for SM/SA queries.
# Other common flags:
-C <ca_name> use the specified ca_name.
-P <ca_port> use the specified ca_port.
-t <timeout_ms> override the default timeout for the solicited mads.
Multiple CA/Multiple Port Support
When no IB device or port is specified, the port to use is selected by the following criteria:
1. the first port that is ACTIVE.
2. if not found, the first port that is UP (physical link up).
If a port and/or CA name is specified, the user request is attempted to be fulfilled, and will fail if it is not possible.
EXAMPLES
Unicast examples
ibtracert 4 16 # show path between lids 4 and 16
ibtracert -n 4 16 # same, but using simple output format
ibtracert -G 0x8f1040396522d 0x002c9000100d051 # use guid addresses
Multicast example
ibtracert -m 0xc000 4 16 # show multicast path of mlid 0xc000 between lids 4 and 16
SEE ALSO ibroute(8)AUTHOR
Hal Rosenstock
<halr@voltaire.com>
Ira Weiny
<weiny2@llnl.gov>
OpenIB April 14, 2007 IBTRACERT(8)