Operating System - HP-UX
1834156 Members
2879 Online
110064 Solutions
New Discussion

Re: swinstall depot error

 
SOLVED
Go to solution
catastro
Super Advisor

swinstall depot error

hi
I am trying to install through the network with an script a patch

swinstall -x ask=false -x match_target=true -x autoreboot=true /var/depots/T1471
AA_A.04.40.006_HP-UX_B.11.11_32+64.depot

and it gives me this answer in the log as it finishes, and it does not install nothing at all

***************** triana ***************

======= 01/09/07 12:21:07 MET BEGIN swinstall SESSION
(non-interactive) (jobid=triana-0038)

* Session started for user "root@triana".

* Beginning Selection
* Target connection succeeded for "triana:/".
ERROR: There is currently no depot software on host "triana" at
location "/var/spool/sw". Make sure that an absolute pathname
is specified for location (beginning with "/").
* Source connection failed for "triana:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is triana:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 01/09/07 12:21:13 MET END swinstall SESSION (non-interactive)

My HP-UX OS is B11.11 and the server model is HP 9000/861/D370
Thank you for your help
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: swinstall depot error

I believe you need to specify the -s option:

swinstall -x ask=false -x match_target=true -x autoreboot=true -s /var/depots/T1471AA_A.04.40.006_HP-UX_B.11.11_32+64.depot


Pete

Pete
Ganesh Balraman
Regular Advisor

Re: swinstall depot error

Dear Sir,

Register the depot directory if not registered.

Example : swreg -l depot /var/depots.

Regds
B.Ganesh
Wouter Jagers
Honored Contributor

Re: swinstall depot error

Hi,

This should list existing depots on your host:
swlist -l depot @ triana

On triana, you could just issue:
swlist -l depot

However, checking your line:
"swinstall -x ask=false -x match_target=true -x autoreboot=true /var/depots/T1471
AA_A.04.40.006_HP-UX_B.11.11_32+64.depot"

Don't you need to specify "-s" before the source ? ( -s /var/depots/.....)

Cheers
an engineer's aim in a discussion is not to persuade, but to clarify.
Fabio Ettore
Honored Contributor

Re: swinstall depot error

Hi,

the right way was given by Pete.
You just need to specify -s option to get your depot installed. Otherwise HP-UX will search into default depot path, that is /var/spool/sw.

So run:

swinstall -x ask=false -x match_target=true -x autoreboot=true -s /var/depots/T1471
AA_A.04.40.006_HP-UX_B.11.11_32+64.depot

That will work.

Good luck...

Best regards,
Fabio
WISH? IMPROVEMENT!
Bill Hassell
Honored Contributor

Re: swinstall depot error

All you need is:

swinstall -s /var/depots/T1471
AA_A.04.40.006_HP-UX_B.11.11_32+64.depot \*

The extra options are not needed and no reboot is necessary, but the most important part is the selection of which products to install. You must specify the name(s) of the products or \* to specify everything in the depot.


Bill Hassell, sysadmin
catastro
Super Advisor

Re: swinstall depot error

The depot software in my server is this one:

triana:/var/opt/mx/depot11# swlist -l depot @ triana
# Initializing...
# Target "triana" has the following depot(s):
/var/opt/mx/depot11

and I changed all the parameters as you suggested me

swinstall -x ask=false -x match_target=true -x autoreboot=true -s /var/opt/mx/de
pot11/T1471AA_A.04.40.006_HP-UX_B.11.11_32+64.depot

And now it says this:

***************** triana ***************

======= 01/09/07 13:13:41 MET BEGIN swinstall SESSION
(non-interactive) (jobid=triana-0041)

* Session started for user "root@triana".

* Beginning Selection
* Target connection succeeded for "triana:/".
NOTE: The match operation failed to find software in the source that
matches software on the target.
NOTE: Cannot continue the "swinstall" task.

======= 01/09/07 13:13:52 MET END swinstall SESSION (non-interactive)
(jobid=triana-0041)

And the software is in the directory

triana:/var/opt/mx/depot11# ll
total 18304
dr-x------ 3 root sys 96 Apr 3 2006 AgentConfig
-rw-r----- 1 root sys 9359360 Jan 9 13:11 T1471AA_A.04.40.006_HP
-UX_B.11.11_32+64.depot
dr-x------ 4 root sys 96 Apr 3 2006 catalog
-rw-r--r-- 1 root sys 1146 Apr 3 2006 swagent.log

Thanks
Peter Godron
Honored Contributor

Re: swinstall depot error

Hi,
not sure whether that same would apply for a depot:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=193537
and are you sure you actually have a match against the depot ?

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

Your earlier thread from November is still waiting for your update/completion!

[Moderator edit: The above links are no longer valid.]

Wouter Jagers
Honored Contributor
Solution

Re: swinstall depot error

Grr, posted this in the wrong place:

Not 100% sure, but I think you might now have a depot in a depot.

Try to swcopy the .depot file to your depot first.

swcopy -s /var/depots/T1471AA_A.04.40.006_HP-UX_B.11.11_32+64.depot @ triana:/var/opt/mx/depot11

Also not completely sure on the syntax.. anyone to confirm/correct ?

Cheers
an engineer's aim in a discussion is not to persuade, but to clarify.
Pete Randall
Outstanding Contributor

Re: swinstall depot error

Actually, what you're trying to install is Secure Shell, not a patch. There is no need to put this into a depot. Did you swcopy it to get it into the depot? You could have just swinstalled it from whereever it was, like /tmp, for example:

swinstall -s /tmp/T1471AA_A.04.40.006_HP-UX_B.11.11_32+64.depot


Pete

Pete
Wouter Jagers
Honored Contributor

Re: swinstall depot error

Indeed. I'm guessing Catastro wants to have the software in a depot on host triana, and install it from there onto a number of machines..
an engineer's aim in a discussion is not to persuade, but to clarify.
catastro
Super Advisor

Re: swinstall depot error

Using \* it worked, but as I read it tries to install all the depots that are in the path
I tried also to register a new depot for getting there all the software I want to install, and it gave me this

ERROR: Failed to register soc on "/var/depots" for
root@triana.catastro.minhac.es. "/var/depots" is not a valid
depot. Mar, 09 Ene 2007 14:11:25 MET

I will close the other thread, as this account is used by a few persons. Sorry for the time.
catastro
Super Advisor

Re: swinstall depot error

Thanks for all your help.
It worked finally making some changes