opaxlattopology(8)
π opaxlattopology β the whole page, bestie π
okay so this is opaxlattopology(8) from the IFSFFCLIRG man page set, and honestly? she's a baddie. she generates a topology XML file of a cluster using your customized <topologyfile>.csv, linksum_swd06.csv, and linksum_swd24.csv as input. and then that output topology XML file can be used to bring up and verify the cluster. main character behavior fr.
β οΈ NOTE, and I need you to hear me on this one: The<topologyfile>.csvinput file must be present in the same directory from which the script operates, but the linksum CSV files are read from the/usr/share/opa/samplesdirectory. no cap.
β¨ Syntax β¨
opaxlattopology [-d level] [-v level] [-i level] [-K] [-s hfi_suffix]
[source [dest]]
π Options π
--helpβ Produces full help text. the little "hey what does this do" button, we love her.-dlevel β Specifies the output detail level. Default is0. Levels are additive, bestie, so do the math.
By default, the top level is always produced. Switch, rack, and rack group topology files can be added to the output by choosing the appropriate level. If the output at the group or rack level is specified, then group or rack names must be provided in the spreadsheet. Detailed output can be specified in any combination. A directory for each topology XML file is created hierarchically, with group directories (if specified) at the highest level, followed by rack and switch directories (if specified).
1β Intel(R) Omni-Path Edge Switch 100 Series topology files.2β Rack topology files.4β Rack group topology files.
-vlevel β Specifies the verbose level. Range is0-8. Default is2. yes the numbers are weird, just go with it.0β No output.1β Progress output.2β Reserved.4β Time stamps.8β Reserved.
-ilevel β Specifies the output indent level. Default is4. aesthetics matter π-Kβ Specifies DO NOT clean temporary files.
Prevents temporary files in each topology directory from being removed. Temporary files contain CSV formatted lists of links, HFIs, and switches used to create a topology XML file. Temporary files are not typically needed after a topology file is created, however they are used for creating linksum_swd06.csv and linksum_swd24.csv files, or can be retained for subsequent inspection or processing. so like, hoarding, but make it intentional.
-shfi_suffix β Used on Multi-Rail or Multi-Plane fabrics. Can be used to override the defaulthfi1_0.
For Multi-Plane fabric, use the tool multiple times with a different hfi-suffix.
For Multi-Rail fabric, specify HostName as "HostName HfiName" in the spreadsheet.
-oreport β Specifies the report type for output. By default, all the sections are generated.
Report Types:
brnodesβ Creates the<Node>section xml for the csv input.linksβ Creates the<LinkSummary>section xml for the csv input.
- source β Specifies the source csv file. Default is
topology.csv. - dest β Specifies the output xml file. Default is
topology.0:0.xml.
The default output file name may vary if used with -s option. It can also be used to specify destination folder. versatile queen π«Ά
πΈ Description πΈ
The opaxlattopology script reads your customized <topologyfile>.csv file from the local directory, and reads the other files from /usr/share/opa/samples/linksum_swd06.csv and /usr/share/opa/samples/linksum_swd24.csv. Two sample topology XLSX files, detailed_topology.xlsx and minimal_topology.xlsx, are located in the /usr/share/opa/samples/ directory. You must create your <topologyfile>.csv file by editing one of the sample spreadsheets and saving the Fabric Links tab as a CSV file. Inspect your <topologyfile>.csv file to ensure that each row contains the correct and same number of comma separators. Any extraneous entries in the spreadsheet can cause the CSV output to have extra fields. π it's giving "one stray comma ruins everything."
The script outputs one or more topology files starting with topology.0:0.xml. Your <topologyfile>.csv input file must be present in the same directory from which the script operates, but the linksum CSV files are read from the /usr/share/opa/samples directory.
π Example π
opaxlattopology
# reads default input 'topology.csv' and creates default
# output 'topology.0:0.xml'
opaxlattopology fabric_2.csv
# reads input 'fabric_2.csv' and creates default output
Both sample files contain examples of links between HFI and Edge SW (rows 4-7), HFI and Core SW (rows 8-11), and Edge SW and Core SW (rows 12-15).
π¦ Environment Variables π¦
The following environment variables allow user-specified MTU.
MTU_SW_SWβ If set, it overrides default MTU on switch-to-switch links. Default is10240.MTU_SW_HFIβ If set, it overrides default MTU on switch-to-HFI links. Default is10240.
π§ Creating linksum Files π§
The linksum_swd06.csv and linksum_swd24.csv files are provided as stand-alone files in the /usr/share/opa/samples directory. However, they can be recreated (or modified) from the spreadsheet, if needed, by performing the following steps:
- Save each of the following from your custom
<topologyfile>.xlsxfile as individual.csvfiles:- Internal SWD06 Links tab as
linksum_swd06.csv - Internal SWD24 Links tab as
linksum_swd24.csv - Fabric Links tab as
<topologyfile>.csv
- Internal SWD06 Links tab as
- For each saved
<topologyfile>.csvfile, run the script with the-Koption. - Upon completion of the script, save the top level
linksum.csvfile aslinksum_swd06.csvorlinksum_swd24.csvas appropriate.
β Multi-Rail and Multi-Plane Fabrics β
By default, the opaxlattopology script considers all of the hosts to have a single HFI (hfi1_0).
For Multi-Rail/Multi-Plane fabrics, you have the following options:
- For Multi-Rail fabrics or for a Single Plane fabric with some multi-ported hosts, you can edit the Host Name in your customized
<topologyfile>.csvfile to include the HFI Name (for example:HostName HfiName) and then follow the standard procedure to generate<topologyfile>.xml. - For a Multi-Plane fabric with identical planes, the tool can be run multiple times on the same
<topologyfile>.csvwith different-s hfi_suffixoptions. For example, if there are two identical fabrics (fabric_1 and fabric_2) connected to a single host with two HFIs (hfi1_0andhfi1_1), the tool can be run twice like this: - For fabric_1:
opaxlattopology <topologyfile>.csv <topologyfile>.xml
- For fabric_2:
opaxlattopology -s hfi1_1 <topologyfile>.csv <topologyfile>.xml
- For a fabric with both Multi-Rail and Multi-Plane segments, you can use a combination of the above techniques to generate the desired
<topologyfile>.xmlfile.
okay that's the whole thing, you ate that π
quick sign-off tho: this page is Copyright(C) 2015-2019 Intel Corporation, she comes from the IFSFFCLIRG (Man Page) set, and her date stamp is that same 2015-2019 era. go build a fabric bestie, ily πβ¨π
π¦ where this page comes from
- centos-stream 9: opa-fastfabric 1:10.12.1.0.6-1.el9 Β· BSD or GPLv2
- debian bookworm: opa-fastfabric 10.10.3.0.11-1+b1 Β· BSD-3-clause-top
- debian trixie: opa-fastfabric 10.10.3.0.11-1+b2 Β· BSD-3-clause-top
- opensuse-leap 16.0: opa-fastfabric 10.14.4.0.20-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-only
- ubuntu jammy: opa-fastfabric 10.10.3.0.11-1ubuntu1 Β· BSD-3-clause-top
- ubuntu noble: opa-fastfabric 10.10.3.0.11-1ubuntu3 Β· BSD-3-clause-top
- ubuntu questing: opa-fastfabric 10.10.3.0.11-1ubuntu3
- ubuntu resolute: opa-fastfabric 10.10.3.0.11-1ubuntu4 Β· BSD-3-clause-top
- ubuntu stonking: opa-fastfabric 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