ethcmdall(8)
β¨ ethcmdall β¨ (the section 8 page, EFSFFCLIRG fam)
okay bestie, meet ethcmdall π
<span cyan>(Linux)</span> This one runs a command on all the hosts. Like, all of them. She's a powerful girlie and she can configure servers, verify that they're up and running, start and stop host processes, and do a whole bunch of other tasks. main character energy fr.
β οΈ heads up:ethcmdalldepends on the Linux convention that utilities return0for success and> 0for failure. So if you pointethcmdallat a non-standard utility likediff, or a program that uses custom exit codes, thenethcmdallmay erroneously report"Command execution FAILED"when it hits a non-zero exit code. The tea β is: the command output is still returned normally and the error may be safely ignored. no cap.
πΈ Syntax πΈ
ethcmdall [-pqP] [-f hostfile] [-h hosts] [-u user]
[-T timelimit] cmd
π Options π
--helpβ produces the full help text. slay, she tells you everything.-pβ runs the command in parallel on all hosts. go go go π₯-qβ quiet mode, meaning she does not show the command to execute. shhh π€«-Pβ outputs the hostname as a prefix to each output line. this one's lowkey iconic because it can make script processing of the output easier. π-fhostfile β specifies the file with hosts in cluster. the default is the/etc/eth-tools/hostsfile. π-hhost β specifies the list of hosts to execute the command on.-uuser β specifies the user to perform the command as:- For hosts, the default is the current user. π
-Ttimelimit β specifies the time limit in seconds when running host commands. default is-1(infinite). literally forever, bestie βΎοΈ
π¦ Examples π¦
Operations on Host
ethcmdall date
ethcmdall 'uname -a'
ethcmdall -h 'elrond arwen' date
HOSTS='elrond arwen' ethcmdall date
π Environment Variables π
The following environment variables are also used by this command, bestie:
HOSTSβ list of hosts, used if the-hoption is not supplied.HOSTS_FILEβ file containing the list of hosts, used in absence of-fand-h.FF_MAX_PARALLELβ when the-poption is used, maximum concurrent operations are performed. πββοΈπ¨FF_SERIALIZE_OUTPUTβ serialize output of parallel operations (yesorno).
π Notes π
All commands performed with ethcmdall must be non-interactive in nature. She waits for the command to complete before proceeding, so likeβ¦ don't ask her to hold a conversation mid-task. π
For example, when running host commands such as rm, the -i option (interactively prompt before removal) should not be used. And yes, note that this option is sometimes part of a standard bash alias list β so double check your aliases, girlie. For further information about Linux operating system commands, consult the man pages.
When performing ethcmdall against hosts, SSH is used internally. The command ethcmdall requires that password-less SSH be set up between the host running the Intel(R) Ethernet Fabric Suite FastFabric Toolset and the hosts ethcmdall is operating against. The ethsetupssh FastFabric tool can aid in setting up password-less SSH. π«Ά
and that's the whole vibe check β¨ this page is ethcmdall(8), straight out of the EFSFFCLIRG man page, brought to you by Intel Corporation, copyright Copyright(C) 2020-2024. ty for coming to my ted talk, go run some commands on every host, periodt π
ππ¦
π¦ where this page comes from
- centos-stream 9: eth-tools-fastfabric 1:12.1.0.0-4.el9 Β· BSD
- fedora 43: eth-tools-fastfabric 1:12.1.0.0-151.fc43 Β· BSD-3-Clause
- fedora 44: eth-tools-fastfabric 1:12.1.0.1-6.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: eth-fastfabric 11.7.0.0-160000.2.2 Β· BSD-3-Clause OR GPL-2.0-only
- Copyright 2020-2024, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms