Operating System - HP-UX
1834298 Members
2096 Online
110066 Solutions
New Discussion

Re: swinstall problem -- always run interactive mode even with sw specify

 
Mike_354
Advisor

swinstall problem -- always run interactive mode even with sw specify

Hi,

I have a strange problem. when I run swinstall in the script, even after I specify the sw, it will try to run in interactive UI mode. But if I manually run it in the command line, it will be ok and install the sw without the UI mode. And this is only happen to some servers, not all.

Any idea how I can resolve this?

Thanks in advance for your help.
8 REPLIES 8
Ivan Krastev
Honored Contributor

Re: swinstall problem -- always run interactive mode even with sw specify

On the servers when swinstall runs interactive check log file(s). There will be an entry like: cannot select ... or cannot connect ...


regards,
ivan
Mike_354
Advisor

Re: swinstall problem -- always run interactive mode even with sw specify

I check on the server. it did not mention anything about not able to select sw or not able to connect to the depot server. Here is what is in the log:

* The interactive UI failed to start. If you wish to run non-interactively, you must specify some software as part of the swinstall command.

And I did specify sw.

ECUse
Advisor

Re: swinstall problem -- always run interactive mode even with sw specify

Possibly the swinstall command in the script is not reading the other options. So, it just doesn't think there is any and just starts the interactive mode.
Ivan Krastev
Honored Contributor

Re: swinstall problem -- always run interactive mode even with sw specify

Add option:
-x logdetail=true

to see more information.


regards,
ivan
Mike_354
Advisor

Re: swinstall problem -- always run interactive mode even with sw specify

It will just try to start UI first without any -x option. I can't see anymore detail with -x logdetail option because it is trying to start UI. And the script works on most of the systems. But only few that will have problem.
Ivan Krastev
Honored Contributor

Re: swinstall problem -- always run interactive mode even with sw specify

Check /var/adm/sw/swagentd.log on the failed system.
You can also cut and attach here the last session details.


regards,
ivan
Bill Hassell
Honored Contributor

Re: swinstall problem -- always run interactive mode even with sw specify

The most common reason the UI pops up is that the software list is missing at the end:

swinstall -s /pathtodepot/sw.depot

If you are loading everything on the depot, use \* to specify the packages:

swinstall -s /pathtodepot/sw.depot \*

Now if this script is more complicated such as ssh or remsh, then you'll need to enclose the list in single quotes:

swinstall -s /pathtodepot/sw.depot '\*'

The alternative is to explicitly list all the packages to be installed:

swinstall -s /pathtodepot/sw.depot SWpkg1 SWpkg3


Bill Hassell, sysadmin
Mike_354
Advisor

Re: swinstall problem -- always run interactive mode even with sw specify

There is no log in swagentd.log regarding the installation.

and Yes, I did specify the pkg in swinstall. but I will try with the '' in the script to see if it make any different.