Operating System - HP-UX
1828197 Members
2319 Online
109975 Solutions
New Discussion

swinstall through a ssh connection

 
Per-lund
New Member

swinstall through a ssh connection

Hi.
I want to do a swinstall through a ssh connection.

On server A I have reg. a depot called tsm.
From server B i can do a manual swinstall at server B with the command:
ServerB:> swinstall -s serverA:/depot TSM.

On server B I have placed a ssh-key so it is posible to get from serverA to serverB without a password.

Now I want to do the swinstall on server B from server A through a ssh connection.

ServerA:> ssh root@serverB "/usr/sbin/swinstall -s -x autoreboot=true -s ServerA:/depot TSM"

But when I do that i get following error:

RPC exception: "Connection request rejected (dce / rpc)"
08/15/06 11:03:42 METDST
ERROR: A Remote Procedure Call to an agent has failed. Could not
start a management session for "ServerA:/depot". Make sure
the host is accessible from the network.

anyone who have an idea what i am doing wrong ?
3 REPLIES 3
Pupil_1
Trusted Contributor

Re: swinstall through a ssh connection

is swagentd running on serverB?
There is always something new to learn everyday !!
Steven E. Protter
Exalted Contributor

Re: swinstall through a ssh connection

Shalom,

swinstall uses ports other than 22.

To properly install software on a system, swagentd must be running.

I suggest you do ssh to the remote system and swinstall there. You can install on from an NFS mount point so long as the depot there is registered with swreg.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pupil_1
Trusted Contributor

Re: swinstall through a ssh connection

restart swagentd and try again.
There is always something new to learn everyday !!