- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I compare the patches list on two syst...
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
03-30-2007 01:27 AM
03-30-2007 01:27 AM
How can I compare the patches list on two systems ?
I need to get the exact difference between two HP-UX B.11.11 systems, and I am stuck in the comparison between products and patches.
How can I get the exact lists of differences ? Is there a command or a script that is capable of it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 01:42 AM
03-30-2007 01:42 AM
Re: How can I compare the patches list on two systems ?
Run a swlist on both systems and diff the files.
# swlist -l product >> /tmp/patch_list_system1
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 01:43 AM
03-30-2007 01:43 AM
Re: How can I compare the patches list on two systems ?
- run swlist with suitable arguments to get a listing of software items.
- pipe the output to "sort" to alphabetize it and direct the sorted output to a file. Do this on both hosts.
- move both files to the same host and run "diff file1 file2". As both files are sorted alphabetically, any differences will reveal things that are different or missing from one server or the other.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 01:46 AM
03-30-2007 01:46 AM
Re: How can I compare the patches list on two systems ?
and welcome to the forums !
You can run the swlist command for different levels (product or patch).
That should give you the info you want.
See "man swlist". To compare see "man diff", "man comm"
Please read:
http://66.34.90.71/ITRCForumsEtiquette/after.html
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 03:42 AM
03-30-2007 03:42 AM
Re: How can I compare the patches list on two systems ?
cat server1_patch.out server2_patch.out | sort | uniq -c
you should see numbers before each patch. If you see the number 2 then it is on both machines, if you see the number 1 then it is only installed on one of the machines. finding out which machine it is on is rather trivial. But there is always more than one way to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 04:14 AM
03-30-2007 04:14 AM
Re: How can I compare the patches list on two systems ?
You can use the "show_patches -s" for patches that have been superseeded. or use show_patches -a for active patches. But just like they stated above swlist will also work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 05:22 PM
03-30-2007 05:22 PM
Re: How can I compare the patches list on two systems ?
(No need to use cat here. sort takes multiple files.)
Instead of using uniq -c, you can sort both lists and use comm(1):
$ comm -23 s1 s2 # would give items unique to 1
$ comm -13 s1 s2 # would give items unique to 2
$ comm -12 s1 s2 # would give common items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2007 02:32 PM
03-31-2007 02:32 PM
Re: How can I compare the patches list on two systems ?
You can use below commands
swlist -l products > /tmp/patch_list_sernam
on both the servers where sernam is server name for reference.
after this just copy one of the above file from either server to other one
through rcp,ftp or sftp
ex rcp server1# severname2:/tmp/patch_list_sernam /tmp/
then use diff command
diff /tmp/patch_list_sernam1 :/tmp/patch_list_sernam2
It will give disired result.
Regards
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2007 01:41 AM
04-01-2007 01:41 AM
Re: How can I compare the patches list on two systems ?
Thanks once again for adding your two cents to my solution. In the end if your solution works, that's great. I don't need your comments directed towards me. Dhote is the one with the issue. I don't have a problem comparing patches. And as I stated above, there is more than one way to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2007 12:52 PM
04-01-2007 12:52 PM
Re: How can I compare the patches list on two systems ?
There is a patch for HPUX 11.23 that delivers a tool called sysdiff that's exactly what you need. (delivered as /usr/contrib/sysdiff) It's PHCO_32220, HP-UX Patch Tools.
sysdiff takes as input the 2 machine names you want to compares, then goes out and compares the packages and patches between the 2, in this manner: (The names have been changed to protect the innocent.)
Acquiring data from col
applied patches.................DONE
superseded patches..............DONE
installed products..............DONE
Acquiring data from elm
applied patches.................DONE
superseded patches..............DONE
installed products..............DONE
Contrib-Tools
col elm description
------------- ------------- ------------------------------------------------
B.11.11.12.09 B.11.11.15.13 Contributed Tools
------------- ------------- ------------------------------------------------
EMS-Config
col elm description
------------- ------------- ------------------------------------------------
A.03.20.01 A.04.00.02 EMS Config
------------- ------------- ------------------------------------------------
PHSS_28844 EMS & HA Monitors (A.03.20.01) patch
PHSS_30754 EMS & HA Monitors (A.04.00.02) patch
EMS-Core
col elm description
------------- ------------- ------------------------------------------------
A.03.20.01 A.04.00.02 EMS Core Product
------------- ------------- ------------------------------------------------
PHSS_30754 EMS & HA Monitors (A.04.00.02) patch
EMS-Core
col elm description
------------- ------------- ------------------------------------------------
A.04.00.01 N/A EMS Core Product
------------- ------------- ------------------------------------------------
EMS-KRMonitor
col elm description
------------- ------------- ------------------------------------------------
A.11.11.04 A.11.11.05 EMS Kernel Resource Monitor
------------- ------------- ------------------------------------------------
Sup-Tool-Mgr
col elm description
------------- ------------- ------------------------------------------------
B.11.11.09.11 B.11.11.15.13 Support Tools Manager for HPUX systems
------------- ------------- ------------------------------------------------
Sup-Tool-Mgr
col elm description
------------- ------------- ------------------------------------------------
B.11.11.12.09 N/A Support Tools Manager for HPUX systems
------------- ------------- ------------------------------------------------
The tool just needs to have remote swlist access to your machines. (Can be any box, really.) The detail for PHCO_32220 list an HPUX 11.11 equivilant, PHCO_32219, but that doesn't appear to be available right now. (I run sysdiff from a single HPUX 11.23 box only for all my other machines.)
As far as a version for HPUX 11.11 goes, we would have to see if Bob Campbell shows up in the morning and sees this post, he could speak to it for us. (I will see if he's around and point it out to him.)
Do you have an HPUX 11.23 machine you can install this on and try?
Hope it helps
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2007 04:32 PM
04-01-2007 04:32 PM
Re: How can I compare the patches list on two systems ?
Sysdiff is a little shell script that flew out under the radar and that has not had a lot of effort since then. I know of at least one defect that needs tending, I could probably make an 11.11 version available for "beta users"...
Let me at least return to Colorado first!
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 01:09 AM
04-04-2007 01:09 AM
Re: How can I compare the patches list on two systems ?
how are you getting on with this ?
Please read:
http://66.34.90.71/ITRCForumsEtiquette/after.html
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.