Patches
Showing results for 
Search instead for 
Do you mean 

how to list products/depots/bundles within specified date using swlist

Occasional Contributor

how to list products/depots/bundles within specified date using swlist

[ Edited ]

how to list products/depots/bundles within specified date using swlist.

 

 

P.S. this thread has been moevd from HP-UX>General to HP-UX> patches - HP Forums moderator

5 REPLIES
Highlighted
Trusted Contributor Trusted Contributor

Re: how to list products/depots/bundles within specified date using swlist

HI shyam,

swlist -l root -->shows the root level (roots on the specified target hosts)
swlist -l bundle ->shows only bundles
swlist -l product --> shows only products
swlist -l subproduct shows products and subproducts
swlist -l fileset shows products, subproducts and filesets
swlist -l file shows products, subproducts, filesets, files and numbers (used in software licensing).


use this with grep options to sort....
Frequent Advisor

Re: how to list products/depots/bundles within specified date using swlist

use this.
swlist -a create_time -a create_date
Acclaimed Contributor Acclaimed Contributor

Re: how to list products/depots/bundles within specified date using swlist

You can use -l and -a create_date as others have mentioned. Did you then want to filter the output based on the date?
Occasional Contributor

Re: how to list products/depots/bundles within specified date using swlist

We are looking to create a utility that helps to display the software installed and software removed using date as a parameter.
Acclaimed Contributor Acclaimed Contributor

Re: how to list products/depots/bundles within specified date using swlist

>We are looking to create a utility

You would probably want to use -a create_time so you can get a sortable date. Then use something like ctime(3) to convert it to a user understandable date.

There is also -a mod_time.

I'm not sure how you can track software removed, because it is just gone. Unless you are thinking something being patched, so the "bad" stuff is "removed".

In any case, you should look at sd(4).