1847253 Members
4303 Online
110263 Solutions
New Discussion

Re: swinstall

 
Donny Jekels
Respected Contributor

swinstall

I added these entries in my /var/adm/sw/defaults file.

distribution_source_directory = /sdux
swinstall.source_type = directory
swcopy.source_type = directory
swinstall.source_cdrom = /sdux
swcopy.source_cdrom = /sdux

However when I run swinstall, the GUI still searches for a stupid CDROM drive. Any ideas?
"Vision, is the art of seeing the invisible"
12 REPLIES 12
Donny Jekels
Respected Contributor

Re: swinstall

and yes I did restart swagentd.
"Vision, is the art of seeing the invisible"
Michael Steele_2
Honored Contributor

Re: swinstall

NO spaces: ' = ' try '='.
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: swinstall

Temporary depot:

cd /tmp
for X in PH*
do
sh $X
done
mkdir /tmp/PATCHES.depot
for X in /tmp/PH*.depot
do
swcopy -x enforce_dependencies=false -s ${X} \* @ /tmp/PATCHES.depot
done
Support Fatherhood - Stop Family Law
Jim Mallett
Honored Contributor

Re: swinstall

Unregister /cdrom as a depot:
swreg -u -l depot /cdrom

Hindsight is 20/20
S.K. Chan
Honored Contributor

Re: swinstall

Your syntax does not look right. Refering to /usr/lib/sw/sys.defaults file shouldn't your first line be this instead ..?
swinstall.distribution_source_directory = /sdux
Sridhar Bhaskarla
Honored Contributor

Re: swinstall

Hi,

There are three types of distrubion_source_directory. swcopy, swinstall and swpackage.

You first distribution_source_directory should have either of them as a prefix like swcopy.distribution_source_directory as mentioned in the defaults file.

You do not need to specify the *.source_type s as they are defined as directories by deefault.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Donny Jekels
Respected Contributor

Re: swinstall

thanks, I will check this in the morning!
"Vision, is the art of seeing the invisible"
Donny Jekels
Respected Contributor

Re: swinstall

none of the above works?
thanks for your input though!
"Vision, is the art of seeing the invisible"
Bill Douglass
Esteemed Contributor

Re: swinstall

The delay on my hosts occurs when swinstall executes /usr/sam/lbin/find_cdroms, which in turn calls ioscan -kFC disk. On the systems connected to the SAN with the XP512, this set of options for ioscan can take up to 30 seconds. On other boxes, it happens so fast that the CDROM search doesn't even show up on the GUI.
Donny Jekels
Respected Contributor

Re: swinstall

Bill,

I have tested this on other 11.00 boxes and found that 1.

The box I am trying to get swinstall to skip the CDROM is using swinstall version from 1995.

However the same defaults file works perfectly on a box with a swinstall version of sept 2002.

I copied the newer version in place, and now the CDROM is not searched for. Perfect.

No ioscan, nothing- type swinstall the gui comes up and Bam. the depot folder is right there.

Thanks everyone else for your input.


peace
Donny
"Vision, is the art of seeing the invisible"
RolandH
Honored Contributor

Re: swinstall

This will be done since hpux 11.00.

If you not want that every time will be looked for a cdrom you must rename the file.

/usr/sam/lbin/find_cdroms
to what ever you want.

I remember me on V-Class Servers it takes a lot of time for searching so I renamed this file to ORG.find_cdroms and then it starts very fast.


Regards Roland
Sometimes you lose and sometimes the others win
Donny Jekels
Respected Contributor

Re: swinstall

Roland,

Yes that will work too, but I don't want to change the find_cdrom binary every time.

the defaults file work great.

also there is a Cumalative Patch for SD-UX PHCO_27672 for those interrested!
"Vision, is the art of seeing the invisible"