Operating System - HP-UX
1832988 Members
3892 Online
110048 Solutions
New Discussion

swinstall problem in remote machine

 
George Benetos
Occasional Contributor

swinstall problem in remote machine

I try to install a depot where resides in a machine a
in a machine b.
I start the swinstall process in the machine b give as SOURCE HOST NAME the machine a , but when I give the directory where depots resides , I got an error message telling me that I can not access the depots ...
any ideas ?
thanx ....
8 REPLIES 8
Stefan Farrelly
Honored Contributor

Re: swinstall problem in remote machine


a. Are you running the install as root ?
b. check the files on machine a in the dir;
/var/adm/sw/security

Check the following files contain;
> cat _ACL
# default_realm=
any_other:r----
> cat _OWNER
# default_realm=
num_entries=2
user:root:0
group:sys:0
> cat secrets
default -sdu-

If not change them and run; /sbin/init.d/swagentd stop then /sbin/init.d/swagentd start

but you should also investigate why someone changed the default security permissions.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Mateja Bezjak
Respected Contributor

Re: swinstall problem in remote machine

Hi,

What error do you get? Is it permissions? Can you post the error message. If it is the permissions, you need to use swacl command to set them. Example:
swacl -l depot -M user:root@systemb:crwit

Regards,
Mateja
George Benetos
Occasional Contributor

Re: swinstall problem in remote machine

a. Are you running the install as root ?

yes ..

b. check the files on machine > cat _ACL
# default_realm=
any_other:01

> cat _OWNER
# default_realm=
num_entries=2
user:root:0
group:sys:0
> cat secrets
default -sdu-
Domenico_5
Respected Contributor

Re: swinstall problem in remote machine

hi

on a machine a have you run:

swreg -l depot ??

for example.

bye

Re: swinstall problem in remote machine

Have you changed any of your network config since you last started either system? SD-UX is v. sensitive to network changes - Before trying anything else I'd restart swagentd on *both* hosts by issuing:

/usr/sbin/swagentd -r

And then try the install again.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sachin Patel
Honored Contributor

Re: swinstall problem in remote machine

Hi George,

You need somekind of license to run swinstall on depot over network. But you can still use this here is the trick. I have done it many time.

on system X run swcopy to create a bundle or depot from depot.
X#swcopy /tmp/test.depot @ /home/sachin/testing

Then on system Y
Y#swinstall -s X:/home/sachin/testing \*

Sachin
Is photography a hobby or another way to spend $
Stefan Farrelly
Honored Contributor

Re: swinstall problem in remote machine


The last reply is incorrect.

you do NOT need a license to run swinstall on machine b from a depot on machine a.

You DO need a license to 'push' software from machine a (where the depot lives) to machine b. Doing the first method is called a 'pull' and is the normal method used as it doesnt need a license.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sachin Patel
Honored Contributor

Re: swinstall problem in remote machine

Hi Stefan,
How can I make first mathod worked.

Y#swinstall -s X:/tmp/test.depot
is giving me error that I do not have a permission. How can I open up permission?

Sachin
Is photography a hobby or another way to spend $