- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Text processing - newbie question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2001 08:23 AM
12-23-2001 08:23 AM
Story is: i've HP UX 11 box where /var is almost full. I know that there is method of deleting superseded patches. I know idea, but to commit patches I need to process output file (swlist -l...) to pass this file to swmodify. List is big (500 entries) so manually this is hard to do. Tasks to do:
- leave only unique entries,
- replace everything after PHXXXXX. with *. I know it can be done with awk and/or sed, grep, etc. but for now I can't handle this. Thanks guys.
Chris
PS Merry Christmas to everyone!!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2001 09:14 AM
12-23-2001 09:14 AM
Re: Text processing - newbie question
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2001 10:41 AM
12-23-2001 10:41 AM
SolutionThe best method to delete superceded patches is to use "cleanup" command.
Take a backup of /var/adm/sw/save to a tape and keep it safe for sometime before you run this command.
This command comes with the patch PHCO_24347, the latest one.
Use cleanup -C 2 to delete the patches that have been superceded twice. You can also preview it with -p switch.
This is equivalent to the command swmodify -x patch_commit
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2001 12:22 PM
12-23-2001 12:22 PM
Re: Text processing - newbie question
All you need to do is run the cleanup command. Typically cleanup -c 1 is all you need and restores the mosdt space. If your patches have been installed for quite a while (and thus you are confident of their integrity) then cleanup -c 1 is the best bet; otherwise -c 2 will leave you with 2 versions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2001 06:14 AM
12-24-2001 06:14 AM
Re: Text processing - newbie question
Run the Cleanup -c 1 command.
This will take all patches that have been superseeded at least once on your system and remove them from the /var filesystem.
We ran this on all of our systems after each patch CD we apply and it averages about 200MB of space per system.
If you haven't run this in a while, you will probably gain anywhere from 250-500MB per system.
Before you run this, run the following:
1) make_tape_recovery or make_recovery -A -C -v (depending on version of ignite you have)
Good luck
Happy Holidays.