- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem starting application remotely via SSH
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2008 11:30 AM
12-15-2008 11:30 AM
I'm having a little problem starting Remedy (Action Request System) remotely.
The command server runs HP-UX 11.11
The target server runs Linux 2.4.22-28
We run a script on the HP-UX server to bounce the application.
"ssh root@target '/etc/rc.d/init.d/remedy stop'" works perfectly.
"ssh root@target '/etc/rc.d/init.d/remedy start'" starts the application OK but never returns to the issuing script. It just hangs preventing the script from completing.
Any clues?
RayB
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2008 11:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2008 12:05 PM
12-15-2008 12:05 PM
Re: Problem starting application remotely via SSH
Nope, that is the command exactly as issued.
I'm told you can notice the command on the target server using "ps".
The issuing script continues after you kill the process on the target server.
Almost looks like it's waiting for a confirmation (something like do you want to continue?) but only when triggered remotely.
Strange
Rayb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2008 12:10 PM
12-15-2008 12:10 PM
Re: Problem starting application remotely via SSH
The suggestion was to add -n and see if it now works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2008 05:47 PM
12-15-2008 05:47 PM
Re: Problem starting application remotely via SSH
ssh root@target 'nohup /etc/rc.d/init.d/remedy start &'
But I would get the error in the start/stop script fixed.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2008 05:34 AM
12-16-2008 05:34 AM
Re: Problem starting application remotely via SSH
The startup script on the Linux box has been in use for years and works well both from the command line and from a script (ex nightly backup).
The problem occurs when running it remotely.
I was wondering if it couldn't be something to do with the login process where "ssh root@target" sets up an interactive shell as opposed to "ssh root@target script" does not. There might be a switch or variable that needs to be set or a profile that needs to be run???
The startup script also does an su to another user to start/stop the application.
RayB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2008 08:25 AM
12-16-2008 08:25 AM
Re: Problem starting application remotely via SSH
"ssh -n root@target '/etc/rc.d/init.d/remedy start < /dev/null'
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2008 08:51 AM
12-16-2008 08:51 AM
Re: Problem starting application remotely via SSH
Try ssh -X
ssh -Y to hpux hosts.
Make sure the firewall on the linux box permits port 22.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2008 09:50 AM
12-16-2008 09:50 AM
Re: Problem starting application remotely via SSH
>>ssh -Y to hpux hosts.
I don't see what good that would do. The '-X' and '-Y' options are for X11 forwarding. That would hardly seem to apply here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2008 01:21 AM
12-17-2008 01:21 AM
Re: Problem starting application remotely via SSH
Sometimes it also advisable to use "-o BatchMode=yes"
Usage of X11 Forwarding does not make sense here.
When -n and Batchmode are not enough consider nohup in background like
ssh root@target 'nohup /etc/rc.d/init.d/remedy start >/wherever/startuplog 2>&1 &'
My 2 cents,
Armin