# Running  an RA script manually from the prompt

**URL:** <https://forums.suse.com/t/running-an-ra-script-manually-from-the-prompt/35364>\
**Category:** SLES High Availability Extension\
**Created:** [November 8, 2020, 7:43pm UTC](https://forums.suse.com/t/running-an-ra-script-manually-from-the-prompt/35364 "2020-11-08T19:43:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![julianrogan](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@julianrogan](https://forums.suse.com/u/julianrogan)\
**Post date:** [November 8, 2020, 7:43pm UTC](https://forums.suse.com/t/running-an-ra-script-manually-from-the-prompt/35364/1 "2020-11-08T19:43:50Z")

</div>

Is it possible to to run an RA script manually. Specifically the SAPHana script. I have executed it with start command as an option but SAP settings were not picked up.

---

<div class="post-metadata">

**Author:** ![strahil](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@strahil](https://forums.suse.com/u/strahil)\
**Post date:** [November 9, 2020, 8:30pm UTC](https://forums.suse.com/t/running-an-ra-script-manually-from-the-prompt/35364/2 "2020-11-09T20:30:08Z")

</div>

You need to :

1. Stop the resource
2. Get the configuration of the resource
3. export the configuration as environment variables. For example, if your resource has the following options:

```auto
option1=AAA opton2=BBB option3=CCC

```

Then you need to export first the OCF\_ROOT:

```auto
export OCF_ROOT=/usr/lib/ocf

```

And then the options themselves:

```auto
export OCF_RESKEY_option1=AAA
export OCF_RESKEY_option2=BBB
export OCF_RESKEY_option3=CCC

```

And then run the script with start/stop/status (the path is based on memories, so use find in /usr/lib/ocf or locate):

```auto
bash -x /usr/lib/ocf/resources.d/<PROVIDER>/resource <start/stop/status>

```

Source: [https://wiki.clusterlabs.org/wiki/Debugging\_Resource\_Failures](https://wiki.clusterlabs.org/wiki/Debugging_Resource_Failures)
