Name
opafmcmd — Executes a command to a specific instance of the Fabric Manager (FM).
Syntax
opafmcmd [-i fm_instance] cmd [args]
Description
This command can be used to query the configuration attributes of a particular instance of an FM as well as issue subnet management commands.
Options
--helpProduces full help text.
-ifm_instanceSpecifies the number of the FM instance to act on.
Range is 0 to 7. Default is 0.
cmd [args]Specifies the commands and arguments (if applicable) to be run. Values include:
smForceSweepMakes the Subnet Manager (SM) sweep now.
smRestorePriorityRestores the normal priority of the SM if it is currently elevated.
smShowCountersGets statistics and performance counters from the SM.
smResetCountersResets SM statistics and performance counters.
smStateDumpDumps internal SM state into specified directory.
smLogLevelSets the SM logging level. Values include:
0=NONE+
1=WARN+
2=NOTICE+
3=INFO+
4=VERBOSE+
5=DEBUG2+
6=DEBUG4+
7=TRACE+
smLogModeSets the SM log mode flags. Values include:
0/1 1=downgrade non-actionable
0/2 2=logfile only
smLogMaskSets the SM log mask for a specific subsystem to the value given. For a list of subsystems and mask bit meanings, see the files
/etc/opa-fm/opafm.xmlor/usr/share/opa-fm/opafm.xml.smPerfDebugToggles performance debug output for SM.
saPerfDebugToggles performance debug output for Subnet Administration (SA).
saRmppDebugToggles Reliable Message Passing Protocol (RMPP) debug output for SA.
pmShowCountersGets statistics and performance counters for the Performance Manager (PM).
pmResetCountersResets statistics and performance counters for the PM.
pmDebugToggles debug output for PM.
pmRmppDebugToggles RMPP debug output for PM.
feLogLevelSets the Fabric Executive (FE) logging level. Values include:
0=NONE+
1=WARN+
2=NOTICE+
3=INFO+
4=VERBOSE+
5=DEBUG2+
6=DEBUG4+
7=TRACE+
feLogModeSets the FE log mode flags.
0/1 1=downgrade non-actionable
0/2 2=logfile only
feLogMaskSets the FE log mask for a specific subsystem to the value given. For a list of subsystems and mask bit meanings, see the files
/etc/opa-fm/opafm.xmlor/usr/share/opa-fm/opafm.xml.feDebugToggles debug output for FE.
feRmppDebugToggles RMPP debug output for FE.
smLooptestStartStarts loop test in normal mode. Specify the number of 256 byte packets. Default is 0.
smLooptestFastModeStartStarts loop test in fast mode. Specify the number of 256 byte packets. Default is 5.
smLooptestStopStops loop test. Returns switch LFTs back to normal.
smLooptestInjectPacketsEnter
to send to all switch loops. Default is 1.numPktssmLooptestInjectAtNodeEnter the switch node index to inject loop packets. Default is 0.
smLooptestInjectEachSweepSets whether to inject or stop injecting packets each sweep.
Enter
1to inject packets each sweep.Enter
0to stop injecting each sweep.
smLooptestPathLengthSets the loop path length. Range is 2 - 4. Default is 3.
smLooptestMinISLRedundancySets the minimum number of loops in which to include each ISL. Default is 4.
smLooptestShowLoopPathsDisplays the loop paths given node index or all loop paths. Default is all.
smLooptestShowSwitchLftDisplays a switch LFT given node index or all switches LFTs. Default is all.
smLooptestShowTopologyDisplays the topology for the SM Loop Test.
smLooptestShowConfigDisplays the current active loop configuration.
smForceRebalanceToggles Force Rebalance setting for SM.
smAdaptiveRoutingDisplays or modifies Adaptive Routing setting for SM.
If no arguments are entered, displays current setting.
Enter
0to Disable.Enter
1to Enable.Additional arguments after the first argument can be used to update frequency and threshold while enabling Adaptive Routing:
Enter
-fto update frequency. Valid values are 0 - 7.valueEnter
-tto update threshold. Valid values are 0 - 7.valueIf frequency or threshold are not provided, they will be reset to default.
smForceAttributeRewriteSets rewriting of all attributes upon resweeping.
Enter
0to Disable.Enter
1to Enable.
smSkipAttrWriteSpecifies the bitmask of attributes to be skipped (not written) during sweeps. Enter
-helpfor list of options.smPauseSweepsPauses SM sweeps.
smResumeSweepsResumes SM sweeps.
Examples
opafmcmd smForceSweep opafmcmd –i 2 smLogLevel 3