Re: how to list products/depots/bundles within specified date using swlist (68 Views)
Reply
Occasional Contributor
SHYAM SUNDER_1
Posts: 5
Registered: ‎06-21-2007
Message 1 of 6 (68 Views)

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

Trusted Contributor
Reshma Malusare
Posts: 324
Registered: ‎01-10-2007
Message 2 of 6 (68 Views)

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
Nagashankarp
Posts: 45
Registered: ‎09-25-2006
Message 3 of 6 (68 Views)

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

use this.
swlist -a create_time -a create_date
Acclaimed Contributor
Dennis Handly
Posts: 25,286
Registered: ‎03-06-2006
Message 4 of 6 (68 Views)

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
SHYAM SUNDER_1
Posts: 5
Registered: ‎06-21-2007
Message 5 of 6 (68 Views)

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
Dennis Handly
Posts: 25,286
Registered: ‎03-06-2006
Message 6 of 6 (68 Views)

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).
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.