Operating System - HP-UX
1834793 Members
2629 Online
110070 Solutions
New Discussion

Re: Removing unwanted entries from SD

 
Mohan Nathan
Occasional Advisor

Removing unwanted entries from SD

Hi all,

ive got some old servers which have been upgraded to latest patch bundles and diagnostics, and some new servers built with them, but the old servers still list the old bundles when I do an swlist -l bundle. Anyway to tidy them up so they only show the latest bundles ?
13 REPLIES 13
Stefan Farrelly
Honored Contributor

Re: Removing unwanted entries from SD


If youre absolutely sure these old bundle entries from swlist -l bundle are not used and just want to change it for asthetic reasons you can always do;

swremove .

Not the . at the end of the product - this means remove the entry only but none of its contents. Always do a preview with -p first and check it lists its only going to delete the product/bundle entry and nothing else.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Helen French
Honored Contributor

Re: Removing unwanted entries from SD

Hi Mohan:

You can use this command:

# cleanup

Check the man pages for more details. This will remove all old unwanted patches from the system. Normally when installing new patch bundles, the older ones get over-writed.

HTH,
Shiju
Life is a promise, fulfill it!
Clemens van Everdingen
Honored Contributor

Re: Removing unwanted entries from SD

Hi,

If you are going to remove software, you could use just swremove and select from the gui what you want to remove.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Craig Rants
Honored Contributor

Re: Removing unwanted entries from SD

Mohan,
I would suggest that you want to have a all the info about past releases, this information may be useful to you at a given point, I had to use it yesterday to solve a patching problem.

Up to you however,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Sanjay_6
Honored Contributor

Re: Removing unwanted entries from SD

Hi Mohan,

Have you tried the patch cleanup utility. The utility is available as a patch,

patch PHCO_24347 for 11.0 and patch PHCO_20824 for 10.20.

Hope this helps.

Regds
Mohan Nathan
Occasional Advisor

Re: Removing unwanted entries from SD


I dont actually want to remove any products or patches - just tidy up the way it looks using swlist -l bundle.

For example, a server built with an old 11 install CD shows an HWCR bundle, a Nov 99 ACE bundle, a GR bundle, but with the latest Mar02 bundles I have a QPK1100 bundle and an HWE1100 bundle, can I simply remove the entries for the older bundles to make it look nice and only show the Mar02 stuff when I do an swlist ?
Clemens van Everdingen
Honored Contributor

Re: Removing unwanted entries from SD

Hi,

Be carefull with the cleanup command !

If you use it be aware of the fact that you will not be able to go back to previous patches.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Victor_5
Trusted Contributor

Re: Removing unwanted entries from SD

You can use swremove to remove those patches you want to remove, but for some reasons, maybe there are some patches not in the swremove list, you can try to use swmodify
swmodify -x patch_commit=true patch_name

Since some patches have dependencies, it is not a very easy job to remove the old patch, sometimes you need to do some research for those histories.

Always run swverify or check_patches after you remove and check the generated reports for any warning or error.

Good luck!
Clemens van Everdingen
Honored Contributor

Re: Removing unwanted entries from SD

Hi,

OK if you do not want to remove anything, leave the output as it is.

This will help you in a later staium to resolve any issues with patches/software.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Stefan Farrelly
Honored Contributor

Re: Removing unwanted entries from SD


A nice newly built server with the latest March02 bundles on should look list this from an swlist -l bundle;

HPUXEng64RT B.11.00.01 English HP-UX 64-bit Runtime Environment
HWE1100 B.11.00.0203.5 Hardware Enablement Patches for HP-UX 11.00, March 2002
OnlineDiag B.11.00.20.09 HPUX 11.0 Support Tools Bundle, Mar 2002
QPK1100 B.11.00.56.5 Quality Pack for HP-UX 11.00, March 2002
UXCoreMedia B.11.00.02 HP-UX Media Kit (Reference Only. See Description)

If you have an older server youve updated with the Mar02 stuff you can certainly remove all those old entries;

swremove XSWGR1100.
swremove XSWHWCR1100.

Theyve all been superceeded, bundle wise, by the QPK and HWE bundles anyway. And you can remove the old ACE (Nov 99) bundle also.


Im from Palmerston North, New Zealand, but somehow ended up in London...
Mohan Nathan
Occasional Advisor

Re: Removing unwanted entries from SD


Thanks for your help Stefan, exactly what I wanted.

I have no idea why so many replies talked about patches - did they not read my original question properly ?? I was asking about removing bundle entries from SD, not removing patches!!
David Bell_1
Honored Contributor

Re: Removing unwanted entries from SD

Stefan,

Just as a follow up question, isn't the Nov 99 ACE bundle a 'required' baseline bundle even with the QPK and HWE?

Thanks,

Dave
Clemens van Everdingen
Honored Contributor

Re: Removing unwanted entries from SD

Mohan,

You spoke about patch bundles yourself !!
Second line first word !

About assigning points.
If the answer is not OK assign N/A.
Then everyone knows he is on the wrong way.
If it looks ok a little bit or very good assign from 1 to 10.

Regards,
C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !