- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hp-ux software depots
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
тАО10-01-2001 09:28 AM
тАО10-01-2001 09:28 AM
Site1
servera
software depot
|
| (WAN)
V
Site2
serverb
software depot
Servera is the primary depot.
Serverb is the alternate depot.
Is there an easy way to keep these depots synchronized? We swcopy/swremove -d to the primary, then we swcopy/swremove -d to the alternate... however, we sometimes miss the second swcopy/swremove -d leaving the two depots unsynchronized.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2001 10:11 AM
тАО10-01-2001 10:11 AM
Re: hp-ux software depots
I don't think there is any easy way to synchronize the two depots.
It has to be done through the hard way only on both.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2001 11:24 AM
тАО10-01-2001 11:24 AM
Re: hp-ux software depots
swremove and swcopy both have the ability to hit multiple "targets" (hosta:/targetdir hostb:/targetdir).
You can also set up the /var/adm/sw/defaults.hosts file, but I'm not sure if this will force swcopy and swremove to operate on the default hosts. I guess it's something I need to play with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2001 10:13 PM
тАО10-01-2001 10:13 PM
SolutionI may be missing something obvious here but would a 'swlist -l depot' and an 'rcp -pr' followed by swreg of appropriate depots not synchronize the servers. [with appropriate commands for removal of depots also].
I know I've over simplified this but would this suffice for your application or do you need something tidier than this? This may depend on just how big your depots are and how many you have.
Of course a removal of modifed depots on serverb and another swcopy from servera would also do this.
Not much help perhaps.
Regards,
PK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2001 11:05 PM
тАО10-01-2001 11:05 PM
Re: hp-ux software depots
2 ideas :
1) use remsh commands for example, if you
want to delete a product :
#!/bin/sh
swremove .... # in local
remsh host -l user "swremove ..." # remote
You can use this method for all of sw commands
swpackage is a swpackage in local and a
copy for the remote site, ....
2) Think you can make action remotely with
sw commands, so you can swcopy, swremove..
on a remote site. Just make script to do
2 actions instead of one.
HTH
Herv?