Name
opaxlattopology — Generates a topology XML file of a cluster using your customized <topologyfile>.csv, linksum_swd06.csv, and linksum_swd24.csv as input. This command is one of the Verification, Analysis, and Control commands.
Syntax
opaxlattopology [-d level] [-v level] [-i level] [-K] [-s hfi_suffix] [-o report] [source] [dest]
Description
The output topology XML file can be used to bring up and verify the cluster.
Note
The <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.
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 the same number of comma separators. Any extraneous entries in the spreadsheet can cause the CSV output to have extra fields.
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.
Options
--helpProduces full help text.
-dlevelSpecifies the output detail level. Default is 0. Levels are additive.
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).
1CN5000 Omni-Path Switch topology files.
2Rack topology files.
4Rack group topology files.
-vlevelSpecifies the verbose level. Range is 0 – 8. Default is 2.
0No output.
1Progress output.
2Reserved.
4Time stamps.
8Reserved.
-ilevelSpecifies the output indent level. Default is 4.
-KSpecifies DO NOT clean temporary files.
Prevents temporary files in each topology directory from being removed. Temporary files contain CSV-formatted lists of links, SuperNICs, 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.csvandlinksum_swd24.csvfiles, or can be retained for subsequent inspection or processing.-shfi_suffixUsed on multi-rail or multi-plane fabrics. Can be used to override the default hfi1_0.
For multi-rail fabric, specify HostName as "HostName HfiName" in the spreadsheet.
For multi-plane fabric, use the tool multiple times with a different hfi-suffix.
-oreportSpecifies the report type for output. By default, all the sections are generated.
Report Types:
brnodesCreates the
<Node>section xml for the CSV input.linksCreates the
<LinkSummary>section XML for the CSVinput.
sourceSpecifies the source CSV file. Default is
topology.csv.destSpecifies the output XML file. Default is
topology.0:0.xml.The default output file name may vary if used with
-soption. It can also be used to specify a destination folder.
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 SuperNIC and Edge Switch (rows 4-7), SuperNIC and Core Switch (rows 8-11), and Edge Switch and Core Switch (rows 12-15).
Environment Variables
The following environment variables are also used by this command:
MTU_SW_SWIf set, it overrides default MTU on switch-to-switch links. Default is 10240.
MTU_SW_HFIIf set, it overrides default MTU on switch-to-SuperNIC links. Default is 10240.
Notes
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.csvInternal SWD24 Links tab as
linksum_swd24.csvFabric Links tab as
<topologyfile>.csv
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
Note
Planes can also be referred to as subnets or fabrics. Rails are also referred to as SuperNICs.
By default, the opaxlattopology script considers all of the hosts to have a single SuperNIC (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 Namein your customized<topologyfile>.csvfile to include the SuperNIC 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 SuperNICs (hfi1_0 and hfi1_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
Note
Default for
-s hfi_suffixishfi1_0.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.