OCF_HEARTBEAT_MACHIN(7)
β¨ ocf_heartbeat_machine-info β¨
okay bestie, welcome to the manual page for ocf_heartbeat_machine-info, from the OCF resource agents family π it's giving "quietly essential infrastructure" and honestly? we're obsessed.
πΈ NAME πΈ
ocf_heartbeat_machine-info β records various node attributes in the CIB π
π SYNOPSIS π
machine-info [start | stop | monitor | meta-data | validate-all]
π¦ DESCRIPTION π¦
so basically this one is a Virtual Machine and Container Registration Service Resource Agent. say that five times fast, i dare you π
what it does is record attributes into the CIB about how many virtual machines and containers are currently running on the node. and how does it find out? it uses systemd machinectl, no cap. π§
sample output, for the visual learners:
machines: 5
that's it. that's the whole vibe. β¨
π SUPPORTED PARAMETERS π
pidfileβ the PID file, bestie. it's optional, it's a string, and it defaults to/run/resource-agents/MachineInfo-RESOURCE_IDπ«Άdelayβ the interval that lets the values stabilize before we go believing them. optional, string, default"0s". give it a lil breathing room, she deserves it π
π SUPPORTED ACTIONS π
this resource agent supports the following actions (operations), and yes we're going through every single one because they all matter:
startβ starts the resource. suggested minimum timeout:20sβstopβ stops the resource. suggested minimum timeout:20sπ (not really, it's fine, i just love that emoji)monitorβ performs a detailed status check. suggested minimum timeout:20s. suggested interval:60sπ₯ this is the one that keeps checking in on things, main character energy fr frmeta-dataβ retrieves resource agent metadata (internal use only, so like, don't touch, it's not for you π). suggested minimum timeout:5svalidate-allβ performs a validation of the resource configuration. suggested minimum timeout:20sβ
π EXAMPLE CRM SHELL π
here's an example config for a machine-info resource using the crm(8) shell, copy it exactly bestie, character for character:
primitive p_machine-info ocf:heartbeat:machine-info \
op monitor timeout="20s" interval="60s"
π EXAMPLE PCS π
and here's the same energy but for pcs(8):
pcs resource create p_machine-info ocf:heartbeat:machine-info \
op monitor timeout="20s" interval="60s"
π SEE ALSO π
- http://clusterlabs.org/ β go look, iykyk
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors) β collective slay, honestly π«Ά
heads up bestie: this page is from resource-agents version UNKNOWN, dated 04/08/2026. that's the whole thing! go forth and register those machines, you absolute icon ππ β¨
π¦ where this page comes from
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms