Operating System - HP-UX
1748167 Members
4005 Online
108758 Solutions
New Discussion юеВ

Re: unable to access depot from another server ?

 
SOLVED
Go to solution
Jerry_109
Super Advisor

unable to access depot from another server ?

# uname -a ; model
HP-UX vlufnhrp B.11.31 U ia64 hp server rx764

When attempting to access depot from
server=vlum
depot=/scif/prehpsim

I receive permission error. I am using swinstall as root. Why am I getting this error.

###############
root@vlum[/root]
# uname -a ; model
HP-UX vlum B.11.31 U ia64 hp server rx2660
# swlist -s /scif/prehpsim
# Initializing...
# Contacting target "vlum"...
#
# Target: vlum:/scif/prehpsim
#

#
# Bundle(s):
#

MD5Checksum A.01.01.02 HP-UX MD5 Secure Checksum
OnlineDiag B.11.31.05.06 HPUX 11.31 Support Tools Bundle, March 2009
SysFaultMgmt C.05.00.06.01 HPUX System Fault Management
###############
12 REPLIES 12
Dennis Handly
Acclaimed Contributor
Solution

Re: unable to access depot from another server ?

You seem to access the depot from the local machine, vlum. Can you show the command error message accessing it from vlufnhrp?
Have you registered the depot?
R.K. #
Honored Contributor

Re: unable to access depot from another server ?

Hi Jerry,

To view the depots available on server1 from server2, you can try command:

server2# swlist -l depot @ server1

And to view the contents of a particular depot on server2, you can try:

server2# swlist @ server2:

Hope this helps!
R.K.
Don't fix what ain't broke
Dennis Handly
Acclaimed Contributor

Re: unable to access depot from another server ?

>R.K.: swlist -l depot @ server1

I would suggest you not fall into the SD trap of having N ways of doing things.
You should only use -s for source:
swlist -l depot -s server1
swlist -s server2:
R.K. #
Honored Contributor

Re: unable to access depot from another server ?

Thanks Dennis.....will take care of this in future :)
Don't fix what ain't broke
Jerry_109
Super Advisor

Re: unable to access depot from another server ?

It indicates I do not have permission. I have root access to server1.

#################
# swlist -l depot -s vlum:/scif/prehpsim
# Initializing...
ERROR: "vlum:/scif/prehpsim": You do not have permission for this
operation. The depot owner, system administrator, or
alternate root owner may need to use the "swreg" or "swacl"
command to give you permission. Or, to manage applications
designed and packaged for nonprivileged mode, see the
"run_as_superuser" option in the "sd" man page.
#################
Proboi
Advisor

Re: unable to access depot from another server ?

Hi Jerry,
The error might be misleading, I have seen this before and swagentd sometimes goes for a walk, restarting it fixed it

you can safely run this command ( unless you are running sw* commands like swinstall on the server )

# swagentd -r

-r is to restart the deamon, no harm in restarting it on both the servers

then try the swlist
Jerry_109
Super Advisor

Re: unable to access depot from another server ?

ran the "swagentd -r" cmd on both servers, but I still receive the same error. It's interesting, how I can execute the swinstall cmd from the "cmd line" but not from gui? Also the swlist cmd delivers the permission error.

I ran the "swreg" cmd, but still get permission error.

++++++++++++
root@vlum[/root]
# swreg -l depot /scif/prehpsim

======= 04/28/09 12:36:48 PDT BEGIN swreg SESSION (non-interactive)

* Session started for user "root@vlum".

* Beginning Selection
* Targets: vlum
* Objects: /scif/prehpsim
* Selection succeeded.



======= 04/28/09 12:36:48 PDT END swreg SESSION (non-interactive)
++++++++++++
Tingli
Esteemed Contributor

Re: unable to access depot from another server ?

Do you have a full path for the depot?
Jerry_109
Super Advisor

Re: unable to access depot from another server ?

yes, I included the full path.