FENCE_AGENT(8)

πŸ“¦ version 4.17.0, in fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– FENCE_AGENT(8) β€” the fence_hetzner_cloud glow-up πŸ’–

okay bestie, so this is fence_hetzner_cloud, and it lives in section 8 of the System Manager's Manual. Think of it as the group chat for your Hetzner Cloud servers where the only messages are "you're up" and "you're down". Let's get into it 🫢


✨ NAME ✨

fence_hetzner_cloud β€” the fence agent for Hetzner Cloud, no cap πŸ’…


🌸 DESCRIPTION 🌸

fence_hetzner_cloud is a Power Fencing agent that talks to Hetzner Cloud via its API to fence cloud servers. Like, it's the bouncer at the club door but for your VMs πŸ”₯

The fence agent accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. But also β€” plot twist β€” the agent can be run by itself with command line options. That's lowkey iconic for testing and for turning outlets on or off from scripts ✨

Vendor URL: https://www.hetzner.com


πŸŽ€ PARAMETERS πŸŽ€

  • --api-token=[token] β€” API token. This parameter is always required, periodt πŸ”‘
  • --api-url=[url] β€” API URL (Default Value: https://api.hetzner.cloud/v1) 🌐
  • -o, --action=[action] β€” Fencing action (Default Value: reboot) 🎬
  • -n, --plug=[id] β€” Physical plug number on device, UUID or identification of machine. 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: ,) πŸ“
  • -C, --separator=[char] β€” Separator for CSV created by list operation (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) πŸšͺ
  • --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: 5) πŸ’»
  • --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) πŸ”

πŸ‘‘ ACTIONS πŸ‘‘

  • on β€” Power on machine β˜€οΈ
  • off β€” Power off machine πŸŒ™
  • reboot β€” Reboot machine πŸ”„
  • status β€” This returns the status of the plug/virtual machine πŸ‘€
  • list β€” List available plugs with aliases/virtual machines if there is support for more then one device. Returns N/A otherwise πŸ“‹
  • list-status β€” List available plugs with aliases/virtual machines and their power state if it can be obtained without additional commands 🧾
  • monitor β€” Check the health of fence device 🩺
  • metadata β€” Display the XML metadata describing this resource πŸ“¦
  • manpage β€” The operational behavior of this is not known 🀷
  • validate-all β€” Validate if all required parameters are entered βœ…

πŸ¦‹ STDIN PARAMETERS πŸ¦‹

  • api_token β€” API token. This parameter is always required πŸ”‘
  • api_url β€” API URL (Default Value: https://api.hetzner.cloud/v1) 🌐
  • action β€” Fencing action (Default Value: reboot) 🎬
  • plug β€” Physical plug number on device, UUID or identification of machine. This parameter is always required. 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: ,) πŸ“
  • separator β€” Separator for CSV created by list operation (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) πŸšͺ
  • 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: 5) πŸ’»
  • 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) πŸ”

ngl bestie, --api-token and -n/--plug are the two non-negotiables here. Everything else has a default and will simply vibe. 🫢

okay that's the whole page!! this one is fence_hetzner_cloud (Fence Agent) and the page itself is dated 2009-10-20 β€” yeah it's been serving looks since 2009, and it's still FENCE_AGENT(8) coded. slay, mwah πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from