FENCE_AGENT(8)

πŸ“¦
version 4.17.0 Β· 3 versions
, in debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 --verbose or --debug-file or logging to syslog. those keep doing their thing.
  • -v, --verbose β€” verbose mode. and the way this stacks?? multiple -v flags 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 --verbose flags you specified on the command line, or to 1 if verbose=1 in 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 the amttool binary. (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: true when 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 the sudo binary. (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: ipaddr
  • ipport β€” 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: passwd
  • password_script β€” Script to run to retrieve password. Obsoletes: passwd_script
  • plug β€” IP address or hostname of fencing device (together with --port-as-ip). Obsoletes: port
  • quiet β€” Disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog.
  • verbose β€” Verbose mode. Multiple -v flags 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 --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).
  • debug_file β€” Write debug information to given file. Obsoletes: debug
  • version β€” Display version information and exit
  • help β€” Display help and exit
  • plug_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: true when 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 address
  • power_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: sudo
  • sudo_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