- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Find corrupt packages installed on system
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
Discussions
Discussions
Forums
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
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
тАО11-16-2009 03:19 AM
тАО11-16-2009 03:19 AM
Find corrupt packages installed on system
I want to find the corrupt packages installed on the system.
With corrupt my limitation is only to missing files.
swverify gives the details. However, it displays package consistency based on size, mtime, missing, and many other parameters.
I want to find the corrupt packages automatically. At the end of swverify it gives a log of swjob, parsing it for missing files does the trick. But this is a manual step.
How can this be obtained automatically.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2009 04:43 AM
тАО11-16-2009 04:43 AM
Re: Find corrupt packages installed on system
> At the end of swverify it gives a log of swjob, parsing it for missing files does the trick. But this is a manual step.
I would hope that corrupt filesets would be a rare exception. They should be if you are following good practices.
What's hard about writing a script to parse the 'swjob' for missing files? I understand that launching it is a "manual step", but again, how often do you expect problems?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2009 05:12 AM
тАО11-16-2009 05:12 AM
Re: Find corrupt packages installed on system
I want to add that logic in the installer which detects if pre-requisites packages are missing some files, issue a warning and exit.
This has to be automatic now, any tips?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2009 06:02 AM
тАО11-16-2009 06:02 AM
Re: Find corrupt packages installed on system
I'm not sure how it is possible for swinstall to be missing files.
Perhaps all you need to do is find the "state" of each fileset?
swlist -l fileset -a state \*
You should replace \* by your list of SD products/bundles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2009 10:09 PM
тАО11-16-2009 10:09 PM
Re: Find corrupt packages installed on system
swlist -l fileset -a state Test
Test.Test configured
Gives the output as "configured"
though swverify shows errors and on going in the details of swjob, it shows missing file.
What can i conclude with "state" option?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2009 02:54 AM
тАО11-17-2009 02:54 AM
Re: Find corrupt packages installed on system
What type of consistency are you looking for? If you have random root attacks on your product, you'll need to do swverify on the whole thing.
I don't think this is worth it.
You may want to have a script that users can run if something totally unexpected happens and that will run swverify and then look at the swjob output or directly from /var/adm/sw/swverify.log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2009 05:42 AM
тАО11-17-2009 05:42 AM
Re: Find corrupt packages installed on system
Okay, can i somehow automatically parse the swjob output that comes after swverfiy. If I can achieve this, i am good to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2009 03:02 PM
тАО11-17-2009 03:02 PM
Re: Find corrupt packages installed on system
Try the attached script I banged out. I flag the files that SD expects to change. It can take as an argument anything that is swlist-able, but defaults to everything.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2009 03:04 PM
тАО11-17-2009 03:04 PM
Re: Find corrupt packages installed on system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2009 09:39 PM
тАО11-17-2009 09:39 PM
Re: Find corrupt packages installed on system
Some of our filesets are pretty large and checking for each of the file will be very time consuming.
Doesn't look an efficient approach to me.