1833568 Members
3411 Online
110061 Solutions
New Discussion

Usage of swlist

 
SOLVED
Go to solution
Irfan Ahmed_1
Advisor

Usage of swlist

Hi all,

I want to know the difference between

swlist -l product -x show_superseded_patches=false

and

swlist -x show_superseded_patches=false

Thanks
-Irfan

8 REPLIES 8
Mobeen_1
Esteemed Contributor

Re: Usage of swlist

Irfan,
Look at the url below and that should give you all the required information

http://mirror.math.nankai.edu.cn/mirror/www.uwsg.indiana.edu/usail/swlist.1.html

regards
Mobeen
Alex Lavrov.
Honored Contributor

Re: Usage of swlist

-x Set the session option to value and override the default value

You set the option as the default for the whole session. Without it it's valid only for a current execution.

In "man swlist" you can find detailed information.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
RolandH
Honored Contributor
Solution

Re: Usage of swlist

In this both cases there is no different.

The first command shows you just all installed products.

The second command shows you all installed bundles and products that are not included in a bundle.

So the option show_superseded_patches=false
ist a default option. The same output is created with
swlist -l product and
swlist

But if you use the same commands with

show_superseded_patches=true
you will see all patches witch are applied and which patch is superseded.

If all patches installed on your system are contained in a bundle you will see no different between
swlist and
swlist -x show_superseded_patches=true



Roland
Sometimes you lose and sometimes the others win
Cem Tugrul
Esteemed Contributor

Re: Usage of swlist

Hi Irfan,

-x option=value
â Set the option to specified value.
â The default behavior of swlist is to show only the latest patches installed on a system. It
does not show patches that have been superseded. To list superseded patches, set the
show_superseded_patches option to true:
swlist -x show_superseded_patches=true
â Specify multiple -x options if needed.

By default, the SD-UX command swlist does not show superseded patches, but you can set it to
show them:
swlist -l patch -x show_superseded_patches=true
You can also use the HP-UX Patch Tool show_patches (available via PHCO_18519 and its
superseding patches) to show superseded patches. To show superseded
Our greatest duty in this life is to help others. And please, if you can't
RolandH
Honored Contributor

Re: Usage of swlist

I forget something.

The option show_superseded_patches makes only sense with

swlist -l patch -x show_superseded_patches=true


Roland
Sometimes you lose and sometimes the others win
Cem Tugrul
Esteemed Contributor

Re: Usage of swlist

also have a look;
http://docs.hp.com/en/5991-0686/index.html
Our greatest duty in this life is to help others. And please, if you can't
Steven E. Protter
Exalted Contributor

Re: Usage of swlist

cleanup -p -c 1

Will in preview mode list all superseded patches.

Won't change anything unless you drop the -p

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Irfan Ahmed_1
Advisor

Re: Usage of swlist

Hi,

Thanks everyone.
The difference between

swlist -l product -x show_superseded_patches=false

and

swlist -x show_superseded_patches=false

is the former swlist takes into consideration the patches which are part of some bundle & the latter ignores it.

Thanks
-Irfan