1751695 Members
4783 Online
108781 Solutions
New Discussion юеВ

Re: HP command

 
Saleem H. Kazmi
Occasional Contributor

HP command

What command is used to know if a patch has been installed on a system or not. If I want to know that "phk_8693" has been installed on the machine. How I would verify that?
7 REPLIES 7
Kofi ARTHIABAH
Honored Contributor

Re: HP command

use the swlist command - you can do a man on swlist;

# swlist -v | grep -i PHKL_????

or do a man on swverify
nothing wrong with me that a few lines of code cannot fix!
Manju Kampli
Trusted Contributor

Re: HP command

you can use swlist command to list all the softwares installed on the system.
swlist -l fileset -a state would list all the file sets including the patches and their state. installed/configured. For a proper installation the state should be configured.

you can grep the output to a patch which ever you need.
/usr/sbin/swlist -l fileset -a state |grep -i phkl_8693
Never stop "LEARNING"
Christian Haug
Advisor

Re: HP command

You can use the swlist command:
# swlist PHKL_8693
Rita C Workman
Honored Contributor

Re: HP command

My personal favorite is:
swlist -l fileset PHKL_86*

Regards,
Rick Garland
Honored Contributor

Re: HP command

As previously stated, swlist -l product | grep PH... would tell you that the patch has been installed.

Do swlist -l fileset -a state and look for configured in the last column. This will tell you that the patch has been properly configured after the installation.
Tim Nelson
Honored Contributor

Re: HP command

swlist PHKL_8693
or for state information
swlist -l fileset -a state PHSS_9397
Kofi ARTHIABAH
Honored Contributor

Re: HP command

I have found that swverify seems to give a more exhaustive indications as to if a patch is insalled or not and how well....

# swverify phkl_8693

should do the trick
nothing wrong with me that a few lines of code cannot fix!