- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Verifying an installed file on HPUX
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
тАО08-15-2007 11:56 PM
тАО08-15-2007 11:56 PM
I want to check if an installed binary on the HPUX has been installed correctly.
For example, I want to validate that the binary "/usr/bin/passwd" is the correct size, has the correct checksum and the correct permission bits set.
In Linux, I can check this with "rpm -Vif
How can I do this on HPUX?
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 12:20 AM
тАО08-16-2007 12:20 AM
Re: Verifying an installed file on HPUX
Check 'man swverify'
- Tags:
- swverify
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 12:28 AM
тАО08-16-2007 12:28 AM
Re: Verifying an installed file on HPUX
I did this, but for the life of me, I cannot figure out the correct command line arguments to get the information I need.
Anyone have an example?
Thanks again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 01:12 AM
тАО08-16-2007 01:12 AM
Re: Verifying an installed file on HPUX
To list the filesets and fix any incorrect permission / ownership issues:
# swlist -l file | grep "/usr/bin/ftio"
OS-Core.SYS2-ADMIN: /usr/bin/ftio
# swlist -l file | grep "/usr/bin/iostat"
OS-Core.SYS2-ADMIN: /usr/bin/iostat
# swlist -l file | grep "/usr/bin/mt"
OS-Core.SYS2-ADMIN: /usr/bin/mt
# swverify -v -x fix=true OS-Core.SYS2-ADMIN
hope it help.
WK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 01:22 AM
тАО08-16-2007 01:22 AM
Re: Verifying an installed file on HPUX
What I would like to do is to display the attributes of a file itself. For example, in the Solaris world, I can do this:
bash-2.05$ pkgchk -l -p /usr/bin/passwd <-- This command queries the database w.r.t the "passwd" file
Pathname: /usr/bin/passwd
Type: regular file
Expected mode: 6555 <-- These permission bits map exactly to what the actual is: -r-sr-sr-x
Expected owner: root
Expected group: sys
Expected file size (bytes): 21964 <-- The files expected byte size matches with the actual byte size.
Expected sum(1) of contents: 20849 <-- More importantly, does the digital signature of this file match? See below.
Expected last modification: Apr 06 18:01:14 2002
Referenced by the following packages:
SUNWcsu
Current status: installed
How can I retrieve the same info from the "sw" commands?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 02:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 02:48 AM
тАО08-16-2007 02:48 AM
Re: Verifying an installed file on HPUX
It's ugly. It takes a long time. But it works.
Thank you very kindly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 02:51 AM
тАО08-16-2007 02:51 AM
Re: Verifying an installed file on HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 04:10 PM
тАО08-16-2007 04:10 PM
Re: Verifying an installed file on HPUX
>What I would like to do is to display the attributes of a file itself.
swverify will tell you what's wrong.
>JRF: First find the fileset in which the file resides:
>It's ugly. It takes a long time.
The following is a faster. And using -a can make it prettier.
If you are root, you can do this faster with:
# find /var/adm/sw/products -name INFO -exec grep -l /usr/bin/passwd
/var/adm/sw/products/OS-Core/UX2-CORE/INFO
/var/adm/sw/products/PHCO_31616/UX2-CORE/INFO
/var/adm/sw/products/PHCO_32149/UX2-CORE/INFO
Then you do:
swlist -a path -a type -a size -a cksum -a mode -a uid -a gid -a owner -a group \
-a mtime -a link_source -l file \*.UX2-CORE | \
grep -e /usr/bin/passwd -e chfn
I found that passwd is a hardlink to chfn, so I added both
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2007 04:30 PM
тАО08-16-2007 04:30 PM
Re: Verifying an installed file on HPUX
# find /var/adm/sw/products -name INFO -exec grep -l /usr/bin/passwd +