Using SWA to automatically download Definite and Relevant patches into depot (109 Views)
Reply
Advisor
Dave van Nierop
Posts: 34
Registered: ‎05-15-2001
Message 1 of 5 (109 Views)
Accepted Solution

Using SWA to automatically download Definite and Relevant patches into depot

Hi,

We are trying to find a way to have SWA automatically download definate and relevant patches into a bundle for install. We are using the SWA command with the following switches "CRIT PCW PW QPK SEC"

Thanks in advance.

Dave
HP Pro
SoorajCleris
Posts: 886
Registered: ‎12-19-2008
Message 2 of 5 (109 Views)

Re: Using SWA to automatically download Definite and Relevant patches into depot

Hi Dave,

You can use the following commands,

Remeber , you should have connection to ITRC.hp.com


#swa report -x analyzers='CRIT PCW PW QPK SEC'

else

#swa report -a CRIT -a PCW -a PW -a QPK -a SEX

Then it will create a report in the current folder, if your server doesnt have access to ITRC it will throw an error while trying to download the database file.

Once you prepared the inventory , you can see the file in PWD. it will give you an HTML report, you can check whihc and all are the patches installed and which and all are suggested.

Then you can use

swa get -t mydepot -x allow_existing_depot=true

which will download the patches and create a depote and publish it.

once done, you can isntall the bundle using DRD or normal swinstall!!!

Regards,
Sooraj

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Honored Contributor
Doug O'Leary
Posts: 812
Registered: ‎05-25-2005
Message 3 of 5 (109 Views)

Re: Using SWA to automatically download Definite and Relevant patches into depot

Hey;

This thread, http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1312453, details some scripts I wrote as wrappers to swa that allow you to do a full patch analysis on any number of hosts, download the patches, and stage them in OS dependent repositories.

I have to say again, swa is a very decent tool. I am quite impressed.

Doug O'Leary

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Honored Contributor
Bob E Campbell
Posts: 764
Registered: ‎03-31-2004
Message 4 of 5 (109 Views)

Re: Using SWA to automatically download Definite and Relevant patches into depot

Thanks Doug! I will share your good thoughts with the team.

Sooraj, I have to admit I have been searching the code for the "SEX" analyzer, but it keeps coming up "SEC" I am afraid ;-)

Dave, the good news is that I cannot think of a case in which a patch would be associated with an Unknown DC. There will be bulletins that require more than one action, but I would expect a mixture of D and R for them.
Honored Contributor
VK2COT
Posts: 921
Registered: ‎01-17-2006
Message 5 of 5 (109 Views)

Re: Using SWA to automatically download Definite and Relevant patches into depot

Hello,

I teach HP-UX around the clock (around many other jobs I have at HP).

Based on Doug's original script, I did a bit more work and the results are here:

http://www.circlingcycle.com.au/Unix-sources/HP-UX-SWA-global-audit.sh.txt

And I gave credit to Doug as he deserves it :)

Indeed, when I show SWA to students and
customers, they are, without any hesitation,
impressed. Especially since it is easy,
free, and secure (most of other vendors
require contact for access to patches).

I even added option to download patches
from previous catalog versions (see the script). One of the critical customers
asked for such an option and I designed it
by running the script as cron job with
special flag.

One of the suggestions that my customers
always ask for is better dealing with UNBUNDLED products (like ONC).

Anyway, good luck and enjoy using it.
Works fine.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
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.