Using shell environment variables in custom PowerHA scripts

You can use shell environment variables in custom controller scripts, custom monitoring scripts, cluster event scripts, or other custom scripts used in PowerHA® SystemMirror®.

When you write your controller scripts, custom monitoring scripts, cluster event scripts, or other custom scripts, none of the shell environment variables that are defined in the /etc/environment file are available to your program. If you need to use any of these variables, you must explicitly source them by including the following line in your script:
. /etc/environment