FENCE_AGENT(8)
FENCE_AGENT(8) π aka fence_drac5, your fave Dell power-fencing bestie
okay so bestie, gather round, because this is the manual page for fence_drac5 from the System Manager's Manual, and it's genuinely so much less scary than it looks. let's get into it π«Ά
β¨ NAME β¨
fence_drac5 β Fence agent for Dell DRAC CMC/5 π
πΈ DESCRIPTION πΈ
so fence_drac5 is a Power Fencing agent and it's the one you want when you're dealing with the Dell Remote Access Card v5 or CMC (DRAC). this device? it gives you remote access to controlling power to a server. iconic behaviour honestly. it logs into the DRAC through the telnet/ssh interface of the card. and listen β by default, the telnet interface is not enabled. so don't come crying to me when it doesn't work, go enable it first π
the fence agent accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. and 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. main character energy for real π
Vendor URL: http://www.dell.com β go say hi β¨
π PARAMETERS π
okay here's the whole squad of flags, no skips, no shortcuts, we're doing all of them:
-o,--action=[action]β Fencing action (Default Value:reboot)-c,--command-prompt=[prompt]β Force Python regex for command prompt (Default Value:['\\$', 'DRAC\\/MC:'])-d,--drac-version=[version]β Force DRAC version to use (DRAC CMC|DRAC MC|DRAC 5)-k,--identity-file=[filename]β Identity file (private key) for SSH-4,--inet4-onlyβ Forces agent to use IPv4 addresses only-6,--inet6-onlyβ Forces agent to use IPv6 addresses only-a,--ip=[ip]β IP address or hostname of fencing device. This parameter is always required.-u,--ipport=[port]β TCP/UDP port to use for connection with device (Default Value:23)-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.-x,--sshβ Use SSH connection--ssh-options=[options]β SSH options to use-l,--username=[name]β Login name. 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 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)--ssh-path=[path]β Path to ssh binary (Default Value:/usr/bin/ssh)--telnet-path=[path]β Path to telnet binary (Default Value:/usr/bin/telnet)
π¦ ACTIONS π¦
these are the things you can do, bestie. the verbs. the moves:
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 devicemetadataβ Display the XML metadata describing this resource.manpageβ The operational behavior of this is not known. π (no fr, that's literally what it says β we do not know)validate-allβ Validate if all required parameters are entered.
π STDIN PARAMETERS π
same energy, different delivery system β these come in through stdin. notice the obsoletes, they matter iykyk:
actionβ Fencing action (Default Value:reboot)command_promptβ Force Python regex for command prompt (Default Value:['\\$', 'DRAC\\/MC:']) Obsoletes:cmd_promptdrac_versionβ Force DRAC version to use (DRAC CMC|DRAC MC|DRAC 5)identity_fileβ Identity file (private key) for SSHinet4_onlyβ Forces agent to use IPv4 addresses onlyinet6_onlyβ Forces agent to use IPv6 addresses onlyipβ IP address or hostname of fencing device. This parameter is always required. Obsoletes:ipaddripportβ TCP/UDP port to use for connection with device (Default Value:23)passwordβ Login password or passphrase. Obsoletes:passwdpassword_scriptβ Script to run to retrieve password. Obsoletes:passwd_scriptplugβ Physical plug number on device, UUID or identification of machine. This parameter is always required. Obsoletes:portsshβ Use SSH connection. Obsoletes:securessh_optionsβ SSH options to useusernameβ Login name. This parameter is always required. Obsoletes:loginquietβ 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:debugversionβ Display version information and exithelpβ Display help and exitplug_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)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 one is fence_drac5 (Fence Agent) and it's dated 2009-10-20, living inside the FENCE_AGENT(8) manual. slay, go fence something responsibly πβ¨
π¦ where this page comes from
- debian trixie: fence-agents-drac5 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-drac5 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-drac5 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-drac5 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-drac5 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-drac5 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-drac5 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