FENCE_AGENT(8)

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

πŸ’– FENCE_AGENT(8) πŸ’–

okay bestie, this is a page from the System Manager's Manual and it's literally all about fence_ecloud, the fence agent. grab a snack, we're doing this πŸ’…


✨ NAME ✨

fence_ecloud β€” the Fence Agent for ANS eCloud. that's the whole name, iconic, no notes πŸŽ€


🌸 DESCRIPTION 🌸

fence_ecloud is a Power Fencing agent for use with the ANS eCloud platform, and the way that it's compatible with eCloud VPC and eCloud v1?? we love range πŸ¦‹

so here's the vibe: the fence agent takes options on the command line, and it also takes them 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 so useful for testing and for turning outlets on or off from scripts πŸ”₯

Vendor URL: https://www.ans.co.uk β€” go say hi πŸ’–


πŸ’… PARAMETERS πŸ’…

okay this is the big one, every single flag, no skipping, periodt ✨

  • --apikey=[key] β€” API Key. this one is always required, like always always, don't forget it bestie 😭
  • -o, --action=[action] β€” the fencing action. (Default Value: reboot)
  • -n, --plug=[instance] β€” Instance ID (VPC) or server ID (v1). this one is always required too 🫢
  • -q, --quiet β€” Disable logging to stderr. note: it does not affect --verbose or --debug-file or logging to syslog. okayyy πŸ’œ
  • -v, --verbose β€” Verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity. stack 'em like bracelets ✨
  • --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: 0)
  • --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)

πŸ‘‘ ACTIONS πŸ‘‘

the things it can actually do, and honestly? each one ate πŸ’…

  • 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. no cap, nobody knows what this one does 😭
  • validate-all β€” Validate if all required parameters are entered. βœ…

πŸ¦‹ STDIN PARAMETERS πŸ¦‹

same energy, different delivery method β€” these are the ones that come in through stdin (hi Fenced 🫢). heads up: the names use underscores here instead of dashes, so keep that in mind bestie ✨

  • apikey β€” API Key. always required πŸ’–
  • action β€” Fencing action. (Default Value: reboot)
  • plug β€” Instance ID (VPC) or server ID (v1). 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: 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)

and that's the whole page, bestie!! πŸŽ€ this one's from fence_ecloud (Fence Agent), dated 2009-10-20, living under FENCE_AGENT(8) β€” she's been around a minute and she's still serving πŸ’–βœ¨

πŸ“¦ where this page comes from