FENCE_AGENT(8)
π NAME π
fence_drac β the Power Fencing agent for Dell DRAC IV, bestie. It's giving "I control your server's power from far away" and honestly? Iconic.
β¨ DESCRIPTION β¨
Okay so fence_drac is a Power Fencing agent that works with the Dell Remote Access Card (DRAC). This card is the whole vibe β it gives you remote access to controlling power to a server. π
The way it works: it logs into the DRAC through the telnet interface of the card. And here's the thing β by default, that telnet interface is not enabled. Not even a little. So if you wanna use it, you're gonna need the racadm command, which lives in the racser-devel rpm available from Dell. π
To enable telnet on the DRAC:
[root]# racadm config -g cfgSerial -o cfgSerialTelnetEnable 1
[root]# racadm racreset
No cap, that's the whole ritual. π
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. π¦
Vendor URL: http://www.dell.com
π PARAMETERS π
One bullet per option, every single one, no skipping, periodt. π«Ά
-o,--action=[action]β Fencing action. (Default Value:reboot)-c,--command-prompt=[prompt]β Force Python regex for command prompt. (Default Value:['\\[username\\]# '])-a,--ip=[ip]β IP address or hostname of fencing device-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=[ip]β IP address or hostname of fencing device (together with--port-as-ip)-l,--username=[name]β Login name. This parameter is always required. Like, always always. π₯-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. Stack them like accessories bestie. β¨--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:,)--delay=[seconds]β Wait X seconds before fencing is started. (Default Value:0)--disable-timeout=[true/false]β Disable timeout (true/false) (default:truewhen run from Pacemaker 2.0+)--login-timeout=[seconds]β Wait X seconds for cmd prompt after login. (Default Value:5)--port-as-ipβ Make "port/plug" to be an alias to IP address--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)--telnet-path=[path]β Path to telnet binary. (Default Value:/usr/bin/telnet)
π ACTIONS π
onβ Power on machine. β‘offβ Power off machine.rebootβ Reboot machine. πstatusβ This returns the status of the plug/virtual machine.monitorβ Check the health of fence device π©Ίmetadataβ Display the XML metadata describing this resource.manpageβ The operational behavior of this is not known. (Yeah, we said what we said. π)validate-allβ Validate if all required parameters are entered.
πΈ STDIN PARAMETERS πΈ
Same energy, snake_case edition. π
actionβ Fencing action (Default Value:reboot)command_promptβ Force Python regex for command prompt (Default Value:['\\[username\\]# ']) Obsoletes:cmd_promptipβ IP address or hostname of fencing device 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β IP address or hostname of fencing device (together with--port-as-ip) Obsoletes:portusernameβ 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:,)delayβ Wait X seconds before fencing is started (Default Value:0)disable_timeoutβ Disable timeout (true/false) (default:truewhen run from Pacemaker 2.0+)login_timeoutβ Wait X seconds for cmd prompt after login (Default Value:5)port_as_ipβ Make "port/plug" to be an alias to IP addresspower_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)telnet_pathβ Path to telnet binary (Default Value:/usr/bin/telnet)
π Quick vibe check before you dip:--username/usernameis always required. Don't forget it or the whole thing's just gonna sit there looking at you. π
And that's the page bestie! π This one's fence_drac from the Fence Agent crew, dated 2009-10-20, and it lives in section FENCE_AGENT(8) of the manual. Slay, go fence something. π
β¨
π¦ where this page comes from
- debian trixie: fence-agents-drac 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-drac 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-drac 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-drac 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-drac 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-drac 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