FENCE_AGENT(8)
π FENCE_AGENT(8) β the fence_amt page, bestie edition π
okay so. welcome to the fence_amt manual page, straight out of the System Manager's Manual. pull up a chair, grab a strawberry π, and let's get into it.
β¨ NAME β¨
fence_amt β Fence agent for AMT. that's it, that's the name, short and iconic π
πΈ DESCRIPTION πΈ
so fence_amt is a Power Fencing agent, and it's the one you want when you're dealing with Intel AMT. it calls on its support-software bestie amttool to do the actual work β here's where that lives: http://www.kraxel.org/cgit/amtterm/. π
here's the tea: this fence agent takes options from the command line and from stdin. both. because why not. when fenced execs the agent, it sends parameters through stdin β that's the whole system, that's the vibe.
but also?? you can totally run the agent all by itself with command line options. that's lowkey so useful for testing, and for turning outlets on or off from scripts. no cap. π₯
Vendor URL: http://www.intel.com/ β the intel girlies said hi.
π PARAMETERS π
every single flag, in order, no skips, no cuts. periodt.
-o,--action=[action]β the fencing action you want. (Default Value:reboot)-b,--boot-option=[option]β changes the default boot behavior of the machine. options are(pxe|hd|hdsafe|cd|diag)π₯Ύ-a,--ip=[ip]β IP address or hostname of the fencing device. that's the address, bestie.-u,--ipport=[port]β the TCP/UDP port used to connect to the device. (Default Value:16994)-m,--method=[method]β the method to fence with. choices are(onoff|cycle). (Default Value:onoff)-p,--password=[password]β login password or passphrase. keep it secret, keep it safe π-S,--password-script=[script]β a script you run to go retrieve that password. very spy-core.-n,--plug=[ip]β IP address or hostname of the fencing device (used together with--port-as-ip).-q,--quietβ disables logging to stderr. and heads up: it does not affect--verboseor--debug-fileor logging to syslog. those keep doing their thing.-v,--verboseβ verbose mode. and the way this stacks?? multiple-vflags can be piled up on the command line (e.g.,-vvv) to increase verbosity. go off.--verbose-levelβ the level of debugging detail in the output. defaults to the number of--verboseflags you specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).-D,--debug-file=[debugfile]β write debug information to the given file.-V,--versionβ display version information and exit. bye π-h,--helpβ display help and exit. also bye π--plug-separator=[char]β the separator for the plug parameter when you're specifying more than 1 plug. (Default Value:,)--amttool-path=[path]β path to theamttoolbinary. (Default Value:/usr/bin/amttool)--delay=[seconds]β wait X seconds before fencing is started. (Default Value:0)--disable-timeout=[true/false]β disable the timeout, true or false. (default:truewhen run from Pacemaker 2.0+)--login-timeout=[seconds]β wait X seconds for the cmd prompt after login. (Default Value:5)--port-as-ipβ makes "port/plug" an alias to the IP address. cute little shortcut.--power-timeout=[seconds]β test X seconds for a status change after ON/OFF. (Default Value:20)--power-wait=[seconds]β wait X seconds after issuing ON/OFF. (Default Value:0)--shell-timeout=[seconds]β wait X seconds for the cmd prompt after issuing a command. (Default Value:3)--stonith-status-sleep=[seconds]β sleep X seconds between status calls during a STONITH action. (Default Value:1)--retry-on=[attempts]β how many attempts to retry power on. (Default Value:1)--use-sudoβ use sudo (without password) when calling 3rd party software. no password needed, wild.--sudo-path=[path]β path to thesudobinary. (Default Value:/usr/bin/sudo)
β ACTIONS β
the things it can actually do. main character moves only.
onβ Power on machine. β‘offβ Power off machine.rebootβ Reboot machine. πstatusβ This returns the status of the plug/virtual machine.monitorβ Check the health of fence device. vibe check, basically π©Ίmetadataβ Display the XML metadata describing this resource.manpageβ The operational behavior of this is not known. π no fr, that's genuinely what it says, we don't know.validate-allβ Validate if all required parameters are entered.
π¦ STDIN PARAMETERS π¦
same energy, but these are the stdin names. (notice they're the underscore versions, iykyk.)
actionβ Fencing action (Default Value:reboot)boot_optionβ Change the default boot behavior of the machine.(pxe|hd|hdsafe|cd|diag)ipβ IP address or hostname of fencing device. Obsoletes:ipaddripportβ TCP/UDP port to use for connection with device (Default Value:16994)methodβ Method to fence(onoff|cycle)(Default Value:onoff)passwordβ Login password or passphrase. Obsoletes:passwdpassword_scriptβ Script to run to retrieve password. Obsoletes:passwd_scriptplugβ IP address or hostname of fencing device (together with--port-as-ip). Obsoletes:portquietβ Disable logging to stderr. Does not affect--verboseor--debug-fileor logging to syslog.verboseβ Verbose mode. Multiple-vflags can be stacked on the command line (e.g.,-vvv) to increase verbosity.verbose_levelβ Level of debugging detail in output. Defaults to the number of--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).debug_fileβ Write debug information to given file. Obsoletes:debugversionβ Display version information and exithelpβ Display help and exitplug_separatorβ Separator for plug parameter when specifying more than 1 plug (Default Value:,)amttool_pathβ Path to amttool binary (Default Value:/usr/bin/amttool)delayβ Wait X seconds before fencing is started (Default Value:0)disable_timeoutβ Disable timeout (true/false) (default:truewhen run from Pacemaker 2.0+)login_timeoutβ Wait X seconds for cmd prompt after login (Default Value:5)port_as_ipβ Make "port/plug" to be an alias to IP addresspower_timeoutβ Test X seconds for status change after ON/OFF (Default Value:20)power_waitβ Wait X seconds after issuing ON/OFF (Default Value:0)shell_timeoutβ Wait X seconds for cmd prompt after issuing command (Default Value:3)stonith_status_sleepβ Sleep X seconds between status calls during a STONITH action (Default Value:1)retry_onβ Count of attempts to retry power on (Default Value:1)use_sudoβ Use sudo (without password) when calling 3rd party software. Obsoletes:sudosudo_pathβ Path to sudo binary (Default Value:/usr/bin/sudo)
β οΈ quick real-talk: manpage says its operational behavior "is not known" β that's not me being cute, that's literally the documentation. don't come for me, come for the manpage. π
and that's the whole page, bestie. you ate. π β¨
sign-off szn: this one's fence_amt (Fence Agent), dated 2009-10-20, and it lives in FENCE_AGENT(8) π«Ά take care of her, she's been here since 2009 and she's still serving. π
π¦ where this page comes from
- debian trixie: fence-agents-amt 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-amt 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-amt 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-amt 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-amt 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-amt 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-amt 4.17.0-1ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms