Highlighted
Trusted Contributor.
Trusted Contributor.
164 views

Multiple "on_host" post execs in one list

Hi,

i have to start multiple scripts on different hosts as a post exec.
I know i can do one "POSTEXEC" in the header of the datalist and also multiple "-post_exec" for filesystems but it looks like a -post_exec is not compatible with -on_host. Is there a way to do multiple POSTEXEC -on_host or get -post_exec -on_host to work?

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Hello @sofromt

As I know there is no way to run more than one post-exec script. But I know that you can use ssh or Remote cmd command in the script to run the instructions needed. 

Regards,  

Andres Fallas Salazar
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a LIKE by clicking on the bottom at the left of the post and show your appreciation.
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Hello @sofromt,

This depends on what you need. Remember you can have pre/post-exec in a file system backup:

  1. When the session starts/ends. with the "on_host" capability

    2019-08-23_08h04_46.png
  2. At the start/end of each client system selected in a  backup spec automatically to each client

    2019-08-23_08h04_46.png
  3. At the start/end of multiple clients based on your requirements, added manually in Backup Object summary

    2019-08-23_08h06_11.png

If you have even more specific requirements create a master script to be executed on the Cell Manager doing the required activities remotely using SSH from Cell Manager. If the script is becoming large and you're running DP 10.x consider placing the following omnirc option on the host executing the script.

OB2RUNSCRIPT=1

Regards,
Sebastian Koehler

---
Please use the Like button below, if you find this post useful.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.