FENCE_AGENT(8)
π 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--verboseor--debug-fileor logging to syslog π€«-v,--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) π-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 bylistoperation (Default Value:,) π--delay=[seconds]β Wait X seconds before fencing is started (Default Value:0) β³--disable-timeout=[true/false]β Disable timeout (true/false) (default:truewhen 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. ReturnsN/Aotherwise π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--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: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 bylistoperation (Default Value:,) π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) πͺ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-tokenand-n/--plugare 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
- fedora 43: fence-agents-hetzner-cloud 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-hetzner-cloud 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu resolute: fence-agents-hetzner-cloud 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-hetzner-cloud 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