System Administration

Re: problem registering a directory as a software depot

 
SOLVED
Go to solution
Quark
Valued Contributor

problem registering a directory as a software depot

Hi,

I want to register a directory as a software depot.
I used the following command (like stated in the manual):
swreg -l depot /mydir

However, I get the following error:
"
ERROR: There is currently no depot software on host "myhost" at
location "/mydir". Make sure that an absolute pathname is
specified for location (beginning with "/").
"

Any ideas? I seems really simple to do so I am guessing I am missing the obvious here.

any help much appreciated.

Kd
8 REPLIES 8
Ranjith_5
Honored Contributor

Re: problem registering a directory as a software depot

Hi Kris,

is "depot" is a host name?

in that case path should be depot:/mydir

regards,
Syam
Ranjith_5
Honored Contributor

Re: problem registering a directory as a software depot

Ignore my last post. Im sorry to post wrongly.no pts for all.

Regards,
Syam
G. Vrijhoeven
Honored Contributor
Solution

Re: problem registering a directory as a software depot

Hi Kd,

It looks like there is no depot software at the location /mydir. Use swcopy/swpackage to copy software to that dir and after that use the swreg -l depot /mydir command to register the depot.

HTH,

Gideon
Ivajlo Yanakiev
Respected Contributor

Re: problem registering a directory as a software depot

I try this for you :) and it work for me

swreg -l depot /tmp/HP_LTT35.depot
Quark
Valued Contributor

Re: problem registering a directory as a software depot

Hi,

no depot is the level of the object that you want to register. The man page states that you have 'depot','root','shroot','prroot'.
I want to register a depot so,

swreg -l depot

It should would but alas ...

Kd
Ivajlo Yanakiev
Respected Contributor

Re: problem registering a directory as a software depot

Yes
you need
swcopy not just cp to copy depots

G. Vrijhoeven
Honored Contributor

Re: problem registering a directory as a software depot

Kris,

You a right about the different options in swreg, but it is not possible to register an empty dir as depot, but...
if you edit the
/var/adm/sw/host_object file and add a line:
path /mydir

stop the swagentd and resart it using:
/usr/sbin/swagentd -r

Use this at your own risk.

HTH,

Gideon
Ranjith_5
Honored Contributor

Re: problem registering a directory as a software depot

Hi Kris,


I feel u haven't done swcopy properly.

First download all the patches in /tmp/patches. Then do

cd /tmp/patches
for i in PH*
do
swcopy -s /tmp/patches/$i \* @ /mydir/mypatches.depot
done

after this try issuing the command

#swreg -l depot /mydir

can u pls try this

regards,
Syam