Operating System - HP-UX
1833611 Members
3795 Online
110062 Solutions
New Discussion

Re: create a depot from CDROM

 
John McDen
Regular Advisor

create a depot from CDROM

I am trying to use swcopy to copy patches from the support cdrom and am not able to..

This is the procedure I am trying to do..

1. swreg -l depot /cdrom/HWE1100
2. for i in `cat /tmp/patchlist.txt`
do
swcopy /cdrom/HWE1100 $i @ /tmp/Patches
done.

* Session started for user "root@wts".

* Beginning Selection
* "wts:/tmp/Patches": This target does not exist and
will be created.
ERROR: There is currently no depot software on host "wts" at
location "/var/spool/sw". Make sure that an absolute pathname
is specified for location (beginning with "/").
* Source connection failed for "wts:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is wts:/var/adm/sw/swagentd.log).
* Selection had errors.


New to HP
9 REPLIES 9
PIYUSH D. PATEL
Honored Contributor

Re: create a depot from CDROM

Hi,

first do

# mkdir /tmp/Patches
# swreg -l depot @/tmp/Patches

Then Issue the swcopy command.

#swcopy /cdrom/HWE1100 $i @ /tmp/Patches

Piyush
MANOJ SRIVASTAVA
Honored Contributor

Re: create a depot from CDROM

Hi John

you may like to look at this :



http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf46c7e990647d4118fee0090279cd0f9,00.html

for i in `ls PH*`
do
sh $i
swcopy -s /$I.depot \* @ /var/spool/sw
done


Manoj Srivastava
MANOJ SRIVASTAVA
Honored Contributor

Re: create a depot from CDROM

Hi John
Sorry
The expample is when u dont have s/w depot registered , but then u can use the same logic and command sequence .


Manoj srivastava
John McDen
Regular Advisor

Re: create a depot from CDROM

Hello Patel,

I don't think swreg command worked it gives and error currently no software depot...

New to HP
Sanjay_6
Honored Contributor

Re: create a depot from CDROM

Hi John,

Try,

swcopy -s /cdrom/HWE1100 \* @ /tmp/depot

Hope this helps.

Regds
Helen French
Honored Contributor

Re: create a depot from CDROM

Just a thought:

Use option '-s source' with the swcopy command. By default the swcopy takes the source as /var/spool/sw and -s overrides this default.

# swcopy -s /cdrom/...
Life is a promise, fulfill it!
Andi Rigauer
Regular Advisor

Re: create a depot from CDROM

try it with the gui,

set your display variable and run swcopy
god, root where's the difference
MANOJ SRIVASTAVA
Honored Contributor

Re: create a depot from CDROM

Hi John


Just a thought , if you are messed up with the command line , try using the menu.


Manoj Srivastava
Dave Unverhau_1
Honored Contributor

Re: create a depot from CDROM

John,

I believe you can accomplish what you want to do with a single swcopy command:

swcopy -s /cdrom/HWE1100 -f /tmp/patchlist.txt @ /tmp/Patches

I hope this helps...

Dave
Romans 8:28