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) β€” the fence_eaton_snmp glow-up πŸ’–

okay bestie, sit down, grab a boba, because we're talking about fence_eaton_snmp, and she is that girl. this is the System Manager's Manual entry, so yes it's a real one, and yes i'm gonna make it make sense. πŸŽ€


✨ NAME ✨

fence_eaton_snmp β€” Fence agent for Eaton over SNMP πŸ¦‹


🌸 DESCRIPTION 🌸

so fence_eaton_snmp is a Power Fencing agent, and she's the one you call when you've got an Eaton network power switch that needs to be handled. the way this works: she logs into a device via SNMP and reboots a specified outlet. periodt. πŸ’…

and not to brag but she supports SNMP v1 and v3 with all combinations of authenticity/privacy settings. all of them. every combo. she's flexible like that. πŸ‘‘

also the fence agent accepts options on the command line as well as from stdin. when Fenced execs the agent, it sends parameters through stdin. 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 real. ✨

Vendor URL: http://powerquality.eaton.com 🫢


πŸ’œ PARAMETERS πŸ’œ

  • -o, --action=[action] β€” Fencing action (Default Value: reboot)
  • -c, --community=[community] β€” Set the community string (Default Value: private)
  • -a, --ip=[ip] β€” IP address or hostname of fencing device. This parameter is always required. no skipping, bestie. 🚨
  • -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. yes again. required 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) (Default Value: 1)
  • -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 her UP. πŸ“š
  • --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: 2)
  • --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 to snmpget binary (Default Value: /usr/bin/snmpget)
  • --snmpset-path=[path] β€” Path to snmpset binary (Default Value: /usr/bin/snmpset)
  • --snmpwalk-path=[path] β€” Path to snmpwalk binary (Default Value: /usr/bin/snmpwalk)

🌈 ACTIONS 🌈

the whole menu of moves she can pull. pick your fighter:

  • 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. (not her fault, nobody knows. mystery queen. πŸ™ˆ)
  • validate-all β€” Validate if all required parameters are entered.

πŸ¦‹ STDIN PARAMETERS πŸ¦‹

same energy, different entrance β€” these come in through stdin, with their snake_case names:

  • action β€” Fencing action (Default Value: reboot)
  • community β€” Set the community string (Default Value: private)
  • 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: 161)
  • 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
  • snmp_auth_prot β€” Set authentication protocol (MD5|SHA)
  • snmp_priv_passwd β€” Set privacy protocol password
  • snmp_priv_passwd_script β€” Script to run to retrieve privacy password
  • snmp_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) (Default Value: 1)
  • 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: 2)
  • 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 to snmpget binary (Default Value: /usr/bin/snmpget)
  • snmpset_path β€” Path to snmpset binary (Default Value: /usr/bin/snmpset)
  • snmpwalk_path β€” Path to snmpwalk binary (Default Value: /usr/bin/snmpwalk)

ngl the option names and the stdin names are not the same β€” --snmp-auth-prot on the command line is snmp_auth_prot on stdin, --debug-file is debug_file, etc. iykyk. use the right one for the right door or she will simply not answer. 🫢

and that's the whole page bestie, you ate it, you understood it, you're basically a certified fence agent whisperer now. πŸ’…βœ¨

sign-off tea: this one is fence_eaton_snmp (Fence Agent), dated 2009-10-20, and it lives inside the FENCE_AGENT(8) manual. iconic since 2009, still serving. πŸ‘‘πŸŽ€

πŸ“¦ where this page comes from