---
name: "OCF_Functions"
section: "3pm"
platform: "linux"
package: "resource-agents-paf"
version: "2.3.0-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/OCF_Functions"
---

# OCF\_Functions(3pm)

helper subroutines for OCF agent

## NAME

OCF\_Functions - helper subroutines for OCF agent

## SYNOPSIS

```
  use FindBin;
  use lib "$FindBin::RealBin/../../lib/heartbeat/";

  use OCF_Functions;
```

## DESCRIPTION

This module has been ported from the ocf-shellfuncs shell script of the resource-agents project. See \<https://github.com/ClusterLabs/resource-agents/\>.

## VARIABLE

The only variable exported by this module is `"__OCF_ACTION"`.

## SUBROUTINES

Here are the subroutines ported from ocf-shellfuncs and exported by this module:

- ha\_debug

  - ha\_log

  - hadate

  - ocf\_is\_clone

  - ocf\_is\_ms

  - ocf\_is\_probe

  - ocf\_is\_root

  - ocf\_is\_true

  - ocf\_is\_ver

  - ocf\_local\_nodename

  - ocf\_log

  - ocf\_exit\_reason

  - ocf\_maybe\_random

  - ocf\_ver2num

  - ocf\_ver\_complete\_level

  - ocf\_ver\_level

  - ocf\_version\_cmp

  - set\_logtag

  Here are the subroutines only existing in the perl module but not in the ocf-shellfuncs script:

- ocf\_notify\_env

  ## COPYRIGHT AND LICENSE

Copyright (C) 2016: Jehan-Guillaume de Rorthais and Mael Rimbault.

Licensed under the PostgreSQL License.
