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

✨ NAME ✨

okay bestie, meet fence_ilo_ssh β€” the Fence agent for HP iLO over SSH πŸ’–

and its little symlink siblings, who are literally the same vibe:

  • fence_ilo3_ssh β€” Fence agent for HP iLO3 over SSH (symlink)
  • fence_ilo4_ssh β€” Fence agent for HP iLO4 over SSH (symlink)
  • fence_ilo5_ssh β€” Fence agent for HP iLO5 over SSH (symlink)

(and yes, this whole thing lives in section 8 of the System Manager's Manual, iykyk 🫢)


🌸 DESCRIPTION 🌸

fence_ilo3_ssh is a Power Fencing agent that connects to an iLO device. It logs into the device via ssh and reboots a specified outlet. no cap, that's the whole job πŸ’…

WARNING: The monitor action is prone to timeouts. Use the fence_ilo-equivalent to avoid this issue. fr fr, don't say I didn't warn you 😭

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 also be run by itself with command line options β€” which is genuinely so useful for testing and for turning outlets on or off from scripts. main character energy for real πŸŽ€

Vendor URL: http://www.hp.com


πŸ‘‘ PARAMETERS πŸ‘‘

  • -o, --action=[action] β€” Fencing action (Default Value: reboot)
  • -c, --command-prompt=[prompt] β€” Force Python regex for command prompt (Default Value: ['MP>', 'hpiLO->'])
  • -k, --identity-file=[filename] β€” Identity file (private key) for SSH
  • -4, --inet4-only β€” Forces agent to use IPv4 addresses only
  • -6, --inet6-only β€” Forces agent to use IPv6 addresses only
  • -a, --ip=[ip] β€” IP address or hostname of fencing device
  • -u, --ipport=[port] β€” TCP/UDP port to use for connection with device (Default Value: 23)
  • -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)
  • -x, --ssh β€” Use SSH connection
  • --ssh-options=[options] β€” SSH options to use
  • -l, --username=[name] β€” Login name. This parameter is always required ⚠️
  • -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+)
  • --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: 5)
  • --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)
  • --retry-on=[attempts] β€” Count of attempts to retry power on (Default Value: 1)
  • --ssh-path=[path] β€” Path to ssh binary (Default Value: /usr/bin/ssh)
  • --telnet-path=[path] β€” Path to telnet binary (Default Value: /usr/bin/telnet)

πŸ¦‹ 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. πŸ™ˆ (yes bestie, that's literally what it says, I'm not making it up)
  • validate-all β€” Validate if all required parameters are entered. βœ…

🌈 STDIN PARAMETERS 🌈

  • action β€” Fencing action (Default Value: reboot)
  • command_prompt β€” Force Python regex for command prompt (Default Value: ['MP>', 'hpiLO->']) Obsoletes: cmd_prompt
  • identity_file β€” Identity file (private key) for SSH
  • inet4_only β€” Forces agent to use IPv4 addresses only
  • inet6_only β€” Forces agent to use IPv6 addresses only
  • ip β€” IP address or hostname of fencing device Obsoletes: ipaddr
  • ipport β€” TCP/UDP port to use for connection with device (Default Value: 23)
  • 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
  • ssh β€” Use SSH connection Obsoletes: secure
  • ssh_options β€” SSH options to use
  • username β€” Login name. This parameter is always required. 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+)
  • 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: 5)
  • 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)
  • ssh_path β€” Path to ssh binary (Default Value: /usr/bin/ssh)
  • telnet_path β€” Path to telnet binary (Default Value: /usr/bin/telnet)

and that's the whole page bestie, you ate that πŸ’…βœ¨

this lil doc is from fence_ilo_ssh (Fence Agent), dated 2009-10-20, living its best life in FENCE_AGENT(8) πŸŽ€ bye ily 🫢

πŸ“¦ where this page comes from