FENCE_AGENT(8)

πŸ“¦
version 4.17.0 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

FENCE_AGENT(8) β€” the fence agents manual, bestie edition πŸ’–

okay so this is from the System Manager's Manual section of the manual, and it's literally the whole family of IPMI-ish fence agents. buckle up πŸŽ€


✨ NAME ✨

fence_ipmilan β€” Fence agent for IPMI

fence_ilo3 β€” Fence agent for HP iLO3 (symlink)

fence_ilo4 β€” Fence agent for HP iLO4 (symlink)

fence_ilo5 β€” Fence agent for HP iLO5 (symlink)

fence_ipmilanplus β€” Fence agent for IPMIv2 lanplus (symlink)

fence_imm β€” Fence agent for IBM Integrated Management Module (symlink)

fence_idrac β€” Fence agent for Dell iDRAC (symlink)

not me listing seven agents, all of them iconic, most of them just symlinks living their best life πŸ¦‹

🌸 DESCRIPTION 🌸

fence_ipmilanplus is a Power Fencing agent which can be used with machines controlled by IPMI. This agent calls support software ipmitool (http://ipmitool.sf.net/). slay.

⚠️ WARNING! This fence agent might report success before the node is powered off. You should use -m/method onoff if your fence device works correctly with that option. fr fr, do not ignore this one bestie 😭

The fence agent accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. The agent can be run by itself with command line options. This is useful for testing and for turning outlets on or off from scripts. very giving "I can do both" energy πŸ’…

Vendor URL: (yeah it's just… empty. the vibe is mysterious. leave it) ✨


πŸŽ€ PARAMETERS πŸŽ€

  • -o, --action=[action] β€” Fencing action (Default Value: reboot) πŸ‘‘
  • -A, --auth=[auth] β€” IPMI Lan Auth type. (md5|password|none)
  • -C, --cipher=[cipher] β€” Ciphersuite to use (same as ipmitool -C parameter)
  • --hexadecimal-kg=[key] β€” Hexadecimal-encoded Kg key for IPMIv2 authentication
  • -a, --ip=[ip] β€” IP address or hostname of fencing device
  • -u, --ipport=[port] β€” TCP/UDP port to use for connection with device (Default Value: 623)
  • -P, --lanplus β€” Use Lanplus to improve security of connection (Default Value: 1) πŸ”₯
  • -m, --method=[method] β€” Method to fence (onoff|cycle) (Default Value: onoff)
  • -p, --password=[password] β€” Login password or passphrase
  • -S, --password-script=[script] β€” Script to run to retrieve password
  • -n, --plug=[ip] β€” IP address or hostname of fencing device (together with --port-as-ip)
  • -L, --privlvl=[level] β€” Privilege level on IPMI device (callback|user|operator|administrator) (Default Value: administrator) β€” main character privilege, literally πŸ’…
  • --target=[targetaddress] β€” Bridge IPMI requests to the remote target address
  • -l, --username=[name] β€” Login name
  • -q, --quiet β€” Disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog. 🀫
  • -v, --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).
  • -D, --debug-file=[debugfile] β€” Write debug information to given file
  • -V, --version β€” Display version information and exit
  • -h, --help β€” Display help and exit 🫢
  • --plug-separator=[char] β€” Separator for plug parameter when specifying more than 1 plug (Default Value: ,)
  • --delay=[seconds] β€” Wait X seconds before fencing is started (Default Value: 0)
  • --disable-timeout=[true/false] β€” Disable timeout (true/false) (default: true when run from Pacemaker 2.0+)
  • --ipmitool-path=[path] β€” Path to ipmitool binary (Default Value: /usr/bin/ipmitool)
  • --login-timeout=[seconds] β€” 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=[seconds] β€” Test X seconds for status change after ON/OFF (Default Value: 20)
  • --power-wait=[seconds] β€” Wait X seconds after issuing ON/OFF (Default Value: 2)
  • --shell-timeout=[seconds] β€” Wait X seconds for cmd prompt after issuing command (Default Value: 3)
  • --stonith-status-sleep=[seconds] β€” Sleep X seconds between status calls during a STONITH action (Default Value: 1)
  • --ipmitool-timeout=[timeout] β€” Timeout (sec) for IPMI operation (Default Value: 2)
  • --retry-on=[attempts] β€” Count of attempts to retry power on (Default Value: 1)
  • --use-sudo β€” Use sudo (without password) when calling 3rd party software
  • --sudo-path=[path] β€” Path to sudo binary (Default Value: /usr/bin/sudo)

🌈 ACTIONS 🌈

  • 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 🩺
  • metadata β€” Display the XML metadata describing this resource.
  • manpage β€” The operational behavior of this is not known. 😭 (genuinely, that's what it says, nobody knows)
  • validate-all β€” Validate if all required parameters are entered.
  • diag β€” Pulse a diagnostic interrupt to the processor(s). ⚑

πŸ’œ STDIN PARAMETERS πŸ’œ

(these are the same little cuties but in stdin flavor, with their obsoletes noted)

  • action β€” Fencing action (Default Value: reboot)
  • auth β€” IPMI Lan Auth type. (md5|password|none)
  • cipher β€” Ciphersuite to use (same as ipmitool -C parameter)
  • hexadecimal_kg β€” Hexadecimal-encoded Kg key for IPMIv2 authentication
  • ip β€” IP address or hostname of fencing device β€” Obsoletes: ipaddr
  • ipport β€” TCP/UDP port to use for connection with device (Default Value: 623)
  • lanplus β€” Use Lanplus to improve security of connection (Default Value: 1)
  • 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
  • privlvl β€” Privilege level on IPMI device (callback|user|operator|administrator) (Default Value: administrator)
  • target β€” Bridge IPMI requests to the remote target address
  • username β€” Login name β€” Obsoletes: login
  • 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: ,)
  • 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+)
  • ipmitool_path β€” Path to ipmitool binary (Default Value: /usr/bin/ipmitool)
  • 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: 2)
  • 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)
  • ipmitool_timeout β€” Timeout (sec) for IPMI operation (Default Value: 2)
  • 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)

and that's the whole page bestie, no skips, no cuts, every single flag accounted for ✨

🌸 sign-off cutie moment: this page lives under fence_ipmilan (Fence Agent), dated 2009-10-20, and it belongs to the FENCE_AGENT(8) family. go forth and fence responsibly πŸ’–πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from