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 πŸ’–

fence_aliyun β€” the fence agent for Aliyun (aka Aliyun Web Services), bestie πŸ’…


🌸 DESCRIPTION 🌸

okay so fence_aliyun is a Power Fencing agent for Aliyun. that's the whole vibe. it fences. it powers. it's giving main character energy in your cluster 🫢

here's the tea: the fence agent takes options on the command line and from stdin. when fenced execs the agent, it sends parameters through stdin. but you can also just run the agent by itself with command line options β€” which is lowkey so useful for testing and for turning outlets on or off from scripts ✨

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


✨ PARAMETERS ✨

  • -o, --action=[action] β€” the fencing action, obvi. (Default Value: reboot)
  • -n, --plug=[id] β€” physical plug number on the device, or the UUID / identification of the machine. this one is always required, no skipping πŸ™…β€β™€οΈ
  • -r, --region=[name] β€” the region.
  • -a, --access-key=[name] β€” Access Key.
  • -s, --secret-key=[name] β€” Secret Key.
  • --ram-role=[name] β€” Ram Role.
  • --credentials-file=[path] β€” path to the credentials file.
  • --credentials-file-profile=[profile] β€” credentials file profile. (Default Value: default)
  • --filter=[key=value] β€” filter for list-action.
  • -q, --quiet β€” disable logging to stderr. ngl it does not affect --verbose or --debug-file or logging to syslog.
  • -v, --verbose β€” verbose mode. you can stack multiple -v flags on the command line (like -vvv) to crank the verbosity up πŸ“ˆ
  • --verbose-level β€” level of debugging detail in output. defaults to the number of --verbose flags you 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 the given file.
  • -V, --version β€” display version information and exit.
  • -h, --help β€” display help and exit.
  • --plug-separator=[char] β€” separator for the plug parameter when you're specifying more than 1 plug. (Default Value: ,)
  • -C, --separator=[char] β€” separator for the CSV created by the '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: 60)
  • --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 πŸŽ€

  • 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's support for more than 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 the fence device.
  • metadata β€” display the XML metadata describing this resource.
  • manpage β€” the operational behavior of this is not known. πŸ’€ (not me reading that and going "ok bestie, noted")
  • validate-all β€” validate if all required parameters are entered.

πŸ¦‹ STDIN PARAMETERS πŸ¦‹

  • action β€” fencing action. (Default Value: reboot)
  • plug β€” physical plug number on device, UUID or identification of machine. this parameter is always required. Obsoletes: port
  • region β€” region.
  • access_key β€” Access Key.
  • secret_key β€” Secret Key.
  • ram_role β€” Ram Role.
  • credentials_file β€” path to credentials file.
  • credentials_file_profile β€” credentials file profile. (Default Value: default)
  • filter β€” filter for list-action.
  • 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: 60)
  • 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)

⭐ friendly reminder bestie: plug is always required, and manpage's operational behavior is genuinely listed as not known. we keep the lore accurate here πŸ’…

and that's the whole page, bestie!! this lil doc lives in the Fence Agent manual set for fence_aliyun, dated 2009-10-20, filed under the manual page FENCE_AGENT(8) πŸŽ€βœ¨ slay, go fence something responsibly πŸ«ΆπŸ’–

πŸ“¦ where this page comes from