Upgrade > Upgrade the applications from version 9.60 > Creating and applying the production patch

Creating and applying the production patch

Once you have handled all objects requiring reconciliation, you will create a tailored production patch and apply it to your actual production system. This chapter explains what you need to do to create a production patch and apply it to your tailored production Service Manager system.

Creating the production patch

Once you are satisfied with the results of your reconciliation process, you can create a production patch.

Note It is recommended that you back up your database after reconciling differences to prevent unexpected data loss.

Follow these steps to create the production patch:

  1. From the Windows client, log in to your Service Manager server as a System Administrator.
  2. (Optional) You may need to exclude certain records on the production system from being built to the custom upgrade package. To do so, follow these steps:

    1. Click Tailoring > Differential Upgrade > Patch Records to open the Patch Maintenance page.
    2. Select APM from the drop-down list, and then press Enter.
    3. You can update the query definition as required.
    4. Save your changes.
  3. Go to System Administration > Ongoing Maintenance > Upgrade Utility > Create Custom Upgrade.

    The Applications Patch Manager asks you to prepare an area to contain the applications patch files that you will create. This can be referred to as the production patch directory.

    1. Using the standard method for your operating system, create the production patch directory.
    2. Enter a path in the production patch directory. This path must point to a location that the server can access.
  4. Click Next.

    The Applications Patch Manager displays the version you will create the patch for.

  5. Click Next to create the patch.

    The Applications Patch Manager creates the production patch in the Applications Patch Manager production patch directory.

After you test this patch and confirm that it works as desired, you will be able to apply it to your production system.

Testing the production patch

After creating the applications patch for your production system, test it extensively. This will be an iterative process that may require several changes to patch objects and the recreation of production patches. Employ user acceptance testing verification and validate your changes.

Applying the production patch

The steps that you used to apply the out-of-box patch to the copy of your production system are the same steps you need to apply to the production patch that you created in your actual production system.

Note When applying the patch to the production system, you must be the only user logged in to the system.

Follow these steps to apply the patch you created to your production system:

  1. Have all users log out of the server.
  2. Prevent users from logging into your Service Manager server by running the quiesce command from the operating system’s command prompt.

    sm -quiesce:1
  3. Open the sm.ini file. By default, the file is located on the Service Manager server in the C:\Program Files (x86)\Micro Focus\Service Manager\Server\RUN folder.
  4. Add sessiontimeout:60 and ir_disable:1 to this file, and then save your changes.
  5. From the Windows client, use the English language to log on to your Service Manager server as a System Administrator.
  6. Go to System Administration > Ongoing Maintenance > Upgrade Utility > Apply Upgrade.

    Service Manager displays a screen that asks you to input the fully qualified path to the production patch.

  7. Enter the fully qualified path of the production patch directory, and then click Next. The path must be relative to the server, instead of to the client computer, if the client is not installed on the same machine as the server.

    The Applications Patch Manager displays the current version of your applications and the version that will result after you apply the patch.

  8. Confirm that the source and target versions listed match your current production system and the applications patch version, and then click Next to apply the patch.

    When the Applications Patch Manager finishes applying the patch, it displays a message indicating that your system was successfully updated.

  9. Click Finish.
  10. Log out from your Service Manager server, and then log in again.
  11. Allow users to log in to the server by running the sm -quiesce:0 command from the operating system’s command prompt.

  12. Restart the Service Manager server.

Going live after applying the production patch

Any tailored objects that were updated by the application patch are backed up as a revision. If issues are encountered after going live, these objects can be quickly swapped back to their original tailored versions. After a period of time, you may want to delete the old revision objects.