Operating System - HP-UX
1833877 Members
2373 Online
110063 Solutions
New Discussion

Re: /var/adm/sw/save/[PATCH_NUMBER]

 
SOLVED
Go to solution

/var/adm/sw/save/[PATCH_NUMBER]

I apologize if this question is basic and / or
redundant and been asked before.

I would like to remove some of the oldest
PATCH folders in the installed patch folders in the /var/adm/sw/save/[PATCH]area.

What are the pros and cons aligned with performing this work...and what is the
'most correct' manner in doing so ?

Thanking the group in advance ..
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: /var/adm/sw/save/[PATCH_NUMBER]

You need to use the cleanup command. Man cleanup for details.


Pete

Pete
Torsten.
Acclaimed Contributor

Re: /var/adm/sw/save/[PATCH_NUMBER]

Please see

http://docs.hp.com/en/B3921-60631/cleanup.1M.html

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tim Nelson
Honored Contributor

Re: /var/adm/sw/save/[PATCH_NUMBER]

cleanup -c 1

Removes all "saved" patches superceeded more than once.

James R. Ferguson
Acclaimed Contributor
Solution

Re: /var/adm/sw/save/[PATCH_NUMBER]

Hi:

Never, never manually muck with(add/remove/modify) the contents of the '/var/adm/sw/save' or '/var/adm/sw/products' directories. As stated, use 'cleanup' to remove superseded patches from '/var/adm/sw/save' and regain space.

If you fool with the contents of the aforementioned directories, you run the risk of putting your server in a state that it cannot be patched.

By the way, "folders" is a term used by Windows. "Directory" is the proper UNIX word.

Regards!

...JRF...

Re: /var/adm/sw/save/[PATCH_NUMBER]


I did spend (a short amount ) of time
on research on the appropriate command,
thinking that the maintenance command
would begin with the letters sw______ ?

I missed the obvious 'cleanup' command

I understand the differentation between
folders and directories and the OS they
represent. My apology to the collective
group of unix admins and experts, an
insult was not intended.

Thank you again for your help.
James R. Ferguson
Acclaimed Contributor

Re: /var/adm/sw/save/[PATCH_NUMBER]

Hi (again) Ronald:

No apology needed regarding either not finding 'cleanup' [I would agree that something like 'swcleanup' or 'sdcleanup' might have been a better name]; nor in your use of "folder" in lieu of "directory".

I pointed (in passing) to "directory" versus "folder" in case you didn't know.

Regards!

...JRF...

Re: /var/adm/sw/save/[PATCH_NUMBER]

Thanks, James
Regards

Re: /var/adm/sw/save/[PATCH_NUMBER]

Use standard maintenance command - cleanup.


Dennis Handly
Acclaimed Contributor

Re: /var/adm/sw/save/[PATCH_NUMBER]

>I did spend time on research on the appropriate command, thinking that the maintenance command would begin with the letters sw_____?

You need more than a short amount. :-)
It's called the kitchen sink, swmodify:
# swmodify -x patch_commit=true PHXX_##### ...

cleanup(1m) is probably easier to remember.