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

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

okay bestie, so this is the manual for fence_agent β€” section 8, system manager's manual vibes β€” and honestly? it's giving niche but iconic. sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

  • fence_eps β€” Fence agent for ePowerSwitch
  • fence_epsr2 β€” Fence agent for ePowerSwitch R2 and newer (symlink)

πŸ¦‹ DESCRIPTION πŸ¦‹

So fence_eps is a Power Fencing agent that you use with the ePowerSwitch 8M+ power switch to fence machines that are connected to it. and here's the thing β€” it ONLY works on 8M+ devices, because those are the ones that support the hidden page feature. no 8M+? no vibes. πŸ’€

The way this agent works is it connects to the hidden page and passes the appropriate arguments to the GET request. which means β€” and this is important β€” the hidden page feature must be enabled and properly configured. like, it's not optional, bestie. it's the whole thing.

NOTE: In most cases you want to use fence_epsr2, because fence_eps only works with older hardware. like, older older. 🫢

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 you can also 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. periodt. πŸ’…

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


πŸŽ€ PARAMETERS πŸŽ€

  • -o, --action=[action] β€” Fencing action (Default Value: reboot)
  • -a, --ip=[ip] β€” IP address or hostname of fencing device. This parameter is always required. no skipping it, babes.
  • -u, --ipport=[port] β€” TCP/UDP port to use for connection with device (Default Value: 80)
  • -c, --page=[page] β€” Name of hidden page (Default Value: hidden.htm)
  • -p, --password=[password] β€” Login password or passphrase
  • -S, --password-script=[script] β€” Script to run to retrieve password
  • -n, --plug=[id] β€” Physical plug number on device, UUID or identification of machine. This parameter is always required. yes, also required. both of them. 😀
  • -l, --username=[name] β€” Login name
  • -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. 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 🌈

  • 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. (genuinely. we don't know. it's a mystery, bestie πŸ™ˆ)
  • validate-all β€” Validate if all required parameters are entered.

🧚 STDIN PARAMETERS 🧚

  • action β€” Fencing action (Default Value: reboot)
  • ip β€” IP address or hostname of fencing device. This parameter is always required. Obsoletes: ipaddr
  • ipport β€” TCP/UDP port to use for connection with device (Default Value: 80)
  • page β€” Name of hidden page (Default Value: hidden.htm) Obsoletes: hidden_page
  • password β€” Login password or passphrase Obsoletes: passwd
  • password_script β€” Script to run to retrieve password Obsoletes: passwd_script
  • plug β€” Physical plug number on device, UUID or identification of machine. This parameter is always required. Obsoletes: port
  • username β€” Login name 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: ,)
  • 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)

okay that's the whole thing, you ate it, you understood it, I'm obsessed πŸ’œ this page is from fence_eps (Fence Agent), dated 2009-10-20 β€” a vintage icon, no cap πŸ‘‘ go fence something responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from