opagetvf_env(1) | IFSFFCLIRG (Man Page) | opagetvf_env(1) |
opagetvf_env
Provides opagetvf_func and opagetvf2_func shell functions that query the parameters of a vFabric. Also exports values that indicate the PKEY, SL, MTU, and RATE associated with the vFabric. The typical usage of this tool is to include it in a shell script as:. /usr/sbin/opagetvf_env
A usage example is provided in:
/usr/src/opa/mpi_apps/openmpi.params
NOTE: opagetvf_func and opagetvf2_func have a similar usage. The difference is whether the MTU and RATE are returned as absolute values or enum values, respectively.
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]]
Specifies a set of arguments to pass to opagetvf to select a virtual fabric.See opagetvf for more information.
Specifies the environment variable to fill in with pkey for the selected virtual fabric. The variable given will be exported with the hex numeric value for the pkey.If a variable name of "" is provided, pkey is not saved.
Specifies the environment variable to fill in with service level (sl) for the selected virtual fabric. The variable given will be exported with the numeric value for the sl.If a variable name of "" is provided, sl is not saved.
Specifies the environment variable to fill in with maximum MTU for the selected virtual fabric. The variable given will be exported with the value for the MTU.If a variable name of "" is provided, MTU is not saved.
Specifies the environment variable to fill in with maximum static rate for the selected virtual fabric. The variable given will be exported with the value for the rate.If a variable name of "" is provided, rate is not saved.
# 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: Additional examples may be found in /usr/src/opa/mpi_apps/openmpi.params and /usr/src/opa/mpi_apps/mvapich2.params. Those scripts use opagetvf_func and opagetvf2_func to get virtual fabric parameters and then pass them into openmpi and mvapich2, respectively.
Intel Corporation | Copyright(C) 2015-2019 |