Operating System - HP-UX
1753797 Members
6946 Online
108800 Solutions
New Discussion юеВ

Re: hp-ux software depots

 
SOLVED
Go to solution
Anna_123
New Member

hp-ux software depots

Here's my situation:

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.
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: hp-ux software depots

Hi Anna,

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
harry d brown jr
Honored Contributor

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.
Live Free or Die
Philip Kernohan
Advisor
Solution

Re: hp-ux software depots

Anna,

I 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
It's nice to be important but it's more important to be nice
Herve BRANGIER
Respected Contributor

Re: hp-ux software depots

Hi

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?