1834018 Members
2337 Online
110063 Solutions
New Discussion

swinstall error

 
SOLVED
Go to solution
Chris2005
Regular Advisor

swinstall error

# swinstall -x autoreboot=true -x patch_match_target=true \
> /tmp/patches/BUNDLE11i_B.11.11.0306.1.depot

======= 01/24/07 09:44:23 MET BEGIN swinstall SESSION
(non-interactive) (jobid=testserv.domein1.nl-0112)

* Session started for user "root@testserv.domein1.nl".

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



======= 01/24/07 09:44:30 MET END swinstall SESSION (non-interactive)
(jobid=testserv.domein1.nl-0112)


---

What do I do wrong? The depot is in tmp/patches/ . Why is swinstall mentioning /var/spool/sw ?
12 REPLIES 12
Pete Randall
Outstanding Contributor
Solution

Re: swinstall error

Try "swinstall -s /tmp/patches/BUNDLE11i_B.11.11.0306.1.depot -x autoreboot=true -x patch_match_target=true"


Pete

Pete
Ivan Krastev
Honored Contributor

Re: swinstall error

Use -s option before /tmp/....

and after depot file specify what to be installed.
For example :
swinstall -x autoreboot=true -x patch_match_target=true \
-s /tmp/patches/BUNDLE11i_B.11.11.0306.1.depot \*


regards,
ivan

James R. Ferguson
Acclaimed Contributor

Re: swinstall error

Hi Chris:

The default depot is '/var/spool/sw'.

Change :

# swinstall -x autoreboot=true -x patch_match_target=true \
> /tmp/patches/BUNDLE11i_B.11.11.0306.1.depot

...which redirects ouput to the depot you are trying to install! to:

# swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/patches/BUNDLE11i_B.11.11.0306.1.depot

Note the '-s filename' specifies the *source* depot.

Regards!

...JRF...
Chris2005
Regular Advisor

Re: swinstall error

Strange. Now that works. Why?!

Anyway now I get this:
======= 01/24/07 10:00:30 MET BEGIN swinstall SESSION
(non-interactive) (jobid=testserv.domein1.nl-0115)

* Session started for user "root@testserv.domein1.nl".

* Beginning Selection
* Target connection succeeded for "testserv.domein1.nl:/".
NOTE: The patch match operation failed to find patches for target
software on "testserv.domein1.nl" which passed the filter.
NOTE: Cannot continue the "swinstall" task.

======= 01/24/07 10:00:47 MET END swinstall SESSION (non-interactive)
(jobid=testserv.domein1.nl-0115)
--

Does that mean I alreafdy have that bundle installed?
James R. Ferguson
Acclaimed Contributor

Re: swinstall error

Hi (again) Chris:

When you did:

# swinstall -x autoreboot=true -x patch_match_target=true \
> /tmp/patches/BUNDLE11i_B.11.11.0306.1.depot

...you clobbered your depot.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: swinstall error

Your original attempt, using the output redirection symbol ">", actually overwrote the depot that you wanted to install. You will have to re-copy it into /tmp again.


Pete

Pete
Chris2005
Regular Advisor

Re: swinstall error

Yes, I forgot the -s parameter. Thanx.

I'd downloaded the bundle again and got that last errors. Does that mean I already have this bundle?
Pete Randall
Outstanding Contributor

Re: swinstall error

Take a look at /var/adm/sw/swagent.log to see further information on why it is failing. It may well be that this bundle had been previously installed.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: swinstall error

Hi (again) Chris:

If you have been patching properly it is very likely that you already have Bundle11i from June 2003 installed.

Another way to verify is to do:

# swlist -l bundle

Regards!

...JRF...
Chris2005
Regular Advisor

Re: swinstall error

Yes it's in the swlist. Already had seen that but wanted to be sure that's really the case.

Is their an option for swlist to see the patch implementation date?

Thanx guys for your help and patience ;)
Chris2005
Regular Advisor

Re: swinstall error

Yes it's in the swlist. Already had seen that but wanted to be sure that's really the case.

Is their an option for swlist to see the patch implementation date?

Thanx guys for your help and patience ;) I'm just new to hpux and want to learn more about it as I'm testing out NNM 7 for hpux on my own PA_RISC machine.
James R. Ferguson
Acclaimed Contributor

Re: swinstall error

Hi Chris:

> Is their an option for swlist to see the patch implementation date?

# swlist -l patch -a date
# swlist -l bundle -a date

Regards!

...JRF...