On an HP-UX system, you can use the "swlist" command to check if a specific security patch has been applied or not.
Here's the general procedure:
Open a terminal window and log in as the "root" user.
Type the following command to list all patches and their status:
swlist -l patchSource:www.lautturi.com
This will display a list of all patches installed on your system, along with their name, version, and patch ID.
swlist -l patch | grep PHKL_12345
Replace "PHKL_12345" with the patch ID of the patch you want to check. If the patch is listed in the output, it has been applied to your system. If it is not listed, it has not been applied.
Note: The "swlist" command is a part of the "Software Distributor" (SD) utility, which is used to manage software packages on HP-UX systems. The patch ID is a unique identifier that is assigned to each patch by HP. You can find the patch ID of a specific patch by searching for it on the HP website or by contacting HP Support.