1835199 Members
2437 Online
110077 Solutions
New Discussion

Re: swinstall command

 
Shailesh_3
Occasional Advisor

swinstall command

Hi
I want to install a *.depot file from swinstall command in a non interactive mode which is a requirement for certain application.

I am facing a problem while installing the same. I am using the below syntax for this

swinstall -x patch_match_target=true -s /

It give me a error which is as follows

swinstall -x patch_match_target=true -s /appl/tcl-8.2.1-sd-11.00.depot

======= 12/05/00 15:26:03 IST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@mascothp".

* Beginning Selection
* Target connection succeeded for "mascothp:/".
* "mascothp:/appl/tcl-8.2.1-sd-11.00.depot": This source is a
tape device.
* "mascothp:/appl/tcl-8.2.1-sd-11.00.depot": Cannot open the
logfile on this target or source. Possibly the media is
read-only or there is a permission problem. Check the daemon
logfile and "/var/tmp/swagent.log" on this host for more
information.
NOTE: The patch match operation failed to find patches for target
software on "mascothp" which passed the filter.
NOTE: Cannot continue the "swinstall" task.

======= 12/05/00 15:26:06 IST END swinstall SESSION (non-interactive)

Note: This can be installed in interacitve mode.
Kindly provide your valuable suggestions.

Thanx
World is not enough
15 REPLIES 15
CHRIS_ANORUO
Honored Contributor

Re: swinstall command

Hi,

You have to be root to do swinstall as the log file has pointed out.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Shailesh_3
Occasional Advisor

Re: swinstall command

I am logged in as a root user, as it clearly points in the eror message
Session started for user "root@mascothp".
World is not enough
Rainer_1
Honored Contributor

Re: swinstall command

as you want to install an application (not a patch) you should use

swinstall -x match_target=true -s /
CHRIS_ANORUO
Honored Contributor

Re: swinstall command

You can use swinstall -x enforce_dependencies=true -t /appl/tcl-8.2.1-sd-11.00.depot or at best put this on a tape and install from there.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Alex Glennie
Honored Contributor

Re: swinstall command

some things to check :

The option match_target should be used only when the product/filesets are already installed.... ?

what happens if you copy the depot to /tmp/.... and install from there ?

What shell are you using ? Try ksh ?

check for the file /.sw/sessions/swinstall.last and check the
permission for that directory are OK / open.

Shailesh_3
Occasional Advisor

Re: swinstall command

I have tried with option
swinstall -x match_target=true source_type=directory -s /appl/ but its gives the below error..

12/05/00 17:19:16 IST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@mascothp".

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


I also tried with option swinstall -x enforce_dependencies=true -t /appl/ I get the following error.
ERROR:could not read input file "/appl/tcl-8.2.1-sd-11.00-depot.
ERROR:command line parsing fail


World is not enough
Trevor Dyson
Trusted Contributor

Re: swinstall command

Hi,

Did you download this from the HP-UX porting and archive center?

If so then I have seen the same problem. In my case the file was compressed in gzip format but did not have the .gz extension.

I fixed it up by moving the file to the same name with a .gz on the end, ie:

mv tcl-8.2.1-sd-11.00.depot tcl-8.2.1-sd-11.00.depot.gz

then uncompress it:

gunzip tcl-8.2.1-sd-11.00.depot.gz

you will then get an uncompressed tcl-8.2.1-sd-11.00.depot

Of course, I could be completely wrong ;-)

Good luck - trevor

I've got a little black book with me poems in
Shailesh_3
Occasional Advisor

Re: swinstall command

Hi Alex.
I tried swinstall using your check points but still i am not successful. This time i used option source_type=directory, shell ksk, copied the file in /tmp & also checked the permissions of /.sw/sessions/swinstall.last file It still gives the following message. I still wonder that how is that it system not able to find the depot, though the *.depot file is present in it.



* Session started for user "root@mascothp".

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

Re: swinstall command

You may want to give this a try, I know it looks a lot like what you have already tried. Try using this command line: swinstall -x autoreboot=true -x match_target=true \ -s /file path/file name.depot. I also know that sometimes when I have a problem with it trying to find the .depot file, that if I reshell it or uncompress it again and copy over the existing .text and .depot files then it works. If you try this, I hope it helps you out.
Shailesh_3
Occasional Advisor

Re: swinstall command

Hi
It seems that the *.depot files had some problem which i have downloaded from hpux freeware site. I have tried with sudo-1.6.2b1-sd-11.00.depot it gave me a following message which indicates it has been installed.
* Source: /tmp/sudo-1.6.2b1-sd-11.00.depot
* Targets: mascothp:/
* Software selections:
sudo.sudo-RUN,r=1.6.2b1,a=HP-UX_B.11.00_700/800
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/var/adm/sw/sessions/swinstall.last".
* The analysis phase succeeded for "mascothp:/".
* Analysis succeeded.


* Beginning Execution
* The execution phase succeeded for "mascothp:/".
* Execution succeeded.


NOTE: More information may be found in the agent logfile (location
is mascothp:/var/adm/sw/swagent.log).

======= 12/06/00 09:59:16 IST END swinstall SESSION (non-interactive)

I will try to install few more depot files & write my observations.
World is not enough
Shailesh_3
Occasional Advisor

Re: swinstall command

Is it possible to change the target directory. How ? & by which option.
World is not enough
Trevor Dyson
Trusted Contributor

Re: swinstall command

....Hey now I remember what the real problem was... I downloaded the .depot files from the porting and archive centre using netscape on HP-UX 11.00. I didn't realise that if you try to download two files simultaneously then the first one is cancelled resulting in an incomplete .depot file. I just had to make sure that I completely downloaded one file before beginning to download another.

regards, Trevor
I've got a little black book with me poems in
Shailesh_3
Occasional Advisor

Re: swinstall command

Is it possible to change the target directory..?? How & by which option.?
World is not enough
Cheryl Griffin
Honored Contributor

Re: swinstall command

Sahilesh,
Two things....
First, sometimes swagentd forgets itself, especially after several failed install attempts. If you stop and restart the swagentd you may find that your script will work without the "source is a tape" or "no software found" references.
# /usr/sbin/swagentd stop OR
# kill {pid_of_swagentd} (defaults to a -15 which is a nice kill}

# /usr/sbin/swagentd OR
# /usr/sbin/swagentd -r (rereads defaults file)

Second, did the /var/adm/sw/swagent.log report any further relevant errors?
"Downtime is a Crime."
Matthias Zander
Advisor

Re: swinstall command

Hi

If you don't want to install Patches:

swinstall -s /$PWD/xxx.depot \*