opagenswitches(8)
π opagenswitches β okay bestie, let's talk switches
So this is opagenswitches, a section 8 (admin-y, system-level, main character) command from the IFSFFCLIRG man page crew. And what does it do? It looks at the fabric that's live right now and spits out a list of Externally Managed switches β formatted exactly how the /etc/opa/switches file wants it. Like, it's literally doing your homework for you. π
β¨ NAME β¨
opagenswitches β analyzes the present fabric and produces a list of Externally Managed switches in the required format for the /etc/opa/switches file.
πΈ SYNTAX πΈ
opagenswitches [-t portsfile] [-p ports] [-R] [-L switches_file]
[-o output_file] [-T topology_file] [-X snapshot_file] [-s] [-v level]
[-K]
π¦ OPTIONS π¦
--helpβ gives you the full help text, the whole thing, no skimping. π-tportsfile β tells it which file holds the list of local HFI ports it should use to reach the fabric(s) for analysis. Default is the/etc/opa/portsfile.-pports β the list of local HFI ports used to access the fabrics for counter clear. Default is the first active port. Heads up: the first HFI in the system is1, and the first port on an HFI is1. It uses the formathfi:port, like so:0:0β First active port in system.0:yβ Port y within system.x:0β First active port on HFI x.x:yβ HFI x, port y.
-Rβ does not attempt to get routes for computation of distance. Skipping that step, periodt.-sβ updates/resolves switch names using topology XML data. β¨-Lswitches_file β names a pre-existingswitches_fileto use as input alongside a topology file. When you pass it, that file gets used instead of switches data grabbed from the actual fabric. The updated switches data goes out tostdout(which, fyi, is common to allopagenswitchesoperations). Note: this does not generate switches data. And you must also use the-soption with it.-ooutput_file β writes switches data tooutput_file. Default isstdout.-Ttopology_file β specifies thetopology_fileto use. It may contain'%P'. You must also use-s.
Link data in the topology file gets compared to actual fabric link data (which comes from opareport -o links or opareport -X snapshot -o links). That data also gets matched to a list of switch node GUIDs, and from that the switch NodeDesc values are generated. Then the list is applied to the switches data to update the NodeDesc values. The comparison of topology link data against actual fabric link data starts with the host names. The host names in the actual fabric have to match the ones in the topology file or the comparison won't succeed. That said, the comparison logic does allow for some mismatches β which could be from swapped or missing cables, no cap. Switch NodeDesc values get matched to GUIDs based on which switch has the greater number of matching links. π§
-Xsnapshot_file β usessnapshot_fileXML for fabric link information. May contain'%P'. You must also use-s.-vlevel β sets the verbose level. Default is0. The values are:0β No output.1β Progress output.2β Reserved.4β Time stamps.8β Reserved.
-Kβ does not clean temporary files. Those temp files are CSV format and hold lists of links used while the script was running. Normally you don't need them after execution, but keeping them means you can inspect or process them later. π
π ENVIRONMENT VARIABLES π
These environment variables are also used by this command:
PORTSβ list of ports, used when-tand-paren't given.PORTS_FILEβ file containing the list of ports, used when-tand-paren't given.FF_TOPOLOGY_FILEβ file containing topology XML data, used when-Tisn't given.
π EXAMPLES π
opagenswitches
opagenswitches -p '1:1 2:1'
opagenswitches -o switches
opagenswitches -s -o switches
opagenswitches -L switches -s -o switches
opagenswitches -s -T topology.%P.xml
opagenswitches -L switches -s -T topology.%P.xml -X snapshot.%P.xml
And that's the whole vibe check, bestie π«Ά This little legend lives in the IFSFFCLIRG (Man Page) collection, and the copyright belongs to Copyright(C) 2015-2019 Intel Corporation. Slay, go generate those switches. πβ¨
π¦ 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