opacmdall(8)
β¨ opacmdall(8) β¨
okay bestie, settle in, because this one is from the IFSFFCLIRG man page family and it is lowkey one of the most powerful little gremlins in your whole toolset π
π NAME π
opacmdall
(Linux and Switch) This one runs a command on all your hosts or on all your Intel(R) Omni-Path Chassis. It's giving main character energy, fr fr β you can use it to configure servers or chassis, verify that they're actually up and running, start and stop host processes, and honestly a whole pile of other tasks. It's the group-chat broadcast of Unix commands. π£
β οΈ NOT ME DROPPING A CAVEAT RIGHT AWAY: opacmdall depends on the Linux* convention that utilities return0for success and>0for failure. So if you use opacmdall to run a non-standard utility likediff, or literally any program that uses custom exit codes, then opacmdall may erroneously report"Command execution FAILED"when it hits a non-zero exit code. The tea β is: command output is still returned normally and the error may be safely ignored. So don't panic, it's fine, breathe. π«Ά
π Syntax π
opacmdall [-CpqPS] [-f hostfile] [-F chassisfile] [-h hosts]
[-H chassis] [-u user] [-m marker] [-T timelimit] cmd
β¨ Options β¨
--helpβ Produces full help text. Your bestie when you forget literally everything.-Cβ Performs command against chassis. Default is hosts.-pβ Runs command in parallel on all hosts/chassis. Go fast, bestie πββοΈπ¨-qβ Quiet mode, do not show command to execute. Shhh π€«-Pβ Outputs the hostname/chassis name as prefix to each output line. This can make script processing of output easier. Iconic for piping into stuff.-Sβ Securely prompts for password for user on chassis. π-f hostfileβ Specifies the file with hosts in cluster. Default is/etc/opa/hostsfile.-F chassisfileβ Specifies the file with chassis in cluster. Default is/etc/opa/chassisfile.-h hostβ Specifies the list of hosts to execute command on.-H chassisβ Specifies the list of chassis to execute command on.-u userβ Specifies the user to perform the command as:- For hosts, the default is current user code.
- For chassis, the default is
admin.
-m markerβ Specifies the marker for end of chassis command output. If omitted, defaults to chassis command prompt. This may be a regular expression.-T timelimitβ Specifies the time limit in seconds when running host commands. Default is-1(infinite). No cap, no timer, just vibes β³
πΈ Examples πΈ
Operations on Host
opacmdall date
opacmdall 'uname -a'
opacmdall -h 'elrond arwen' date
HOSTS='elrond arwen' opacmdall date
Operations on Chassis
opacmdall -C 'ismPortStats -noprompt'
opacmdall -C -H 'chassis1 chassis2' ismPortStats -noprompt'
CHASSIS='chassis1 chassis2' opacmdall -C ismPortStats -noprompt'
π¦ Environment Variables π¦
The following environment variables are also used by this command:
HOSTSβ List of hosts, used if-hoption not supplied.CHASSISβ List of chassis, used if-Cis used and-Hand-Foptions not supplied.HOSTS_FILEβ File containing list of hosts, used in absence of-fand-h.CHASSIS_FILEβ File containing list of chassis, used in absence of-Fand-H.FF_MAX_PARALLELβ When-poption is used, maximum concurrent operations are performed.FF_SERIALIZE_OUTPUTβ Serialize output of parallel operations (yesorno).FF_CHASSIS_LOGIN_METHODβ How to log into chassis. Can beTelnetorSSH.FF_CHASSIS_ADMIN_PASSWORDβ Password foradminon all chassis. Used in absence of-Soption.
π Notes π
π THE BIG ONE, PLS READ THIS ONE:
All commands performed with opacmdall must be non-interactive in nature. opacmdall waits for the command to complete before proceeding.
So like β when running host commands such as rm, the -i option (interactively prompt before removal) should not be used. (Note that this option is sometimes part of a standard bash alias list.) Yeah, the classic rm -i alias jumpscare. π
Similarly, when running chassis commands such as fwUpdateChassis, the -reboot option should not be used because this option causes an immediate reboot and therefore the command never returns. Like, it just ghosts you forever, bestie. π
Also, the chassis command reboot should not be executed using opacmdall. Instead, use the opachassisadmin reboot command to reboot one or more chassis. For further information about individual chassis CLI commands, consult the Intel(R) Omni-Path Fabric Switches Command Line Interface Reference Guide.
When performing opacmdall against hosts, internally SSH is used. The command opacmdall requires that password-less SSH be set up between the host running the Intel(R) Omni-Path Fabric Suite FastFabric Toolset and the hosts opacmdall is operating against. The opasetupssh FastFabric tool can aid in setting up password-less SSH. πβ¨
When performing opacmdall against a set of chassis, all chassis must be configured with the same admin password. Alternatively, the opasetupssh FastFabric tool can be used to set up password-less SSH to the chassis.
When performing operations against chassis, Intel recommends that you set up SSH keys using opasetupssh. If SSH keys are not set up, Intel recommends that you use the -S option to avoid keeping the password in configuration files. π«Ά
and that's the whole page, bestie β go forth and broadcast responsibly π
Copyright(C) 2015-2019 Intel Corporation β mwah, thanks Intel, this page is opacmdall(8) and it ate π β¨
π¦ 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