Requirements for scripts to customize SFHA hot fix deployment

Last published : Jul 06, 2026
You can create custom perl scripts to perform tasks that are required before and after installation of a Storage Foundation High Availability (SFHA) hot fix by Patch Installer Add-on.
The perl scripts must meet the following requirements:
  • The script Exit must return 0 for success.
  • The script Exit must return a value other than 0 for failure.
To help you verify that scripts executed successfully, anything printed on STDERR or STDOUT from the script is displayed in the task log details when you install the customized hot fix.
Note: Post-installation scripts are intended for use in cases where hot fixes do not require a reboot. In cases where hot fixes require a reboot, the post-installation script is not executed.
The following are examples showing the content required for using the scripts to customize deployment of Storage Foundation High Availability (SFHA) hot fixes.
Example for pre-installation script:
\# stop relevant applications before the core services are stopped and
     patch is installed

\# exit the script with proper exit code and message.
\# if pre setup fails HF/CP installation will be aborted.

$ret = 0;
if ($ret) # zero exit code indicates success. non-zero indicates error.
{

   my $msg = "some error message indicating what failed";

   print STDERR "Pre setup failed: $msg";

   exit(1);
}
else
{
   print STDOUT "Pre setup successfull";
   exit(0);
}
Example for post-installation script:
\## Post setup script. executed after HF/CP is installed but
    before system reboots (if reboot is required)

\# start relevant applications which were stopped in the pre-setup
    script.

$ret = 0;
if ($ret) # zero exit code indicates success. non-zero indicates error.
{

   my $msg = "some error message indicating what failed";

   print STDERR "Post setup failed: $msg";

   exit(1);
}
else
{
   print STDOUT "Post setup successfull";
   exit(0);
}
More Information
Related information