System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to install a software using swinstall

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to install a software using swinstall

Hi

I am new to HP-UX.

I want to install the file "cfg.depot".

what is the syntax.
21 REPLIES
Pete Randall
Outstanding Contributor

Re: How to install a software using swinstall

Assuming the depot is located in /tmp (you need to supply the full path name)

swinstall -s /tmp/cfg.depot

is enough to get the job done.


Pete

Pete
Ganesan R
Honored Contributor

Re: How to install a software using swinstall

Hi,

Use swinstall command to install the softwars.

#swinstall -s

#swinstall -s /dir/cfg.depot

Only preview mode not to install..
#swinstall -p -s /dir/cfg.depot

To list the software available on the depot file.

#swlist -d @/dir/cfg.depot
Best wishes,

Ganesh.
Bijeesh
Respected Contributor

Re: How to install a software using swinstall

Hi
#swinstall -s

You can also use swinstall in interactive mode.
#swinstall
Sivakumar MJ._1
Respected Contributor

Re: How to install a software using swinstall

swinstall - how to install depot files in HP/UX


To install depot files in HP/UX:

# swinstall -s /path/software.depot

Eg. # swinstall -s /tmp/samba.depot


Check the Man pages for swinstall

http://www.docs.hp.com/en/B2355-90692/swinstall.1M.html
For HP Online Case Logging-->http://support.openview.hp.com/
R.K. #
Honored Contributor

Re: How to install a software using swinstall

Hi Senthil,

As mentioned in above threads you can use the command:
# swinstall -s

For UI or command illustrations kindly check the below useful link "Installation with swinstall":
http://docstore.mik.ua/manuals/hp-ux/en/5992-4826/ch02s01.html

Hope this helps.

Regds,
R.K.
Don't fix that what ain't broke
senthil_kumar_1
Super Advisor

Re: How to install a software using swinstall

Hi

I am getting this error message

How to solve this.

lndsll03:/homeroot->swinstall -s /homeroot/cfg2html_hpux_3.66-20080709.depot
NOTE: The interactive UI was invoked, since no software was
specified.

Starting the terminal version of swinstall...

Jamie A Dennis
Frequent Advisor

Re: How to install a software using swinstall

You'll get that whenever you don't specify the exact software to install. In the examples, you are specifying a depot.

If you know, for example, that your depot is /tmp/OpenSSL_A.00.09.07m.047_HP-UX_B.11.23_IA_PA.depot, and the software inside the depot is OpenSSL, you could specify your swinstall command such as:

swinstall -s /tmp/OpenSSL_A.00.09.07m.047_HP-UX_B.11.23_IA_PA.depot OpenSSL

swinstall then will become non-interactive and install exactly what you specified.
"If hindsight is 20/20, why don't more people use their rearview mirrors?" - James (Jamie) A. Dennis, 1998
Pete Randall
Outstanding Contributor

Re: How to install a software using swinstall

I have always used

swinstall -x auto-reboot=true -s /tmp/cfg.depot

to install non-interactively, though I've never looked into why it works!


Pete

Pete
R.K. #
Honored Contributor

Re: How to install a software using swinstall

Hi Senthil,

This is NOT a error message.

Since you have not selected source and destination paths, so a TUI will be invoked wherein you will be asked to select softwares/fill blanks.

Wait for sometime and you will get the UI.

To start an install session via the command line, you must assemble any options (if needed), host and source names, and software selections into a command string. For example:

# swinstall -p -s softsource -f softlist @ myhost:/mydirectory


Regds,
R.K.
Don't fix that what ain't broke
James R. Ferguson
Acclaimed Contributor

Re: How to install a software using swinstall

Hi :

As noted, you will get an interactive SD session whenever you don't specify software to be installed.

For example, if a depot contained OpenSSL and you wanted to install that, you would do:

# swinstall -s /tmp/swdepot OpenSSL

If the depot contained multiple software elements then you could do:

# swinstall -s /tmp/swdepot \*

In this case, installation of everything would be attempted since the asterisk means "all". Note that you _MUST_ escape the asterisk character so that your shell does not interpret it and expand it into the filenames in your current directory.

Regards!

...JRF...
Bijeesh
Respected Contributor

Re: How to install a software using swinstall

Hi
first you check for the s/w on the depot.
#swlist -d @/dir/cfg.depot


Or issue this command

lndsll03:/homeroot->swinstall -s /homeroot/cfg2html_hpux_3.66-20080709.depot cfg.depot
Torsten.
Acclaimed Contributor

Re: How to install a software using swinstall

I don't want to repeat the same swinstall blabla line a hundred time, but how about some RTFM?

http://docs.hp.com/en/SD/infolib.html

Find out what all you can do with SD!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ganesan R
Honored Contributor

Re: How to install a software using swinstall

Hi,

As said by others, it is not an error message rather this is the way swinstall is designed to work.

If specified depot has multiple softwares, you need to specify which software you want to install from that depot.
Example:

#swinstall -s

If you haven't specified, swinstall suppose to ask which software you intend to install. For that reason it is opening the interactive session.

First find out the softwares available in that depot using this command.

#swlist -d @

Once you know the software inside the depot use this command,

#swinstall -s

Hope this hels...
Best wishes,

Ganesh.
senthil_kumar_1
Super Advisor

Re: How to install a software using swinstall

Hi

I following commands but still i am not succeeded.

1) lndsll03:/homeroot->swlist -d @/homeroot/cfg2html_hpux_3.66-20080709.depot
# Initializing...
# Contacting target "lndsll03"...
#
# Target: lndsll03:/homeroot/cfg2html_hpux_3.66-20080709.depot
#

#
# Bundle(s):
#

CFG2HTML C.03.66.20080709 Config To HTML System Documentation Tool (cfg2html)




2) lndsll03:/homeroot->swinstall -s /homeroot/cfg2html_hpux_3.66-20080709.depot cfg2html

======= 04/09/09 09:58:42 EDT BEGIN swinstall SESSION
(non-interactive) (jobid=lndsll03-0074)

* Session started for user "root@lndsll03".

* Beginning Selection
* Target connection succeeded for "lndsll03:/".
* Source:
/homeroot/cfg2html_hpux_3.66-20080709.depot
* Targets: lndsll03:/
* Software selections:
cfg2html.cfg2html,r=C.03.66.20080709,a=HP-UX,v=HP
* Selection succeeded.


* Beginning Analysis and Execution
* Session selections have been saved in the file
"/homeroot/.sw/sessions/swinstall.last".
ERROR: "lndsll03:/": One or more filesystems that appear in the
filesystem table are not mounted and cannot be mounted.
* The analysis phase failed for "lndsll03:/".
* Analysis and Execution had errors.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log lndsll03-0074 @ lndsll03:/".

======= 04/09/09 09:58:45 EDT END swinstall SESSION (non-interactive)
(jobid=lndsll03-0074)


pls help me.
Pete Randall
Outstanding Contributor

Re: How to install a software using swinstall

> ERROR: "lndsll03:/": One or more filesystems that appear in the filesystem table are not mounted and cannot be mounted.

You need to go into the swinstall options and turn off the "mount all file systems" option.


Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: How to install a software using swinstall

Hi,

Permission problem?

# mv /homeroot/cfg2html_hpux_3.66-20080709.depot /tmp
# swinstall -s /tmp/cfg2html_hpux_3.66-20080709.depot CFG2HTML

Regards,
Robert-Jan
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to install a software using swinstall

Hi:

> ERROR: "lndsll03:/": One or more filesystems that appear in the
filesystem table are not mounted and cannot be mounted.

I urge you to read some of the documentaion links that have been suggested --- the manpages for 'swinstall' too.

Either mount all of your server's file systems and re-run your 'swinstall' or add the '-x mount_all_filesystems=false' option to your 'swinstall' command:

# swinstall -x mount_all_filesystems=false -s ...

Regards!

...JRF...

Pete Randall
Outstanding Contributor

Re: How to install a software using swinstall

As James points out, reading the documentation and man pages would be a tremendous help, but, at the very least, try reading the error message.


Pete

Pete
senthil_kumar_1
Super Advisor

Re: How to install a software using swinstall

Hi

I have installed the software using this command

# swinstall -x mount_all_filesystems=false -s ...
H.Merijn Brand (procura
Honored Contributor

Re: How to install a software using swinstall

mount_all_filesystems indeed deafults to the extremely annoying true.

You can however make swinstall/swremove/swverify/... be way more reasonable when you set that as default

# cd /var/adm/sw
# cat defaults
# File: /var/adm/sw/defaults
#
# Purpose: HP OpenView Software Distributor system-wide default options
#
# Header: $Header: defaults,v 5.1 95/03/04 05:05:07 hmgr Exp $
#
# Description: This file contains the customized, system-wide default
# options and behaviors for the HP OpenView Software
# Distributor (SD) commands.
#
# The file /usr/lib/sw/sys.defaults contains a complete list
# of current SD options (with their default values).

swinstall.mount_all_filesystems = false
swinstall.source_directory = /cdrom
swinstall.source_cdrom = /cdrom
swinstall.verbose = 0
swinstall.patch_save_files = false

#swmodify.patch_commit = true

swremove.mount_all_filesystems = false
swremove.verbose = 0
swremove.software_view = products

swconfig.mount_all_filesystems = false
#

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Dennis Handly
Acclaimed Contributor

Re: How to install a software using swinstall

>Bijo: check for the s/w on the depot.
>#swlist -d @/dir/cfg.depot

I would suggest you not fall into the SD trap of having N ways to do things. You should only use:
swlist -s /dir/cfg.depot
This way your swlist looks like your swinstall.