1832282 Members
1922 Online
110041 Solutions
New Discussion

swa question

 
SOLVED
Go to solution
navin
Super Advisor

swa question

How can i get the existing patch bundle and patch list using swa utility .
thanks
Learning ...
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: swa question

Hi Navin:

You should find a template as:

# /etc/opt/swa/swa.conf.template

I begin with a '.swa.conf' file that looks like this:

user_dir = /var/opt/swa/.swa
analyzers = QPK CRIT PCW SEC
catalog_max_age = 0
inventory_max_age = 0
html_report = ~/.swa/report/swa_report.html
allow_existing_depot = false

...This allows me to generate a report and later collect the Quality Packs, critical patches, patches with warnings and security-related information for a server into a single depot for installation:

# swa clean all -v

...to cleanup from previous runs...

# swa report

...which builds '.swa/report/swa_report.html' --- the analysis.

# swa get -v -t /patches/swdepot

...which fetches the QPK patch bundles, replacement patches *and* any other patches as performed by the 'swa report' above. The downloaded software is cached in '/var/opt/swa/cache'. A log 'var/opt/swa/swa.log' is created. After the software is downloaded, it is copied to the 'swdepot' depot and registered. My '/patches' directory is a mounted filesystem of about 4GB.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: swa question

Hi (again) Navin:

By the way, you have responses to your earlier question on using SWA that you haven't addressed:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1297006

Regards!

...JRF...
navin
Super Advisor

Re: swa question

JRF,
Such a nice doc.Thank you.
Actually i would like to get a decent report of already installed and available patch in the system using swa utility. is it possible.
thanks
Learning ...
James R. Ferguson
Acclaimed Contributor

Re: swa question

Hi (again) Navin:

> Actually i would like to get a decent report of already installed and available patch in the system using swa utility.

Use:

# show_patches -a -s

# swlist

# swlist -l fileset

Regards!

...JRF...
Bob E Campbell
Honored Contributor

Re: swa question

The SWA team has considered inventory-based reporting. Could you show me what you would want a report or reports to look like? I assume that it is different than the standard swlist/show_patches types. Perhaps a listing of products with columns for current/recommended patches applicable?