- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to submit a remote script from UNIX to Red...
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
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
04-12-2007 03:55 AM
04-12-2007 03:55 AM
How to submit a remote script from UNIX to RedHat Linux
We have an application running on a RedHat Linux Server communicating between our HP and DB Server.
Our HP Servers have a weekly rebooting schedule and after that, Sys Admin has to login the RedHat Linux Server to restart a script to re-establish the connection between HP and the DB Server.
Can this process be automated ?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:00 AM
04-12-2007 04:00 AM
Re: How to submit a remote script from UNIX to RedHat Linux
Why not use cron on your RedHat apps server just after the rebooting schedule on HPUX servers.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:00 AM
04-12-2007 04:00 AM
Re: How to submit a remote script from UNIX to RedHat Linux
cron can be used to restart the services that were connecting to the HP servers, or simply reboot an short time after the HP servers scheduled reboot.
Many ways to solve the issue depending on what services are involved.
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
04-12-2007 04:12 AM
04-12-2007 04:12 AM
Re: How to submit a remote script from UNIX to RedHat Linux
My CRON script started but either the DB or HP Server was not completely up.
We ended up had to do it manually anyway.
The other option I was thinking of is to use openSSH.
However, I don't know how to setup openSSH between a UNIX and a RedHat LINUX Server.
Has anyone done something like this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:25 AM
04-12-2007 04:25 AM
Re: How to submit a remote script from UNIX to RedHat Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:34 AM
04-12-2007 04:34 AM
Re: How to submit a remote script from UNIX to RedHat Linux
Management long ago decided:
1. Some bad apps running on this server will be "fixed" after the reboot,
2. We need to block off this time slot for any hardware/software maintenance that we may need to do,
3. The reboot should clear any memory leaks issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 04:47 AM
04-12-2007 04:47 AM
Re: How to submit a remote script from UNIX to RedHat Linux
Set up .rhosts in the user's (root?) home directory so that it looks something like this:
hpuxboxhostname root
The .rhosts file should be owned by the user (root?) and have mode set to 400.
Then on your HP-UX box as that user (root?):
remsh linuxboxhostname command
You can verify that you have everything working by issueing something like:
remsh dilbert ls -l /etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 10:58 PM
04-12-2007 10:58 PM
Re: How to submit a remote script from UNIX to RedHat Linux
Hi,
first of all, Clays 1st answer so far sounds as the best to me. Don't reboot, fix the application.
However, the problem, as I understand it, is to have the timing right for starting the scripts.
You might want to create some start script on the HP-Box that creates a file on the Linux-Box in some dir.
Let it start somewhere at the end of the boot process late in runlevel 2 or even 3.
The Linux box controled by cron checks every minute if this file exists in a timeframe (maybe 1 hour) when the HP-Box is supposed to come up again.
The Linux-Box then calls a script (remsh to HP and start processes) and erases the file that was created by the HP-Box.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 11:02 PM
04-12-2007 11:02 PM
Re: How to submit a remote script from UNIX to RedHat Linux
Hi,
first of all, Clays 1st answer so far sounds as the best to me. Don't reboot, fix the application.
However, the problem, as I understand it, is to have the timing right for starting the scripts.
You might want to create some start script on the HP-Box that creates a file on the Linux-Box in some dir.
Let it start somewhere at the end of the boot process late in runlevel 2 or even 3.
The Linux box controled by cron checks every minute if this file exists in a timeframe (maybe 1 hour) when the HP-Box is supposed to come up again.
The Linux-Box then starts the script to establish connection and erases the created file.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 01:24 AM
04-13-2007 01:24 AM
Re: How to submit a remote script from UNIX to RedHat Linux
Unattended restarts are very dangerous! It would be preferable that you just restart the process that you fear is causing a problem.
good luck!
kind regards
yogeeraj