1834158 Members
2426 Online
110064 Solutions
New Discussion

swinstall problem

 
thebeatlesguru
Regular Advisor

swinstall problem

following is my problem:


[root@tsm2-px:/tmp]#swinstall -s /tmp/PHSS_26138.depot
Starting the terminal version of swinstall...

To move around in swinstall:

- use the "Tab" key to move between screen elements
- use the arrow keys to move within screen elements
- use "Ctrl-F" for context-sensitive help anywhere in swinstall

On screens with a menubar at the top like this:

------------------------------------------------------
|File View Options Actions Help|
| ---- ---- ------- ------------------------------- ---|

- use "Tab" to move from the list to the menubar
- use the arrow keys to move around
- use "Return" to pull down a menu or select a menu item
- use "Tab" to move from the menubar to the list without selecting a menu item
- use the spacebar to select an item in the list

On any screen, press "CTRL-K" for more information on how to use the keyboard.

Press "Return" to continue...
you specify an incorrect display.
ERROR: The interactive UI failed to start. If you wish to run
non-interactively, you must specify some software as part of
the swinstall command.


how can i deal with this problem?

hihi
15 REPLIES 15
Scott Van Kalken
Esteemed Contributor

Re: swinstall problem

check the following log files for more info.

9 times out of ten there will be a lock file somewhere stopping you from using it.

/var/adm/sw/*.log

I think that swagentd.log and swinstall.log should give you enough info for this.

Generally though, as I said, it's either a lock file or a file missing that's the problem. Don't be too concerned.
thebeatlesguru
Regular Advisor

Re: swinstall problem

======= 07/04/02 09:56:44 EAT BEGIN swinstall SESSION (interactive)

NOTE: The interactive UI was invoked, since no software was
specified.

* Session started for user "root@tsm2-px".

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

======= 07/04/02 09:56:47 EAT END swinstall SESSION (interactive)


======= 07/04/02 10:37:17 EAT BEGIN swinstall SESSION (interactive)

NOTE: The interactive UI was invoked, since no software was
specified.

* Session started for user "root@tsm2-px".

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

======= 07/04/02 10:37:20 EAT END swinstall SESSION (interactive)


i find these in swinstall.log,but nothing in swagentd.log about today's error

and i still dont know how to deal with it:(
hihi
Scott Van Kalken
Esteemed Contributor

Re: swinstall problem

Try the swagent.log file as well.

T G Manikandan
Honored Contributor

Re: swinstall problem

you can run swinstall
non-interactively

#swinstall -x patch_match_target=true -x auto_reboot=false -s /tmp/PHSS_26138.depot

Thanks
G Manikandan
thebeatlesguru
Regular Advisor

Re: swinstall problem

swagent.log has nothing about the error

and

#swinstall -x patch_match_target=true -x auto_reboot=false -s /tmp/PHSS_26138.depot
ERROR: While reading the command line an error was found for the
option "-x auto_reboot". The keyword or its value may be
incorrect or the keyword does not apply to this command.
ERROR: Command line parsing failed


help help
hihi
T G Manikandan
Honored Contributor

Re: swinstall problem

option -x auto_reboot

-x auto_reboot=true
T G Manikandan
Honored Contributor

Re: swinstall problem

The patch PHSS_26138.depot does not require a auto reboot.

The option -x auto_reboot=true is

if the patch requires a auto reboot the server is automatically rebooted else the ch is just installed
Patrick Wallek
Honored Contributor

Re: swinstall problem

Do you have your DISPLAY variable set?

# echo $DISPLAY

If it returns something like:

machinename:0.0

Then try doing:

# unset DISPLAY

Now try invoking swinstall again and see what happens.
thebeatlesguru
Regular Advisor

Re: swinstall problem

* "tsm2-px:/tmp/PHSS_26138.depot": This source is a tape
device.
* "tsm2-px:/tmp/PHSS_26138.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.

so strange,in other machine ,i use :
swinstall -s /tmp/PHSS_26138.depot
and have no problem

btw:there three file about PHSS_26138:
-rw-rw-rw- 1 root sys 1306905 Jul 4 09:56 PHSS_26138
-rw-r--r-- 1 root sys 1679360 Jan 20 00:34 PHSS_26138.depot
-rw-r--r-- 1 root sys 50569 Feb 12 04:47 PHSS_26138.text

hihi
Sukant Naik
Trusted Contributor

Re: swinstall problem

Hi,

Your own system is not able to resolve its name.

Can you do one thing. Just register the depot first and then try the installation.

# swreg -l depot /tmp/PHSS_26138.depot

# swinstall -x autoreboot=true -s /tmp/PHSS_26138.depot PHSS_26138

-Sukant

Who dares he wins
thebeatlesguru
Regular Advisor

Re: swinstall problem

[root@tsm2-px:/tmp]#echo $DISPLAY
sh: DISPLAY: Parameter not set.

[root@tsm2-px:/tmp]#swreg -l depot /tmp/PHSS_26138.depot

======= 07/04/02 12:36:49 EAT BEGIN swreg SESSION (non-interactive)

* Session started for user "root@tsm2-px".

* Beginning Selection
* Targets: tsm2-px
* Objects: /tmp/PHSS_26138.depot
* Selection succeeded.



======= 07/04/02 12:36:49 EAT END swreg SESSION (non-interactive)


[root@tsm2-px:/tmp]#swinstall -x patch_match_target=true -s /tmp/PHSS_26138.depot

======= 07/04/02 11:59:52 EAT BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@tsm2-px".

* Beginning Selection
* Target connection succeeded for "tsm2-px:/".
* "tsm2-px:/tmp/PHSS_26138.depot": This source is a tape
device.
* "tsm2-px:/tmp/PHSS_26138.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 "tsm2-px" which passed the filter.
NOTE: Cannot continue the "swinstall" task.

======= 07/04/02 11:59:55 EAT END swinstall SESSION (non-interactive)


it doesnt work :((((
hihi
Sukant Naik
Trusted Contributor

Re: swinstall problem

Hi,

Then now restart the swagentd daemon and try the installation.

# ps -ef|grep swagentd
root 1688 1 0 Jun 28 ? 0:04 /usr/sbin/swagentd -r
root 9553 9546 1 10:45:23 ttyp1 0:00 grep swagentd
# kill -9 1688
# /usr/sbin/swagentd -r
#

-Sukant
Who dares he wins
Mateja Bezjak
Respected Contributor

Re: swinstall problem

Hi,

To install the patch from the command line you can also avoid using -x patch_match_target=true. You can use the command:

swinstall -s /tmp/PHSS_26138.depot \*
or
swinstall -s /tmp/PHSS_26138.depot PHSS_26138

Regards,
Mateja
Wodisch
Honored Contributor

Re: swinstall problem

Hi,

looks like you try to install a patch which ist NOT valid for your system!
Maybe it's a workstation patch but you are on a server or vs. versa?

Else try
swinstall -s /tmp/PHSS_12345 '*'

Just my $0.02,
Wodisch
thebeatlesguru
Regular Advisor

Re: swinstall problem

hello everyone
i have got it

use:

export TERM=vt100


everything is ok

thanks everyone
hihi