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_hpblade β€” the FENCE_AGENT(8) glow-up πŸ’–

okay bestie, welcome to the fence_hpblade section of the system manager's manual and lemme tell you, this one's a whole vibe. it's a fencing agent, it lives in section 8 of the manual, and it is so ready to handle ur HP hardware for u. 🫢


🌸 NAME 🌸

fence_hpblade β€” the fence agent for HP BladeSystem. literally that's her whole thing. πŸ’…


✨ DESCRIPTION ✨

fence_hpblade is a Power Fencing agent (yes, capital P capital F, she's official) that u can use with HP BladeSystem and HP Integrity Superdome X. what does she do? she logs into the onboard administrator of an enclosure β€” via telnet or ssh β€” and then uses the command line interface to power blades or partitions on or off. that's it. that's the job. iconic behavior honestly. πŸ”₯

and 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 u can also run the agent all by itself with command line options β€” which is genuinely so useful for testing and for turning outlets on or off from scripts. no cap, that's the whole point. πŸŽ€

Vendor URL: http://www.hp.com β€” go say hi to HP, they made the hardware. 🌈


πŸŽ€ PARAMETERS πŸŽ€

here's the full menu, bestie. every single one. i would never gatekeep. πŸ’œ

  • -o, --action=[action] β€” the fencing action, aka what she's gonna do. (Default Value: reboot) ⚑
  • -c, --command-prompt=[prompt] β€” force a Python regex for the command prompt, if u need to be picky about it. (Default Value: ['c7000oa>']) πŸ¦‹
  • -k, --identity-file=[filename] β€” the identity file (private key) for SSH. ur lil secret, kept safe. πŸ”
  • -4, --inet4-only β€” forces the agent to use IPv4 addresses only. old school, respect. πŸ“Ό
  • -6, --inet6-only β€” forces the agent to use IPv6 addresses only. futuristic, slay. πŸš€
  • -a, --ip=[ip] β€” IP address or hostname of the fencing device. > This parameter is always required. no skipping, bestie.
  • -u, --ipport=[port] β€” TCP/UDP port to use for connection with the device. (Default Value: 23) 🌸
  • -p, --password=[password] β€” login password or passphrase. 🀫
  • -S, --password-script=[script] β€” a script to run to retrieve the password, for when u don't wanna type it. πŸ’«
  • -n, --plug=[id] β€” physical plug number on the device, UUID, or identification of the machine. > This parameter is always required. yes, again. required required.
  • -x, --ssh β€” use an SSH connection. πŸ’»
  • --ssh-options=[options] β€” SSH options to use. ur call. πŸŽ€
  • -l, --username=[name] β€” login name. > This parameter is always required. ok three for three, u get the pattern.
  • -q, --quiet β€” disable logging to stderr. and listen: it does not affect --verbose or --debug-file or logging to syslog. those keep doing their thing. 🀐
  • -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 the given file. receipts, but make them a text file. πŸ“
  • -V, --version β€” display version information and exit. πŸ‘‹
  • -h, --help β€” display help and exit. the classic. πŸ†˜
  • --plug-separator=[char] β€” separator for the plug parameter when 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 or false. (default: true when run from Pacemaker 2.0+) βŒ›
  • --login-timeout=[seconds] β€” wait X seconds for the cmd prompt after login. (Default Value: 10) πŸ•
  • --missing-as-off β€” missing port returns OFF instead of failure. choose ur fighter. πŸ’€
  • --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 the cmd prompt after issuing a 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) πŸ”
  • --ssh-path=[path] β€” path to the ssh binary. (Default Value: /usr/bin/ssh) πŸ›£οΈ
  • --telnet-path=[path] β€” path to the telnet binary. (Default Value: /usr/bin/telnet) πŸ›£οΈ

πŸ¦‹ ACTIONS πŸ¦‹

the moves she can pull. each one is a whole mood:

  • on β€” power on machine. ⚑✨
  • off β€” power off machine. πŸ’€
  • reboot β€” reboot machine. the glow-up-and-restart. πŸ”„
  • 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. two-for-one. 🎁
  • monitor β€” check the health of the fence device. wellness check, bestie. 🩺
  • metadata β€” display the XML metadata describing this resource. πŸ“œ
  • manpage β€” the operational behavior of this is not known. 😭 literally nobody knows. it's a mystery. we love her anyway. πŸ™ˆ
  • validate-all β€” validate if all required parameters are entered. the responsible one in the group chat. βœ…

πŸ’« STDIN PARAMETERS πŸ’«

same energy, snake_case edition, because fenced sends these through stdin. watch out for the "Obsoletes" notes β€” those are the old names she's moved on from. πŸ‘‘

  • action β€” fencing action. (Default Value: reboot)
  • command_prompt β€” force Python regex for command prompt. (Default Value: ['c7000oa>']) Obsoletes: cmd_prompt
  • identity_file β€” identity file (private key) for SSH.
  • inet4_only β€” forces agent to use IPv4 addresses only.
  • inet6_only β€” forces agent to use IPv6 addresses only.
  • 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: 23)
  • 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
  • ssh β€” use SSH connection. Obsoletes: secure
  • ssh_options β€” SSH options to use.
  • username β€” login name. > This parameter is always required. 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: 10)
  • missing_as_off β€” missing port returns OFF instead of failure.
  • 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)
  • ssh_path β€” path to ssh binary. (Default Value: /usr/bin/ssh)
  • telnet_path β€” path to telnet binary. (Default Value: /usr/bin/telnet)

and that's the whole page, bestie!! 🫢 this lil manpage is brought to u by the fence_hpblade (Fence Agent) herself, dated 2009-10-20 β€” yeah she's been serving since '09 and she has not lost a single step. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from