- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shutdown server using remsh
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
Discussions
Discussions
Discussions
Forums
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
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-02-2001 10:04 PM
тАО12-02-2001 10:04 PM
I have 2 servers on my site that are totally dependent. One is running my database and the other my application server.
I have a UPS monitoring software that shutdowns the Database server when a long power cut occurs. I cannot use the monitoring software on my Application server.
I have already setup my remsh environment and done simple tests. IT works.
I have configured shutdown scripts (/sbin/rc0.d/K001shutdownLclass and appropriate files) to contain shutdown commands to run on the remote host (Application Server). IT DOES NOT WORK!!
During the shutdown of my database server, i can see the Message that i had included in the script but nothing happens on the remote host...
Anyone please guide me.
thanks in advance
Yogeeraj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2001 01:53 AM
тАО12-03-2001 01:53 AM
Re: Shutdown server using remsh
Just a note. For shutdown to work, it must run from the / directory.
Check whether after you remsh'ed over, that your shutdown script cd to / before executing shutdown.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2001 02:10 AM
тАО12-03-2001 02:10 AM
SolutionRead the man page for 'rc'. I suggest you put your kill script that sends the remote messages to the other server in rc2.d, before shutting down the network.
When the server is doing the transition to level 0, it passes the levels 2 and 1, where the network is stopped. Your script, being in rc0, is executed after the network is stopped so it would be a true wonder to work.
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2001 03:46 AM
тАО12-03-2001 03:46 AM
Re: Shutdown server using remsh
I agree with Eugen. You should take a look at the white paper below. It can be read very quickly and gives a complete definition of the rules for setting up startup and shutdown scripts. From this document you will note that run-level 3 is a networked, multi-user state. Generally this is where user startup scripts reside, with their kill couterparts one level lower as run-level 2.
http://docs.hp.com/hpux/onlinedocs/os/startup.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2001 05:08 AM
тАО12-03-2001 05:08 AM
Re: Shutdown server using remsh
Timeout. It won't work since by the time
the system reaches runlevel 1 (to execute scripts under rc0.d directory), its network services are shutdown.
Put the script in /sbin/rc3.d . it should work fine. Also, in the script do a ping -n 5 remotehost and redirect the output to a logfile, such that you can confirm later whether the remote system is accessible during the script execution.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2001 09:14 AM
тАО12-03-2001 09:14 AM
Re: Shutdown server using remsh
Hope this helps.
Stev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2001 11:02 AM
тАО12-03-2001 11:02 AM
Re: Shutdown server using remsh
remsh l2000 "cd / ; shutdown -h -y 0" &
do not wait for L200 to shutdown before proceeding with the shutdown. because if it takes forever for the app server to shutdown, you might run out of juice in your UPS.