Operating System - HP-UX
1833780 Members
2142 Online
110063 Solutions
New Discussion

Copy a depot from other server

 
Emanuele De Angelis
Frequent Advisor

Copy a depot from other server

Hi,
can i copy from a server ro other server a software depot installed?

I want copy a software that it is installed in a server to other server. For expample export this depot for reinstall to others server.

Thanks,
Emanuele
5 REPLIES 5
Bharat Katkar
Honored Contributor

Re: Copy a depot from other server

Hi Emnuale;
You can use "swreg" command so that depot on one server can be accessed from other server in the network.

Now suppose you have depot software in Server A at /var/home/software then:

# swreg -l depot /var/home/software

Then on Server B :

# swinstall -s serverA:/var/home/software

Hope this is what you are looking for.

Regards,


You need to know a lot to actually know how little you know
Denver Osborn
Honored Contributor

Re: Copy a depot from other server

ok, so I assume you're talking about a regisered depot on one host that need to copy to another host... not taking an already installed product and creating a depot out of it, right?

From the system where you want to copy the remote depot to...

swcopy -s remothost:/path/depotname \* @ /local_path/depotname

If you want to copy the depot software to a ".depot" file that you can then ftp to another host to install as "swinstall -s /tmp/myfile.depot" use this command from host where depot exists...

swpackage -x target_type=tape -s /path/depotname \* @ /tmp/myfile.depot


hope this helps,
-denver
Emanuele De Angelis
Frequent Advisor

Re: Copy a depot from other server

Thanks for reply,
i have OnlineJFS installet on server.
I have found a folder /var/adm/sw/product where there are all software installed.
Can i do swcopy to other server?
If yes , how to?
Thanks a lot,
Regards,

Emanuele
Bharat Katkar
Honored Contributor

Re: Copy a depot from other server

Hi Emanuele,
you need to have .depot files in /var/adm/sw/product in order to use swcopy command. Command is as:

# swcopy -s @

So why don't you simply register /var/adm/sw/product as software depot so that it it directly accessible to other servers on the network.

# swreg -l depot /var/adm/sw/product

Now if you are concerned about the network traffic then you need to copy depot files from ServerA to ServerB somewhere e.g. /tmp
Then on serverB you can use swcopy to move depot file to software depot.

# swcopy -s /tmp/xyz.depot xyz @ /var/spool/sw

This creates depot at /var/spool/sw and the depot file in it which then can be installed on any system.

Regards,


You need to know a lot to actually know how little you know
Denver Osborn
Honored Contributor

Re: Copy a depot from other server

I'm affraid SD-UX doesn't work like that... The data you found under /var/adm/sw/products contains information about the installed products on your system. They're not the installation source.

You can pull these products off of your Application CD set and install them from CD or copy from the CD to a local depot.

If you are trying to clone one system to another, use an Ignite-UX recovery tape.

-denver