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_azure_arm πŸ’…

okay bestie, welcome to the FENCE_AGENT(8) manual page β€” yeah, section 8, System Manager's Manual, we're in the big-kid section now. This one's about fence_azure_arm, and no cap, it's lowkey iconic.


NAME 🌸

fence_azure_arm β€” the fence agent for Azure Resource Manager. That's it, that's the name, she's serving exactly what it says on the tin πŸ’–


DESCRIPTION πŸ¦‹

So fence_azure_arm is a Power Fencing agent for Azure Resource Manager. It uses the Azure SDK for Python to connect to Azure. Periodt.

For the instructions on how to set up your credentials, go look here:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal

Your username and password are the application ID and the authentication key from your "App registrations". That's the whole vibe, iykyk πŸ”‘

NOTE: NETWORK FENCING πŸ’€

Network fencing needs an extra subnet named "fence-subnet" for the Virtual Network, using a Network Security Group with these rules:

+-----------+-----+-------------------------+------+------+-----+-----+--------+
| DIRECTION | PRI | NAME                    | PORT | PROT | SRC | DST | ACTION |
+-----------+-----+-------------------------+------+------+-----+-----+--------+
| Inbound   | 100 | FENCE_DENY_ALL_INBOUND  | Any  | Any  | Any | Any | Deny   |
| Outbound  | 100 | FENCE_DENY_ALL_OUTBOUND | Any  | Any  | Any | Any | Deny   |
+-----------+-----+-------------------------+------+------+-----+-----+--------+

When you're using network fencing, the reboot-action will cause a quick-return once the network has been fenced β€” instead of waiting around for the off-action to succeed. Then it checks the status during the monitor-action, and requests power-on when the shutdown operation is complete. Efficiency queen πŸ‘‘

The fence agent accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent. You can also run the agent all by itself with command line options β€” super useful for testing and for turning outlets on or off from scripts. Main character energy fr fr ✨

Vendor URL: http://www.microsoft.com


PARAMETERS πŸŽ€

  • -o, --action=[action] β€” the fencing action. (Default Value: reboot)
  • -p, --password=[authkey] β€” the authentication key πŸ”
  • -S, --password-script=[script] β€” a script to run to retrieve the password
  • -n, --plug=[id] β€” physical plug number on the device, UUID, or identification of the machine. This parameter is always required. No plug, no party πŸ’…
  • -l, --username=[appid] β€” the Application ID
  • --resourceGroup=[name] β€” name of the resource group. The metadata service is used if the value is not provided.
  • --tenantId=[name] β€” id of the Azure Active Directory tenant.
  • --subscriptionId=[name] β€” id of the Azure subscription. The metadata service is used if the value is not provided.
  • --network-fencing β€” use network fencing. See the NOTE-section for configuration πŸ‘€
  • --msi β€” determines if Managed Service Identity should be used.
  • --cloud=[name] β€” name of the cloud you want to use.
  • --metadata-endpoint=[URL] β€” URL to the metadata endpoint (used when cloud=stack).
  • -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 'em like friendship 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
  • -V, --version β€” display version information and exit
  • -h, --help β€” display help and exit
  • --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/false) (default: true when run from Pacemaker 2.0+)
  • --login-timeout=[seconds] β€” wait X seconds for the cmd prompt after login (Default Value: 5)
  • --power-timeout=[seconds] β€” test X seconds for status change after ON/OFF (Default Value: 150)
  • --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)

ACTIONS ⭐

  • on β€” power on the machine.
  • off β€” power off the machine.
  • reboot β€” reboot the machine.
  • 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.
  • monitor β€” check the health of the fence device 🩺
  • metadata β€” display the XML metadata describing this resource.
  • manpage β€” the operational behavior of this is not known. (Bestie, we're all just figuring it out 😭)
  • validate-all β€” validate if all required parameters are entered.

STDIN PARAMETERS 🌈

  • action β€” fencing action (Default Value: reboot)
  • password β€” authentication key. 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
  • username β€” Application ID. Obsoletes: login
  • resourceGroup β€” name of resource group. Metadata service is used if the value is not provided.
  • tenantId β€” id of Azure Active Directory tenant.
  • subscriptionId β€” id of the Azure subscription. Metadata service is used if the value is not provided.
  • network_fencing β€” use network fencing. See NOTE-section for configuration. Obsoletes: network-fencing
  • msi β€” determines if Managed Service Identity should be used.
  • cloud β€” name of the cloud you want to use.
  • metadata_endpoint β€” URL to metadata endpoint (used when cloud=stack). Obsoletes: metadata-endpoint
  • 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: 150)
  • 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)

Reminder bestie: plug is always required, and --quiet does NOT silence --verbose or --debug-file or syslog. Don't get caught lacking πŸ’…

And that's a wrap! This page came from fence_azure_arm (Fence Agent) and it's dated 2009-10-20. Slay, bye πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from