opagetvf_env(1)
π opagetvf_env β the manual page, bestie edition π
okay so real talk, this is opagetvf_env(1) from the IFSFFCLIRG manual set, and it's genuinely one of my faves because it's just vibes and shell functions. π«Ά
β¨ NAME β¨
opagetvf_env β it hands you two little shell besties, opagetvf_func and opagetvf2_func, that go ask a vFabric what its parameters are. π¦
It also exports values telling you the PKEY, SL, MTU, and RATE that belong to that vFabric. So iconic.
The typical usage is literally just sourcing it inside a shell script, like this:
. /usr/sbin/opagetvf_env
There's a whole usage example waiting for you at:
/usr/src/opa/mpi_apps/openmpi.params
NOTE:opagetvf_funcandopagetvf2_funcare used pretty much the same way. The one difference is whetherMTUandRATEcome back as absolute values or as enum values, respectively. that's the whole tea. π
πΈ Function Syntax πΈ
no cap, here's how you call them:
opagetvf_func "arguments to opagetvf" pkey_env_var_name sl_env_var_name [ mtu_env_var_name [ rate_env_var_name]]
or
opagetvf2_func "arguments to opagetvf" pkey_env_var_name sl_env_var_name [ mtu_env_var_name [ rate_env_var_name]]
π Function Options π
"arguments to opagetvf"β this is a whole little set of arguments you pass along toopagetvfso it knows which virtual fabric you're talking about. Peepopagetvffor the deets. πpkey_env_var_nameβ the name of the environment variable you want filled in with thepkeyfor the virtual fabric you picked. It gets exported with the hex numeric value for the pkey. And if you hand it a variable name of""? Then pkey justβ¦ isn't saved. bye. πsl_env_var_nameβ the environment variable to fill in with the service level (sl) for the selected virtual fabric. It'll be exported with the numeric value for thesl. Pass""as the variable name andsldoesn't get saved. periodt.mtu_env_var_nameβ the environment variable to fill in with the maximum MTU for the selected virtual fabric. It gets exported with the value for theMTU. If you give a variable name of"", then MTU is not saved. π- With
opagetvf_func, MTU comes back as an absolute value of2048,4096,8192, or10240. - With
opagetvf2_func, MTU comes back as an enumerated value</enumerated> of4,5,6, or7, which line up with those absolute values above, respectively. - And if the virtual fabric you selected doesn't have a limitation specified for MTU, the variable is left unaltered. it does not touch it, bestie.
- With
rate_env_var_nameβ the environment variable to fill in with the maximum static rate for the selected virtual fabric. It gets exported with the value for therate. Give it""and rate is not saved. π- With
opagetvf_func, rate comes back as an absolute value of25g,50g,75gor100g. - With
opagetvf2_func, rate comes back as an enumerated value</enumerated> of15,12,9, or16, matching those absolute values above, respectively. - And if the selected virtual fabric has no limitation specified for rate, the variable stays unaltered. same energy as above fr fr.
- With
π Function Example π
here's the moment, the main character example:
# ensure values are empty in case they are not specified for the virtual fabric
MTU=
RATE=
opagetvf_func "-d 'Compute'" PKEY SERVICE_LEVEL MTU RATE
echo "The Compute Virtual Fabric has pkey: $PKEY SL:$SERVICE_LEVEL MTU: $MTU rate:$RATE"
NOTE: there are more examples chilling in/usr/src/opa/mpi_apps/openmpi.paramsand/usr/src/opa/mpi_apps/mvapich2.params. Those scripts useopagetvf_funcandopagetvf2_functo grab virtual fabric parameters and then hand them off to openmpi and mvapich2, respectively. obsessed. π₯
and that's the whole page, bestie β copyright held by Copyright(C) 2015-2019 Intel Corporation, from the IFSFFCLIRG manual set, and this page answers to the name opagetvf_env(1). mwah, go source it. πβ¨
π¦ where this page comes from
- centos-stream 9: opa-basic-tools 1:10.12.1.0.6-1.el9 Β· BSD or GPLv2
- debian bookworm: opa-basic-tools 10.10.3.0.11-1+b1 Β· BSD-3-clause-top
- debian trixie: opa-basic-tools 10.10.3.0.11-1+b2 Β· BSD-3-clause-top
- opensuse-leap 16.0: opa-basic-tools 10.14.4.0.20-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-only
- ubuntu jammy: opa-basic-tools 10.10.3.0.11-1ubuntu1 Β· BSD-3-clause-top
- ubuntu noble: opa-basic-tools 10.10.3.0.11-1ubuntu3 Β· BSD-3-clause-top
- ubuntu questing: opa-basic-tools 10.10.3.0.11-1ubuntu3
- ubuntu resolute: opa-basic-tools 10.10.3.0.11-1ubuntu4 Β· BSD-3-clause-top
- ubuntu stonking: opa-basic-tools 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