Operating System - HP-UX
1833091 Members
3188 Online
110050 Solutions
New Discussion

Re: swcopy and swinstall non-interactive

 
IT_2007
Honored Contributor

swcopy and swinstall non-interactive

Downloaded lsof from
http://hpux.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=lsof

and did swcopy to ServerA:/depot/APPS where I keep all software bundles.

Trying to install lsof onto multiple servers non-interactively but not working. Tried all different ways, it always brings up gui (text based) mode.

Using the following command on one of the server:

Server-hp:# swinstall -s serverA:/depot/APPS/lsof \*

======= 09/26/06 13:56:21 CDT BEGIN swinstall SESSION
(non-interactive) (jobid=server-hp-0034)

* Session started for user "root@server-hp".

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



Thanks in Advance.
6 REPLIES 6
spex
Honored Contributor

Re: swcopy and swinstall non-interactive

Hi,

Include the file extension:

swinstall -s serverA:/depot/APPS/lsof.blah.depot \*

PCS
V.Manoharan
Valued Contributor

Re: swcopy and swinstall non-interactive

Hi
can you try with.
copy the depot file to /depot/APPS/lsof
swreg -L depot /depot/APPS/lsof/
swinstall -s serverA /depot/APPS/lsof/

regards
mano
IT_2007
Honored Contributor

Re: swcopy and swinstall non-interactive

It works if I select manually from gui.

Query shows only as fileset:

# swlist -l fileset @serverA:/depot/APPS |grep -i lsof
# lsof 4.77 lsof
lsof.lsof-RUN


so what exactly should I give in the command line to make it work?
Geoff Wild
Honored Contributor

Re: swcopy and swinstall non-interactive

swinstall -x autoreboot=false -s serverA:/depot/APPS/lsof \* @ `uname -n`


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
IT_2007
Honored Contributor

Re: swcopy and swinstall non-interactive

Ok. I fgured it out. It worked..

swinstall -x mount_all_filesystems=false -x autoreboot=false -s serverA:/depot/APPS lsof \*

Need to mention directory name for the depot and then Name of the depot.
IT_2007
Honored Contributor

Re: swcopy and swinstall non-interactive

found it.