opapmaquery(1)
๐ธ NAME ๐ธ
okay bestie, welcome to opapmaquery(1) โ a page straight out of the IFSFFCLIRG man set, and honestly? it's a good one. ๐
opapmaquery โ (All) performs individual PMA queries against a specific LID. It is very useful in displaying port runtime information. like, that's its whole thing and it ate. โจ
๐ Syntax ๐
no cap, here's the shape of it:
opapmaquery [-v] [-s sl] [-l lid] [-h hfi] [-p port] [-o otype]
[-m port] [-n mask] [-e mask] [-w mask]
โจ Options โจ
every single one, we're not skipping a thing, periodt. ๐
--helpโ Produces full help text. ๐-vโ Specifies the verbose output. Can be specified more than once for additionalopenibdebugging andlibibumaddebugging. ๐ (yes, stack it up, it just gets louder)-s slโ Specifies different service level. Default is SM SL. ๐-l lidโ Specifies the destination LID. Default is local port. ๐-h/--hfi hfiโ Specifies the HFI, numbered1..n. Using0specifies that the-p portport is a system-wide port number. Default is0. ๐ฆ-p/--port portโ Specifies the port, numbered1..n. Using0specifies the first active port. Default is0. ๐-o otypeโ Specifies the output type. Default isgetportstatus. Refer to otype options vary by report for supported options. ๐
Valid output types are:
classportinfoโ Specifies the class of port info.getportstatusโ Specifies the list of port counters. Supported options:[-m port] [-w vl mask]
clearportstatusโ Clears the port counters. Supported options:[-n port mask] [-e counter mask] [-w vl mask]
getdatacountersโ Specifies the list of data counters. Supported options:[-n port mask] [-w vl mask]
geterrorcountersโ Specifies the list of error counters. Supported options:[-n port mask] [-w vl mask]
geterrorinfoโ Specifies the list of error info. Supported options:[-n port mask]
clearerrorinfoโ Clears the error info. Supported options:[-n port mask] [-e counter mask]
okay so the -h and -p options permit a variety of selections, and the way that this works is genuinely so satisfying. pick your fighter: ๐ฅ
-h 0โ First active port in system (Default).-h 0 -p 0โ First active port in system.-h xโ First active port on HFI x.-h x -p 0โ First active port on HFI x.-h 0 -p yโ Port y within system (no matter which ports are active).-h x -p yโ HFI x, port y.
๐ฆ otype options vary by report ๐ฆ
-m portโ Specifies the port in destination device to query/clear. Required when using-loption for all but-o classportinfo. โ ๏ธ (required, fr fr, don't forget it)-n maskโ Specifies the port mask, in hexadecimal. Bits represent ports63-0. For example:0x2for port 1,0x6for ports 1, 2. ๐งฎ-e maskโ Specifies the counter/error select mask, in hexadecimal. The following lists "Mask - Bit - Location for Counters". Where applicable, location "for Error Info" is presented. Default is all bits set (0xffffffe0). ๐0x80000000- 31 - Transmit Data (XmitData) For Error Info: Receive Error Info0x40000000- 30 - Receive Data (RcvData) For Error Info: Excessive Buffer Overrun0x20000000- 29 - Transmit Packets (XmitPkts) For Error Info: Transmit Const Error Info0x10000000- 28 - Receive Packets (RcvPkts) For Error Info: Receive Const Error Info0x08000000- 27 - Multicast Transmit Packets (MulticastXmitPkts) For Error Info: Receive Switch Relay Error Info0x04000000- 26 - Multicast Receive Packets (MulticastRcvPkts) For Error Info: Uncorrectable Error Info0x02000000- 25 - Transmit Wait (XmitWait) For Error Info: FM Configuration Error Info0x01000000- 24 - Congestion Discards (CongDiscards)0x00800000- 23 - Receive FECN (RcvFECN)0x00400000- 22 - Receive BECN (RcvBECN)0x00200000- 21 - Transmit Time Congestion (XmitTimeCong)0x00100000- 20 - Transmit Time Wasted BW (XmitWastedBW)0x00080000- 19 - Transmit Time Wait Data (XmitWaitData)0x00040000- 18 - Receive Bubble (RcvBubble)0x00020000- 17 - Mark FECN (MarkFECN)0x00010000- 16 - Receive Constraint Errors (RcvConstraintErrors)0x00008000- 15 - Receive Switch Relay (RcvSwitchRelayErrors)0x00004000- 14 - Transmit Discards (XmitDiscards)0x00002000- 13 - Transmit Constraint Errors (XmitConstraintErrors)0x00001000- 12 - Receive Remote Physical Errors (RcvRemotePhysicalErrors)0x00000800- 11 - Local Link Integrity (LocalLinkIntegrityErrors)0x00000400- 10 - Receive Errors (RcvErrors)0x00000200- 9 - Excessive Buffer Overrun (ExcessiveBufferOverruns)0x00000100- 8 - FM Configuration Errors (FMConfigErrors)0x00000080- 7 - Link Error Recovery (LinkErrorRecovery)0x00000040- 6 - Link Error Downed (LinkDowned)0x00000020- 5 - Uncorrectable Errors (UncorrectableErrors)
-w maskโ Specifies the Virtual Lane Select Mask, in hexadecimal. Bits represent VL number31-0. For example,0x1for VL 0,0x3for VL 0,1. Default is none. ๐
๐ Examples ๐
here's the whole lineup, copied character-for-character, comments and all, because we do not edit the facts in this house ๐ซถ
opapmaquery -o classportinfo
opapmaquery -o getportstatus
# get data and error counts, local port
opapmaquery -o getdatacounters -n 0x2
# get data counts, local port 1
opapmaquery -o geterrorcounters -n 0x2
# get error counts, local port 1
opapmaquery -o clearportstatus -n 0x2
# clear all counters local port 1
opapmaquery -o geterrorinfo -n 0x2
# get error info for local port 1
opapmaquery -o clearerrorinfo -n 0x2
# clear all error info, local port 1
opapmaquery -o getdatacounters -l 6 -n 0x7e -w 0x1
# for device at LID 6, get data counters on ports 1-6, inclusive of VL 0
data
opapmaquery -o clearportstatus -l 6 -n 0x2 -e 0x1ffff
# for device at LID 6, on port 1, clear only error counters
opapmaquery -o clearerrorinfo -l 6 -n 0x2 -e 0x04000000
# for device at LID 6, on ports 1, clear uncorrectable error info
๐ gentle reminder bestie:clearportstatusandclearerrorinfoliterally clear things. clearing counters is not a vibe check you can undo, so double-check your-l,-nand-ebefore you hit enter. ๐
๐ the sign-off ๐
that's the whole page, no crumbs left. this one's Copyright(C) 2015-2019 Intel Corporation, and it's the opapmaquery(1) page from the IFSFFCLIRG (Man Page) set โ so go query some ports, you absolute icon. ๐
โจ๐๐ฆ๐
๐ฆ where this page comes from
- centos-stream 9: opa-basic-tools 1:10.12.1.0.6-1.el9 ยท BSD or GPLv2
- debian bookworm: opa-basic-tools 10.10.3.0.11-1+b1 ยท BSD-3-clause-top
- debian trixie: opa-basic-tools 10.10.3.0.11-1+b2 ยท BSD-3-clause-top
- opensuse-leap 16.0: opa-basic-tools 10.14.4.0.20-160000.3.2 ยท BSD-3-Clause OR GPL-2.0-only
- ubuntu jammy: opa-basic-tools 10.10.3.0.11-1ubuntu1 ยท BSD-3-clause-top
- ubuntu noble: opa-basic-tools 10.10.3.0.11-1ubuntu3 ยท BSD-3-clause-top
- ubuntu questing: opa-basic-tools 10.10.3.0.11-1ubuntu3
- ubuntu resolute: opa-basic-tools 10.10.3.0.11-1ubuntu4 ยท BSD-3-clause-top
- ubuntu stonking: opa-basic-tools 10.10.3.0.11-1ubuntu5 ยท BSD-3-clause-top
- Copyright 2015-2019, Intel Corporation
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms