- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Scheduling an start-up for my system
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
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
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
тАО06-07-2005 11:13 PM
тАО06-07-2005 11:13 PM
Scheduling an start-up for my system
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2005 11:21 PM
тАО06-07-2005 11:21 PM
Re: Scheduling an start-up for my system
If you put the machine in halt state, you can reset and bring it on from other system. In this case, you will be using a tool like expect to connect to GSP and do a system reset from there. This looks quite possible.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2005 11:22 PM
тАО06-07-2005 11:22 PM
Re: Scheduling an start-up for my system
You can reboot -r -t
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 01:39 AM
тАО06-08-2005 01:39 AM
Re: Scheduling an start-up for my system
As mentioned by RAC above, you would need to install EXPECT tool in one of your systems, and schedule a script which communicated with the GSP and issues a "PC -on" command to the system.
Regards,
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 02:02 AM
тАО06-08-2005 02:02 AM
Re: Scheduling an start-up for my system
What is your default init level?
My guess is that it is 3.
So, go to /sbin/rc3.d (if the default level is 4, then put in a 4.
Now, we're going to recreate HP's missing local.rc file that they use to provide - only with much less functionality. This file went away with HPUX 10.x, so I lived without it until version 11.11 - until I got a set of Linux boxes, and realized how much I liked having it - so I put it back myelf. This command runs "last" after your systems boots. I say "last" because the number that says it runs last is the "99" that I put in it. If there exists Sxxxx files in the /sbin/rc3.d directory that have a higher number - then it won't be last anymore.
Warning: the proper way to do this would be much better and make sure to run shutdown commands when you shutdown - this one doesn't. You can look at other Sxxfiles in this directory and take that up if you wish.
cd /sbin/rc3.d
touch S99rc.local
chmod 750 S99rc.local
chown root:bin S99rc.local
Now, vi S99rc.local and add the following lines...
#!/sbin/sh
#
# This is my very own rc.local replacement utility...
# HP must have forgot to put it back in. :-)
#
#Put the commands you want to run on boot up below here.
Now, put your command you want to run at the end of the file above.
Keep in mind a few things... this is "sh" not "ksh" or "bash". Also, you'll need to set up all of the environment variables needed to make your command run in the script you call (don't put them in the S99rc.local script). You'll have to put the full path to the command you want to run. If the program you're starting doesn't/shouldn't be run as root - you'll need to do an su command and pass a command line to the script you want to run, and if needed, you'll need to remember to set environment variables there before starting your programs.
If you're going to start services that you want shutdown automatically as well - then take a look at some of the other scripts in this directory to see how they do it. For example, the script for starting and stopping samba is very clean and easy to understand and use as a template if you have that installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2005 02:07 AM
тАО06-08-2005 02:07 AM
Re: Scheduling an start-up for my system
Pete
Pete