Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

swinstall hangs

sunil m. r
Occasional Contributor

swinstall hangs


I have a HP-UX B.11.11 box and i have mounted
a file system remotely on it. The remotely mounted file system contains some ".depot" file which I need to install.

On issuing the following command:--
swinstall -s /file \*

I am getting the following message:--

======= 03/23/03 21:45:41 IST BEGIN swinstall SESSION
(non-interactive) (jobid=ldap-h34-1411)

* Session started for user "root@ldap-h34".

* Beginning Selection
* Target connection succeeded for "ldap-h34:/".

and it stays there and does not proceed further. Since I am new to HP I am unable to predict what has gone wrong. The same command works fine on another HP UX box which too has the same filesystem mounted remotely. The logs have not shown any error messages

Any help in this regard will be highly appreciated. Thanks in advance.

With Regards

Sridhar Bhaskarla
Honored Contributor

Re: swinstall hangs

Hi Sunil,

Can you enter into the mounted directory and look at the contents?. NFS may be hanging. Look for "NFS Server Not responding" messages in dmesg.

Either you can copy .depot file from the remote system onto the local one or prepare a depot on the remote system and then access it through swinstall. To make it as a standard depot, do the following on the remote system.

#cd /where_the_depot_is
#mkdir depot
#cd depot
#tar xvf ../yourproduct.depot
#touch catalog/swlock
#swreg -l depot /(full path to the depot directory you created)

On the local system, invoke 'swinstall' interactive session. Select the target system as the remote system and the target directory as the above.

You may be disappointed if you fail, but you are doomed if you don't try
Robert-Jan Goossens
Honored Contributor

Re: swinstall hangs

Hi Sunil,

check you can write as root on the NFS mounted directory

Use the -x write_remote_files=true option in the swinstall command.

# swinstall -x write_remote_files=true -s /file \*

Kind regards,

Steven E. Protter
Exalted Contributor

Re: swinstall hangs

You don't need to be able to write to the remote directory to do the install.

A different investigation path is to look at your local swagent.log file for information.

What is the nature of the depot you are trying to install.

Steven E Protter
Owner of ISN Corporation
Michael Steele_2
Honored Contributor

Re: swinstall hangs

SD-UX has its own network interface that allows patch depot installations between servers. Here's an example:

swinstall -s hostname:/sd_depot/ux_appl_UX_SYSAD

Regarding your hanging problem wiht swinstall, its not unusal for SD-UX to hang, it happens to everyone. Here are some basic debug commands:

mwa stop (* mostly obsolete with 11.00 *)

swagentd -k (* stop SD-UX daemon *)

Check for and remove
rm /var/adm/sw/products/swlock

swagentd -r (* restart *)

"rpccp show mapping" (* If this hangs then call HP Response Center or reboot *)

Permission on /etc/hosts = 664

nslookup hostname (* of server *)
nslookup ip (* verify *)

/etc/resolv.conf (* verify *)

Support Fatherhood - Stop Family Law