FENCE_AGENT(8)
π fence_cisco_mds β a Gen Z field guide π
okay bestie, pull up a chair π«Ά this is fence_cisco_mds(8), part of the System Manager's Manual (that's the fence_cisco_mds manual page, section 8 β system administration tools, iykyk). it's an I/O fencing agent, which sounds scary but is really just "the thing that yanks power from a misbehaving machine so the cluster doesn't have a meltdown." slay. π
β¨ NAME β¨
fence_cisco_mds β Fence agent for Cisco MDS. no cap, that's the whole name. πΈ
π¦ DESCRIPTION π¦
okay so fence_cisco_mds is an I/O Fencing agent and it works with any Cisco MDS 9000 series device that has SNMP enabled. any of them. the whole squad. π
the fence agent accepts options on the command line and from stdin. here's the tea: fenced sends parameters through stdin when it execs the agent. 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. main character energy for a daemon, honestly. β¨
Vendor URL: http://www.cisco.com β go say hi to them, not me. π«Ά
π PARAMETERS π
here's the full lineup, every single one, no skips, no cuts. periodt.
-o,--action=[action]β Fencing action (Default Value:off)-c,--community=[community]β Set the community string-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:161)-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.-b,--snmp-auth-prot=[prot]β Set authentication protocol (MD5|SHA)-P,--snmp-priv-passwd=[pass]β Set privacy protocol password-R,--snmp-priv-passwd-scriptβ Script to run to retrieve privacy password-B,--snmp-priv-prot=[prot]β Set privacy protocol (DES|AES)-E,--snmp-sec-level=[level]β Set security level (noAuthNoPriv|authNoPriv|authPriv)-d,--snmp-version=[version]β Specifies SNMP version to use (1|2c|3)-l,--username=[name]β Login name-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 'em like bracelets 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:,)-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:truewhen 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)--snmpget-path=[path]β Path tosnmpgetbinary (Default Value:/usr/bin/snmpget)--snmpset-path=[path]β Path tosnmpsetbinary (Default Value:/usr/bin/snmpset)--snmpwalk-path=[path]β Path tosnmpwalkbinary (Default Value:/usr/bin/snmpwalk)
π₯ ACTIONS π₯
the things this agent can actually do. the rΓ©sumΓ©. π
onβ Power on machine. β‘offβ Power off 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 device π©Ίmetadataβ Display the XML metadata describing this resource.manpageβ The operational behavior of this is not known. (ngl, iconic that they just admitted it π)validate-allβ Validate if all required parameters are entered.
π STDIN PARAMETERS π
so when fenced execs the agent, this is what comes down the pipe. same crew, snake_case names this time. π
actionβ Fencing action (Default Value:off)communityβ Set the community stringipβ 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:161)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:portsnmp_auth_protβ Set authentication protocol (MD5|SHA)snmp_priv_passwdβ Set privacy protocol passwordsnmp_priv_passwd_scriptβ Script to run to retrieve privacy passwordsnmp_priv_protβ Set privacy protocol (DES|AES)snmp_sec_levelβ Set security level (noAuthNoPriv|authNoPriv|authPriv)snmp_versionβ Specifies SNMP version to use (1|2c|3)usernameβ Login name. 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:truewhen 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)snmpget_pathβ Path tosnmpgetbinary (Default Value:/usr/bin/snmpget)snmpset_pathβ Path tosnmpsetbinary (Default Value:/usr/bin/snmpset)snmpwalk_pathβ Path tosnmpwalkbinary (Default Value:/usr/bin/snmpwalk)
heads up bestie:ipandplugare always required. noip, noplug, no fencing. it's giving non-negotiable. π¨
and that's the whole page!! π this was fence_cisco_mds (Fence Agent), dated 2009-10-20 β yeah, she's an elder but she still eats. mwah, go fence something responsibly. πβ¨π¦
π¦ where this page comes from
- centos-stream 10: fence-agents-cisco-mds 4.16.0-36.el10 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- debian trixie: fence-agents-cisco-mds 4.16.0-3 Β· GPL-2.0-or-later
- fedora 43: fence-agents-cisco-mds 4.16.0-5.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 43: fence-agents-cisco-mds 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-cisco-mds 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-cisco-mds 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu questing: fence-agents-cisco-mds 4.16.0-3ubuntu1
- ubuntu resolute: fence-agents-cisco-mds 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-cisco-mds 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