.\" .\" ********************************************************************* .\" .\" * * .\" .\" * Copyright 2015-2019, Intel Corporation * .\" .\" * * .\" .\" * All Rights Reserved. * .\" .\" * * .\" .\" ********************************************************************* .TH opareports 8 "Intel Corporation" "Copyright(C) 2015\-2019" "IFSFFCLIRG (Man Page)" .SH NAME opareports .PP \fB(All)\fR opareports is a front end to opareport that provides many of the same options and capabilities. It can also run a report against multiple fabrics or subnets (for example, local host HFI ports). opareports can use an input file to augment the reports using additional details from the topology\(ulinput file. .SH Syntax opareports [-t \fIportsfile\fR] [-p \fIports\fR] [-T \fItopology\(ulinput\fR] [opareport \fIarguments\fR] .SH Options .TP 10 --help Produces full help text. .TP 10 -t \fIportsfile\fR Specifies the file with list of local HFI ports used to access fabric for analysis. Default is /etc/opa/ports file. .TP 10 -p \fIports\fR Specifies the list of local HFI ports used to access fabric for counter clear. .IP Default is first active port. The first HFI in the system is 1. The first port on an HFI is 1. Uses the format hfi:port, .br for example: .RS .TP 10 .sp 0:0 First active port in system. .RE .RS .TP 10 .sp 0:y Port \fIy\fR within system. .RE .RS .TP 10 .sp x:0 First active port on HFI \fIx\fR. .RE .RS .TP 10 .sp x:y HFI \fIx\fR, port \fIy\fR. .RE .TP 10 -T \fItopology\(ulinput\fR Specifies the name of a topology input file to use. The filename may have %P as a marker which is replaced with the hfi:port being operated on, such as 0:0 or 1:2. The default filename is specified by \fBFF\(ulTOPOLOGY\(ulFILE\fR as /etc/opa/topology.%P.xml. If -T NONE is specified, no topology input file is used. .TP 10 opareport \fIarguments\fR Options are passed to opareport. .IP Specifies any of the other opareport arguments listed below (see \fIopareport Options\fR ):opareport [-v][-q] [-h \fIhfi\fR] [-p \fIport\fR] [--timeout] .br [-o \fIreport\fR][-d \fIdetail\fR] [-P|-H] [-N] [-x] .br [-X \fIsnapshot\(ulinput\fR][-T \fItopology\(ulinput\fR] [-s] [-r] [-V] .br [-i \fIseconds\fR][-b \fIdate\(ultime\fR] [-e \fIdate\(ultime\fR] [-C] [-a] .br [-m] [-M] [-A][-c \fIfile\fR] [-L] [-F \fIpoint\fR] [-S \fIpoint\fR] .br [-D \fIpoint\fR] [-Q] .TP 10 .BR .PP .B NOTE: When using opareport arguments, regard the following: .RS .IP \(bu The -h and -X options are not available. .IP \(bu The meaning of -p is different for opareports than opareport. .IP \(bu When run against multiple fabrics, the -x and -o snapshot options are not available. .IP \(bu When run against multiple fabrics, the -F option is applied to all fabrics. .RE .SH Examples opareports .br opareports -p \[aq]1:1 2:1\[aq] .SH Environment Variables .PP The following environment variables are also used by this command: .TP 10 \fBPORTS\fR List of ports, used in absence of -t and -p. .TP 10 \fBPORTS\(ulFILE\fR File containing list of ports, used in absence of -t and -p. .TP 10 \fBFF\(ulTOPOLOGY\(ulFILE\fR File containing topology\(ulinput (may have %P marker in filename), used in absence of -T. .SH opareport Options .PP For reference: .TP 10 --help Produces full help text. .TP 10 -v/--verbose Returns verbose output. .TP 10 -q/--quiet Disables progress reports. .TP 10 -h/--hfi \fIhfi\fR Specifies the HFI, numbered 1..n. Using 0 specifies that the -p \fIport\fR port is a system-wide port number. Default is 0. .TP 10 -p/--port \fIport\fR Specifies the port, numbered 1..n. Using 0 specifies the first active port. Default is 0. .TP 10 --timeout Specifies the timeout (wait time for response) in ms. Default is 1000 ms. .TP 10 -o/--output \fIreport\fR Specifies the report type for output. Refer to \fIopareport Report Types\fR for details. .TP 10 -d/--detail \fIlevel\fR Specifies the level of detail 0-n for output. Default is 2. .TP 10 -P/--persist Only includes data persistent across reboots. .TP 10 -H/--hard Only includes permanent hardware data. .TP 10 -N/--noname Omits node and IOC names. .TP 10 -x/--xml Produces output in XML. .TP 10 -X/--infile \fIsnapshot\(ulinput\fR Generates a report using the data in the snapshot\(ulinput file. snapshot\(ulinput must have been generated during a previous -o \fIsnapshot\fR run. When used, the -s, -i, -C, and -a options are ignored. \[aq]-\[aq] may be used as the snapshot\(ulinput to specify stdin. .TP 10 -T/--topology \fItopology\(ulinput\fR Uses topology\(ulinput file to augment and verify fabric information. When used, various reports can be augmented with information not available electronically (such as cable labels). \[aq]-\[aq] may be used to specify stdin. .TP 10 -s/--stats Gets performance statistics for all ports. .TP 10 -i/--interval \fIseconds\fR Obtains performance statistics over interval \fIseconds\fR. Clears all statistics, waits interval \fIseconds\fR, then generates report. Implies -s option. .TP 10 -b/--begin \fIdate\(ultime\fR Obtains performance stats beginning at \fIdate\(ultime\fR. Implies -s option. .RS .IP \(bu If -b/--begin and -e/--end are specified, the performance stats are provided over the specified interval. .IP \(bu If only -b/--begin is specified, the absolute value of the performance stats at the specified time is provided. .RE \fIdate\(ultime\fR may be a time entered as HH:MM[:SS] or date as mm/dd/YYYY, dd.mm.YYYY, YYYY-mm-dd or date followed by time; for example, "2016-07-04 14:40". Relative times are taken as "x [second|minute|hour|day](s) ago. .TP 10 -e/--end \fIdate\(ultime\fR Obtains performance stats ending at \fIdate\(ultime\fR. Implies -s option. .RS .IP \(bu If -b/--begin and -e/--end are specified, the performance stats are provided over the specified interval. .IP \(bu If only -e/--end is specified, the absolute value of the performance stats at the specified time is provided. .RE .IP \fIdate\(ultime\fR may be a time entered as HH:MM[:SS] or date as mm/dd/YYYY, dd.mm.YYYY, YYYY-mm-dd or date followed by time; for example, "2016-07-04 14:40". Relative times are taken as "x [second|minute|hour|day](s) ago. .TP 10 -C/--clear Clears performance statistics for all ports. Only statistics with error thresholds are cleared. A clear occurs after generating the report. .TP 10 -a/--clearall Clears all performance statistics for all ports. .TP 10 -m/--smadirect Accesses fabric information directly from SMA. .TP 10 -M/--pmadirect Accesses performance statistics using direct PMA. .TP 10 -A/--allports Gets PortInfo for down switch ports. Uses direct SMA to get this data. If used with -M, also gets PMA stats for down switch ports. .TP 10 -c/--config \fIfile\fR Specifies the error thresholds configuration file. Default is /etc/opa/opamon.conf file. .TP 10 -L/--limit Limits operation to exact specified focus with -F for port error counters check (-o \fIerrors\fR) and port counters clear (-C or -i). Normally, the neighbor of each selected port is also checked/cleared. Does not affect other reports. .TP 10 -F/--focus \fIpoint\fR Specifies the focus area for report. .IP Limits output to reflect a subsection of the fabric. May not work with all reports. (For example, route, mcgroups, and the verify* reports may ignore the option or not generate useful results.) .TP 10 -S/--src \fIpoint\fR Specifies the source for trace route. Default is local port. .TP 10 -D/--dest \fIpoint\fR Specifies the destination for trace route. .TP 10 -Q/--quietfocus Excludes focus description from report. .SH opareport Snapshot-Specific Options .PP For reference: .TP 10 -r/--routes Gets routing tables for all switches. .TP 10 -V/--vltables Gets the P-Key tables for all nodes and the QoS VL-related tables for all ports. .SH opareport Report Types .PP For reference: .TP 10 comps Summary of all systems and SMs in fabric. .TP 10 brcomps Brief summary of all systems and SMs in fabric. .TP 10 nodes Summary of all node types and SMs in fabric. .TP 10 brnodes Brief summary of all node types and SMs in fabric. .TP 10 ious Summary of all IO units in the fabric. .TP 10 lids Summary of all LIDs in the fabric. .TP 10 linkinfo Summary of all links with LIDs in the fabric. .TP 10 links Summary of all links. .TP 10 extlinks Summary of links external to systems. .TP 10 filinks Summary of links to FIs. .TP 10 islinks Summary of inter-switch links. .TP 10 extislinks Summary of inter-switch links external to systems. .TP 10 slowlinks Summary of links running slower than expected. .TP 10 slowconfiglinks Summary of links configured to run slower than supported, includes slowlinks. .TP 10 slowconnlinks Summary of links connected with mismatched speed potential, includes slowconfiglinks. .TP 10 misconfiglinks Summary of links configured to run slower than supported. .TP 10 misconnlinks Summary of links connected with mismatched speed potential. .TP 10 errors Summary of links whose errors exceed counts in the configuration file. .TP 10 otherports Summary of ports not connected to the fabric. .TP 10 linear Summary of linear forwarding data base (FDB) for each switch. .TP 10 mcast Summary of multicast FDB for each switch in the fabric. .TP 10 mcgroups Summary of multicast groups. .IP When used in conjunction with -d, the following report details are possible: .RS .IP \(bu -d0 : Shows the number of multicast groups .IP \(bu -d1 : Shows a list of multicast groups .IP \(bu -d2 : Shows a list of members per multicast group .RE .IP This report can be used with option -X. .TP 10 portusage Summary of ports referenced in linear FDB for each switch, broken down by NodeType of DLID. .TP 10 pathusage Summary of number of FI to FI paths routed through each switch port. .TP 10 treepathusage Analysis of number of FI to FI paths routed through each switch port for a FAT tree. .TP 10 portgroups Summary of adaptive routing port groups for each switch. .TP 10 quarantinednodes Summary of quarantined nodes. .TP 10 validateroutes Validates all routes in the fabric. .TP 10 validatevlroutes Validates all routes in the fabric using SLSC, SCSC, and SCVL tables. .TP 10 validatepgs Validates all port groups in the fabric. .TP 10 validatecreditloops Validates topology configuration of the fabric to identify any existing credit loops. .TP 10 validatevlcreditloops Validates topology configuration of the fabric including SLSC, SCSC, and SCVL tables to identify any existing credit loops. .TP 10 validatemcroutes Validates multicast routes of the fabric to identify loops in multicast forwarding tables and detect MFT-multicast membership inconsistencies. .TP 10 vfinfo Summary of virtual fabric (vFabric) information. .TP 10 vfmember Summary of vFabric membership information. .TP 10 dgmember Summary of DeviceGroup membership information. .TP 10 verifyfis Compares fabric (or snapshot) FIs to supplied topology and identifies differences and omissions. .TP 10 verifysws Compares fabric (or snapshot) switches to supplied topology and identifies differences and omissions. .TP 10 verifynodes Returns verifyfis and verifysws reports. .TP 10 verifysms Compares fabric (or snapshot) SMs to supplied topology and identifies differences and omissions. .TP 10 verifylinks Compares fabric (or snapshot) links to supplied topology and identifies differences and omissions. .TP 10 verifyextlinks Compares fabric (or snapshot) links to supplied topology and identifies differences and omissions. Limits analysis to links external to systems. .TP 10 verifyfilinks Compares fabric (or snapshot) links to supplied topology and identify differences and omissions. Limits analysis to links to FIs. .TP 10 verifyislinks Compares fabric (or snapshot) links to supplied topology and identify differences and omissions. Limits analysis to inter-switch links. .TP 10 verifyextislinks Compares fabric (or snapshot) links to supplied topology and identify differences and omissions. Limits analysis to inter-switch links external to systems. .TP 10 verifyall Returns verifyfis, verifysws, verifysms, and verifylinks reports. .TP 10 all Returns comps, nodes, ious, links, extlinks, slowconnlinks, and errors reports. .TP 10 route Traces route between -S and -D points. .TP 10 bfrctrl Reports Buffer Control Tables for all ports. .TP 10 snapshot Outputs snapshot of the fabric state for later use as \fIsnapshot\(ulinput\fR. This implies -x. May not be combined with other reports. When selected, -F, -P, -H, and -N options are ignored. .TP 10 topology Outputs the topology of the fabric for later use as \fItopology\(ulinput\fR. This implies -x. May not be combined with other reports. Use with detail level 3 or more to get Port element under Node in output xml. .TP 10 none No report, useful to clear statistics. .SH opareport Point Syntax .PP For reference: .TP 10 gid:value \fIvalue\fR is numeric port GID of form: subnet:guid. .TP 10 lid:value \fIvalue\fR is numeric LID. .TP 10 lid:value:node \fIvalue\fR is numeric LID, selects entire node with given LID. .TP 10 lid:value:port:value2 \fIvalue\fR is numeric LID of node, \fIvalue2\fR is port number. .TP 10 portguid:value \fIvalue\fR is numeric port GUID. .TP 10 nodeguid:value \fIvalue\fR is numeric node GUID. .TP 10 nodeguid:value1:port:value2 \fIvalue1\fR is numeric node GUID, \fIvalue2\fR is port number. .TP 10 iocguid:value \fIvalue\fR is numeric IOC GUID. .TP 10 iocguid:value1:port:value2 \fIvalue1\fR is numeric IOC GUID, \fIvalue2\fR is port number. .TP 10 systemguid:value \fIvalue\fR is numeric system image GUID. .TP 10 systemguid:value1:port:value2 \fIvalue1\fR is the numeric system image GUID, \fIvalue2\fR is port number. .TP 10 ioc:value \fIvalue\fR is IOC Profile ID String (IOC Name). .TP 10 ioc:value1:port:value2 \fIvalue1\fR is IOC Profile ID String (IOC Name), \fIvalue2\fR is port number. .TP 10 iocpat:value \fIvalue\fR is glob pattern for IOC Profile ID String (IOC Name). .TP 10 iocpat:value1:port:value2 \fIvalue1\fR is glob pattern for IOC Profile ID String (IOC Name), \fIvalue2\fR is port number. .TP 10 ioctype:value \fIvalue\fR is IOC type (SRP or OTHER). .TP 10 ioctype:value1:port:value2 \fIvalue1\fR is IOC type (SRP or OTHER); \fIvalue2\fR is port number. .TP 10 node:value \fIvalue\fR is node description (node name). .TP 10 node:value1:port:value2 \fIvalue1\fR is node description (node name), \fIvalue2\fR is port number. .TP 10 nodepat:value \fIvalue\fR is glob pattern for node description (node name). .TP 10 nodepat:value1:port:value2 \fIvalue1\fR is the glob pattern for the node description (node name), \fIvalue2\fR is port number. .TP 10 nodedetpat:value \fIvalue\fR is glob pattern for node details. .TP 10 nodedetpat:value1:port:value2 \fIvalue1\fR is the glob pattern for the node details, \fIvalue2\fR is port number. .TP 10 nodetype:value \fIvalue\fR is node type (SW or FI). .TP 10 nodetype:value1:port:value2 \fIvalue1\fR is node type (SW or FI), \fIvalue2\fR is port number. .TP 10 rate:value \fIvalue\fR is string for rate (25g, 50g, 75g, 100g), omits switch mgmt port 0. .TP 10 portstate:value \fIvalue\fR is a string for state (down, init, armed, active, notactive, initarmed). .TP 10 portphysstate:value \fIvalue\fR is a string for PHYs state (polling, disabled, training, linkup, recovery, offline, test) .TP 10 mtucap:value \fIvalue\fR is MTU size (2048, 4096, 8192, 10240), omits switch mgmt port 0. .TP 10 labelpat:value \fIvalue\fR is glob pattern for cable label. .TP 10 lengthpat:value \fIvalue\fR is glob pattern for cable length. .TP 10 cabledetpat:value \fIvalue\fR is glob pattern for cable details. .TP 10 cabinflenpat:value \fIvalue\fR is glob pattern for cable info length. .TP 10 cabinfvendnamepat:value \fIvalue\fR is glob pattern for cable info vendor name. .TP 10 cabinfvendpnpat:value \fIvalue\fR is glob pattern for cable info vendor part number. .TP 10 cabinfvendrevpat:value \fIvalue\fR is glob pattern for cable info vendor revision. .TP 10 cabinfvendsnpat:value \fIvalue\fR is glob pattern for cable info vendor serial number. .TP 10 cabinftype:value \fIvalue\fR is either optical, passive\(ulcopper, active\(ulcopper, or unknown. .TP 10 linkdetpat:value \fIvalue\fR is glob pattern for link details. .TP 10 portdetpat:value \fIvalue\fR is glob pattern for port details. .TP 10 sm Specifies the master subnet manager (SM). .TP 10 smdetpat:value \fIvalue\fR is glob pattern for SM details. .TP 10 route:point1:point2 Specifies all ports along the routes between the two given points. .TP 10 led:value \fIvalue\fR is either on or off for LED port beacon. .TP 10 linkqual:value Specifies the ports with a link quality equal to \fIvalue\fR. .TP 10 linkqualLE:value Specifies the ports with a link quality less than or equal to \fIvalue\fR. .TP 10 linkqualGE:value Specifies the ports with a link quality greater than or equal to \fIvalue\fR. .TP 10 nodepatfile:\fIFILENAME\fR Specifies the name of file with the list of nodepats or node descriptions. .TP 10 nodepairpatfile:\fIFILENAME\fR Specifies the name of file with the list of node pairs, separated by a colon. .TP 10 ldr Specifies the ports with a non-zero link down reason or neighbor link down reason. .TP 10 ldr:\fIvalue\fR Specifies the ports with a link down reason or neighbor link down reason equal to \fIvalue\fR. .SH opareport Examples .PP For reference: .PP opareport can generate hundreds of different reports. Commonly generated reports include the following: opareport -o comps -d 3 .br opareport -o errors -o slowlinks .br opareport -o nodes -F portguid:0x00117500a000447b .br opareport -o nodes -F nodeguid:0x001175009800447b:port:1 .br opareport -o nodes -F nodeguid:0x001175009800447b .br opareport -o nodes -F \[aq]node:duster hfi1\(ul0\[aq] .br opareport -o nodes -F \[aq]node:duster hfi1\(ul0:port:1\[aq] .br opareport -o nodes -F \[aq]nodepat:d*\[aq] .br opareport -o nodes -F \[aq]nodepat:d*:port:1\[aq] .br opareport -o nodes -F \[aq]nodedetpat:compute*\[aq] .br opareport -o nodes -F \[aq]nodedetpat:compute*:port:1\[aq] .br opareport -o nodes -F nodetype:FI .br opareport -o nodes -F nodetype:FI:port:1 .br opareport -o nodes -F lid:1 .br opareport -o nodes -F led:on opareport -o nodes -F led:off opareport -o nodes -F lid:1:node .br opareport -o nodes -F lid:1:port:2 .br opareport -o nodes -F gid:0xfe80000000000000:0x00117500a000447b .br opareport -o nodes -F systemguid:0x001175009800447b .br opareport -o nodes -F systemguid:0x001175009800447b:port:1 .br opareport -o nodes -F iocguid:0x00117501300001e0 .br opareport -o nodes -F iocguid:0x00117501300001e0:port:2 .br opareport -o nodes -F \[aq]ioc:Chassis 0x001175005000010C, Slot 2, IOC 1\[aq] .br opareport -o nodes -F \[aq]ioc:Chassis 0x001175005000010C, Slot 2, IOC 1:port:2\[aq] .br opareport -o nodes -F \[aq]iocpat:*Slot 2*\[aq] .br opareport -o nodes -F \[aq]iocpat:*Slot 2*:port:2\[aq] .br opareport -o nodes -F ioctype:SRP opareport -o nodes -F ioctype:SRP:port:2 .br opareport -o extlinks -F rate:100g .br opareport -o extlinks -F portstate:armed .br opareport -o extlinks -F portphysstate:linkup .br opareport -o extlinks -F \[aq]labelpat:S1345*\[aq] .br opareport -o extlinks -F \[aq]lengthpat:11m\[aq] .br opareport -o extlinks -F \[aq]cabledetpat:*hitachi*\[aq] .br opareport -o extlinks -F \[aq]linkdetpat:*core ISL*\[aq] .br opareport -o extlinks -F \[aq]portdetpat:*mgmt*\[aq] .br opareport -o links -F mtucap:2048 .br opareport -o nodes -F sm .br opareport -o nodes -F \[aq]smdetpat:primary*\[aq] .br opareport -o nodes -F \[aq]route:node:duster hfi1\(ul0:node:cuda hfi1\(ul0\[aq] .br opareport -o nodes -F \[aq]route:node:duster hfi1\(ul0:port:1:node:cuda hfi1\(ul0:port:2\[aq] .br opareport -o treepathusage -F nodepairpatfile:FILENAME .br opareport -o pathusage -F nodepatfile:FILENAME .br opareport -s -o snapshot > file .br opareport -o topology > topology.xml .br opareport -o errors -X file .br opareport -s --begin "2 days ago" .br opareport -s --begin "12:30" --end "14:00" .br opareport -o linkinfo -x > file .SH Details .PP For simple fabrics, the Intel(R) Omni-Path Fabric Suite FastFabric Toolset host is connected to a single fabric. By default, the first active port on the FastFabric Toolset host is used to analyze the fabric. .PP However, in more complex fabrics, the FastFabric Toolset host may be connected to more than one fabric or subnet. In this case, you can specify the ports or HFIs to use with one of the following methods: .IP \(bu On the command line using the -p option. .IP \(bu In a file specified using the -t option. .IP \(bu Through the environment variables \fBPORTS\fR or \fBPORTS\(ulFILE\fR. .IP \(bu Using the ports\(ulfile configuration option in /etc/opa/opafastfabric.conf. .PP If the specified port does not exist or is empty, the first active port on the local system is used. In more complex configurations, you must specify the exact ports to use for all fabrics to be analyzed. .PP You can specify the topology\(ulinput file to be used with one of the following methods: .IP \(bu On the command line using the -T option. .IP \(bu In a file specified through the environment variable \fBFF\(ulTOPOLOGY\(ulFILE\fR. .IP \(bu Using the ff\(ultopology\(ulfile configuration option in opafastfabric.conf. .PP If the specified file does not exist, no topology\(ulinput file is used. Alternately the filename can be specified as NONE to prevent use of an input file.