Name
opasaquery — Performs various queries of the subnet manager/subnet agent and provides detailed fabric information.
Syntax
opasaquery [-v] [-I] [-h hfi|-b addr] [-p port] [--timeout] [-x src_gid] [-E feEsm] [-T ssl_params] [-l lid] [-t nodetype] [-s guid] [-n guid] [-g guid] [-k pkey] [-i vfIndex] [-S serviceId] [-L sl] [-u gid] [-m gid] [-d desc_name] [-D dg_name] [-P 'guid guid'] [-G 'gid gid'] [-H 'mask'] [-o type]
Description
opareport and opareports from OPX Software can provide a more powerful tool. In some cases, opasaquery is preferred, especially when dealing with virtual fabrics, service records, and multicast.
By default, opasaquery uses the first active port on the local system. However, if the node is connected to more than one fabric (for example, a subnet), the SuperNIC and port may be specified to select the fabric whose SA is to be queried.
Options
--helpProduces full help text.
-v/--verboseReturns verbose output. A second invocation activates
openibdebugging, a third invocation activateslibibumaddebugging.-I/--IBIssues query in legacy InfiniBand format.
-h/--hfihfiSpecifies the SuperNIC, numbered 1..n. Using 0 specifies that the
-pport is a system-wide port number. Default is 0.port-b/--oobaddressSpecifies Out-of-Band address of node running the FE. Can be either hostname, IPv4, or IPv6 address. Default is "127.0.0.1".
-p/--portportSpecifies the port.
In-band: Numbered 1..n. Using 0 specifies first active port. Default is 0.
Out-of-band: Port FE is listening on. Default is 3245.
--timeoutSpecifies the timeout (wait time for response) in ms. Default is 1000 ms.
-x/--source-gidsrc_gidSpecifies the source GID of the local GID. This is required for most Path and Trace Record Queries when Out-of-Band.
-E/--feEsm(OPA100 only) Specifies the ESM FE.
-T/--ssl-paramsfileSpecifies the SSL/TLS parameters XML file. Default is
/etc/opa/opamgt_tls.xml.-l/--lidlidQueries a specific LID.
-t/--typenode_typeQueries by node type. See for details.
-s/--sysguidguidQueries by system image GUID.
-n/--nodeguidguidQueries by node GUID.
-g/--portguidguidQueries by port GUID.
-k/--pkeypkeyQueries a specific PKey.
-i/--vfindexvfIndexQueries a specific vfindex.
-S/--serviceIdserviceIdQueries a specific service ID.
-L/--SLSLQueries by service level.
-u/--portgidgidQueries by port GID. See for details.
-m/--mcgidgidQueries by multicast GID for switches. See for details.
-d/--descnameQueries by node name/description.
-D/--dgnamenameQueries by device group name/description
-P/--guidpair 'guid guid'Queries by a pair of port GUIDs.
-G/--gidpair 'gid gid'Queries by a pair of GIDs. See for details.
-HmaskQueries by link condition. The following shows Mask: Condition.
0x1: slowlinks
0x2: misconfiglinks
0x3: misconnlinks
-otypeOutput type for query. Default is
node. See for details.
-h and -p options permit a variety of selections:
-h 0First active port in the system (Default).
-h 0 -p 0First active port in the system.
-hxFirst active port on SuperNIC
x.-hx-p 0First active port on SuperNIC
x.-h 0 -pyPort
ywithin the system (no matter which ports are active).-hx-pySuperNIC
x, porty.
Node Types
fiFabric Interface
swSwitch
GIDs
Specifies a 64-bit subnet and 64-bit interface ID in the form:
subnet:interface
Note
In the following example, the GID corresponds to a PortGID. In this case, the interface ID coincides with the lower 64-bits of the GUID of the card. The interface ID will be different if the GID is a multicast GID (MGID). See opafm.xml for MGID examples.
0xfe80000000000000:0x00117500a0000380
Output Types
Default is node.
classportinfoSpecifies the
classportinfoof the SA.systemguidLists the system image GUIDs.
nodeguidLists the node GUIDs.
portguidLists the port GUIDs.
lidLists the LIDs.
descLists the node descriptions/names.
pathLists the path records.
nodeLists the node records.
portinfoLists the port info records.
sminfoLists the SM info records.
swinfoLists the switch info records.
linkLists the link records.
scscslscLists the SL to SC mapping table records.
scslLists the SC to SL mapping table records.
scvltLists the SC to VLt table records.
scvlrLists the SC to VLr table records.
scvlntLists the SC to VLnt table records.
sitscvlt(CN5000 only) Lists the Sit to SC to VLt table records.
vlarbLists the VL arbitration table records.
bwarb(CN5000 only) Lists the BW arbitration table records.
pkeyLists the PKey table records.
serviceLists the service records.
mcmemberLists the multicast member records.
informLists the inform info records.
linfdbLists the switch linear forwarding database (FDB) records.
hierfdb(CN5000 only) Lists the switch hierarchical FDB records.
hiercont(CN5000 only) Lists the switch hierarchical control records.
hiertabsel(CN5000 only) Lists the switch hierarchical table select records.
hieroverride(CN5000 only) Lists the switch hierarchical override records.
hierboverride(CN5000 only) Lists the switch hierarchical BCAM override records.
mcfdbLists the switch multicast FDB records.
traceLists the trace records.
vfinfoLists the vFabrics.
vfinfocsvLists the vFabrics in CSV format.
vfinfocsv2Lists the vFabrics in CSV format with enums.
fabricinfoSpecifies the summary of fabric devices.
quarantineLists the quarantined nodes.
conginfoLists the Congestion Info Records.
swcongsetLists the Switch Congestion Settings.
hficongcrtlexch(CN5000 only) Lists the SuperNIC congestion control exchange.
swcongexch(CN5000 only) Lists the switch congestion exchange settings.
swtelemexch(CN5000 only) Lists the switch telemetry exchange settings.
swportcongLists the Switch Port Congestion Settings.
hficongsetLists the SuperNIC Congestion Settings.
hficongconLists the SuperNIC Congestion Control Settings.
bfrctrlLists the buffer control tables.
cableinfoLists the Cable Info records.
portgroupLists the AR Port Group records.
portgroupfdbLists the AR Port Group FWD records.
dglistLists the Device Group Names.
dgmemberLists the Device Group records.
dtreeLists the Device Tree records.
swcostLists the switch cost records.
The vfinfocsv and vfinfocsv2 output formats are designed to make it easier to script vfinfo queries. One line is output per vFabric of the form:
name:index:pkey:sl:mtu:rate:optionflag::mcastSl
The only difference between these two formats is how the MTU and rate are output. vfinfocsv outputs MTU and rate in human/text readable format. vfinfocsv2 outputs MTU and rate as enumerations defined for the SMA protocol. The opagetvf command is based on this capability of opasaquery. For more information, see .
Example
opasaquery -o desc -t fi
Notes
The following list shows the input (assorted query by options) and outputs (-o) that are permitted.
- None
-ooutput permittedsystemguid, nodeguid, portguid, lid, desc, path, node, portinfo, sminfo, swinfo, link, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, vfinfo, vfinfocsv, vfinfocsv2, scsc, slsc, scvlt, scnlmt, linfdb, classportinfo, fabricinfo, quarantine, conginfo, swcongset, swportcong, hficongset, hficongcon, bfrctl, cableinfo, portgroup, portgroupfdb, dglist, dgmember, dtree-ooutput not permittedtrace
-tnodetype-ooutput permittedsystemguid, nodeguid, portguid, lid, desc, node, dglist, dgmember, dtree-ooutput not permittedportinfo, sminfo, swinfo, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, trace, vfinfo, vfinfocsv, vfinfocsv2
-llid-ooutput permittedsystemguid, nodeguid, portguid, lid, desc, path, node, portinfo, swinfo, slvl, vlarb, pkey, mcmember, linfdb, mcfdb, dgmember, dtree-ooutput not permittedsminfo, link, inform, service, trace, vfinfo, vfinfocsv, vfinfocsv2, dglist
-kpkey-ooutput permittedmcmember, path, vfinfo, vfinfocsv, vfinfocsv2-ooutput not permittedsystemimageguid, nodeguid, portguid, lid, desc, node, portinfo, sminfo, swinfo, link, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, dglist, dgmember, dtree
-i vfindex-ooutput permittedvfinfo, vfinfocsv, vfinfocsv2-ooutput not permittedsystemimageguid, nodeguid, portguid, lid, desc, node, portinfo, sminfo, swinfo, link, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, dglist, dgmember, dtree
-ssystem_image_guid-ooutput permittedsystemguid, nodeguid, portguid, lid, desc, node-ooutput not permittedportinfo, sminfo, swinfo, link, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, trace, vfinfo, vfinfocsv, vfinfocsv2, dglist, dgmember, dtree
-nnode_guid-ooutput permittedsystemguid, nodeguid, portguid, lid, desc, node-ooutput not permittedportinfo, sminfo, swinfo, link, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, trace, vfinfo, vfinfocsv, vfinfocsv2, dglist, dgmember, dtree
-gport_guid-ooutput permittedsystemguid, nodeguid, portguid, lid, desc, path, node, trace, dgmember-ooutput not permittedportinfo, sminfo, swinfo, link, vlarb, pkey, linfdb, mcfdb, vfinfo, vfinfocsv, vfinfocsv2, dglist, dtree, service, mcmember, inform
-uport_gid-ooutput permittedpath, service, mcmember, inform, trace-ooutput not permittedsystemguid, nodeguid, portguid, lid, desc, node, portinfo, sminfo, swinfo, link, vlarb, pkey, linfdb, mcfdb, vfinfo, vfinfocsv, vfinfocsv2, dglist, dgmember, dtree
-mmulticast_gid-ooutput permittedmcmember, vfinfo, vfinfocsv, vfinfocsv2-ooutput not permittedsystemguid, nodeguid, portguid, lid, desc, path, node, portinfo, sminfo, swinfo, link, vlarb, pkey, service, inform, linfdb, mcfdb, trace, dglist, dgmember, dtree
-dnode_description-ooutput permittedsystemguid, nodeguid, portguid, lid, desc, node, dgmember-ooutput not permittedtrace, dglist, dtree
-Ddg_name-ooutput permitteddgmember-ooutput not permittedsystemguid, nodeguid, portguid, lid, desc, path, node, portinfo, sminfo, swinfo, link, vlarb, pkey, service, inform, linfdb, mcfdb, trace, dglist, dtree
-Pport_guid_pair-ooutput permittedpath, trace-ooutput not permittedsystemguid, nodeguid, portguid, lid, desc, node, portinfo, sminfo, swinfo, link, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, dglist, dgmember, dtree
-SserviceId-ooutput permittedpath, vfinfo, vfinfocsv, vfinfocsv2, service-ooutput not permittedsystemimageguid, nodeguid, portguid, lid, desc, node, portinfo, sminfo, swinfo, link, vlarb, pkey, mcmember, inform, linfdb, mcfdb, dglist, dgmember, dtree
-LSL-ooutput permittedpath, vfinfo, vfinfocsv, vfinfocsv2-ooutput not permittedsystemimageguid, nodeguid, portguid, lid, desc, node, portinfo, sminfo, swinfo, link, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, dglist, dgmember, dtree
-Ggid_pair-ooutput permittedpath, trace-ooutput not permittedsystemguid, nodeguid, portguid, lid, desc, node, portinfo, sminfo, swinfo, link, vlarb, pkey, service, mcmember, inform, linfdb, mcfdb, dglist, dgmember, dtree
Example
opasaquery -o desc -t fi