User Manual

Rev 2.1-1.0.6
Mellanox Technologies
213
Examples
1. Read local port's performance counters.
> perfquery
# Port counters: Lid 6 port 1
PortSelect:......................1
CounterSelect:...................0x1000
SymbolErrors:....................0
LinkRecovers:....................0
LinkDowned:......................0
RcvErrors:.......................0
RcvRemotePhysErrors:.............0
-G(uid) Optional Use GUID address argument. In most cases, it
is the Port GUID. Example:
‘0x08f1040023’
-a Optional Apply query to all ports
-l Optional Loop ports
-r Optional Reset the counters after reading them
-C
<ca_name>
Optional Use the specified channel adapter or router
-P <ca_port> Optional Use the specified port
-R Optional Reset the counters
-t
<timeout_ms
>
Optional Override the default timeout for the solicited
MADs [msec]
-V(ersion) Optional Show version info
<lid | guid>
[[port][reset_
mask]]
Optional LID or GUID
perfquery -r 32 1 # read performance counters and reset
perfquery -e -r 32 1 # read extended performance counters and reset
perfquery -R 0x20 1 # reset performance counters of port 1 only
perfquery -e -R 0x20 1 # reset extended performance counters of port 1 only
perfquery -R -a 32 # reset performance counters of all ports
perfquery -R 32 2 0x0fff # reset only error counters of port 2
perfquery -R 32 2 0xf000 # reset only non-error counters of port 2
Table 34 - perfquery Flags and Options
Flag
Optional /
Mandatory
Default
(If Not
Specified)
Description