Operating System - HP-UX
1833857 Members
2504 Online
110063 Solutions
New Discussion

Re: How to swpackage an installed depot for installation on another box?

 
Ralph Grothe
Honored Contributor

How to swpackage an installed depot for installation on another box?

Hello,

I have to install a software on a box that runs 10.20, for which no depots are available anymore.
However when 10.20 still was actively supported I once installed a depot from asknet.de on one such box.
I now want to have the same depot, that is installed and for that I don't have a *.depot file anymore, installed on another 10.20 box.

I could easily simply copy the depot's installed tree over, but I'd rather like to have it registered officially by SD.

I have no experience with depot packaging yet,
and the swpackage man page wasn't too helpful.
Madness, thy name is system administration
6 REPLIES 6
Steve Steel
Honored Contributor

Re: How to swpackage an installed depot for installation on another box?

Hi


If it is a depot then remote swinstall should work

from man
Install the C and Pascal products to a set of remote hosts:

swinstall -s sw_server cc pascal @ hostA hostB hostC

Install Product1 from remote depot /tmp/sample.depot.1 on host swposix



swinstall -s swposix:/tmp/sample.depot.1 Product1

Steve Steel


If you want truly to understand something, try to change it. (Kurt Lewin)
V. Nyga
Honored Contributor

Re: How to swpackage an installed depot for installation on another box?

Hi Ralph,

you also can swinstall interactively.
After 'swinstall' it asks for the 'Source Host Name' and the 'Source Depot Path'.
Then you can see the sw you can choose for installation.

Another possibility is 'swcopy' to the box, but I think for your case it makes no sense.

HTH
Volkmar

*Have a nice SA day*
*** Say 'Thanks' with Kudos ***
Ralph Grothe
Honored Contributor

Re: How to swpackage an installed depot for installation on another box?

Hi Steve,

trying upload first (i.e. merkur has it installed, venus requires it)


[root@merkur:/ROOT]
# swlist -l fileset -a size perl
# Initializing...
# Contacting target "merkur"...
#
# Target: merkur:/
#

# perl 23049626
perl.perl-MAN 6898840
perl.perl-RUN 15383172
perl.perl-SHLIBS 767614


[root@merkur:/ROOT]
# swlist -l file perl|head
# Initializing...
# Contacting target "merkur"...
#
# Target: merkur:/
#

# perl 5.6.1 perl
# perl.perl-MAN
perl.perl-MAN: /opt/perl5/man/man1/a2p.1
perl.perl-MAN: /opt/perl5/man/man1/c2ph.1

Let's see if we have those 23 MB on venus:/opt


venus:/ROOT> bdf /opt
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol5 251285 138218 87938 61% /opt


Yeah, now let's try upload.


[root@merkur:/ROOT]
# swinstall perl @ venus

======= 07/29/05 09:43:49 METDST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@merkur".

* Beginning Selection
ERROR: To perform software distribution tasks on remote hosts or
schedule jobs from this local controller, you must purchase a
license from HP. Please contact your HP Sales Representative
for more information.
* Target connection failed for "venus:".
ERROR: More information may be found in the daemon logfile on this
target (default location is venus:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 07/29/05 09:43:49 METDST END swinstall SESSION
(non-interactive)


Uff, looks like we need an extra license for uploads.

Let's try it the other way, viz. download.


venus:/ROOT> swinstall -s merkur perl

======= 07/29/05 09:50:31 METDST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@venus".

* Beginning Selection
* Target connection succeeded for "venus:/".
ERROR: There is currently no depot software on host "merkur" at
location "/var/spool/sw".
* Source connection failed for "merkur:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is merkur:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 07/29/05 09:50:32 METDST END swinstall SESSION
(non-interactive)



Nope, it expects a prepackaged depot already sitting in merkur:/var/spool/sw

That's what I expected, and what I wanted to know.
How can I swpackage something from the installation base on merkur to its /var/spool/sw (or elsewhere) for distribution?


Madness, thy name is system administration
Steve Steel
Honored Contributor

Re: How to swpackage an installed depot for installation on another box?

Hi


To extract an installed product is difficult


look at

http://www.hpworks.org.uk/newsletter/articles/cookbook/


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ralph Grothe
Honored Contributor

Re: How to swpackage an installed depot for installation on another box?

Hi Volkmar,

I think -i only introduces an X or Ascii Art extra layer (overhead) for what can equally well being passed as options and arguments to the sw* commands.
It's more of a nuissance having to scroll, tab or using a separate pointing device.

I know how to swcopy something for distribution to a place such as /var/spool/sw if I already have a depot file.
But how from the installation base?
Madness, thy name is system administration
V. Nyga
Honored Contributor

Re: How to swpackage an installed depot for installation on another box?

Hi again,

with interactivly I meant the interactive UI, you get if you use the command 'swinstall'.
But it doesn't help if you don't have the depot directory at least (/tmp/patches/depot).
Sorry can't help.
V.
*** Say 'Thanks' with Kudos ***