United States-English |
|
|
HP-UX Reference > Ppower_onoff(1M)HP-UX 11i Version 3: February 2007 |
|
NAMEpower_onoff — timed, automatic system power on, and power off SYNOPSIS/usr/sbin/power_onoff -n /usr/sbin/power_onoff time [date] [[next | +increment ] time_designation] DESCRIPTIONpower_onoff instructs the UPS monitor (ups_mond) to shut down the system, and optionally informs the monitor when to power on the system again. The UPS monitor in turn instructs the uninterruptible power source (UPS) when to turn the power off and on. The UPS monitor then proceeds to shut down the system. The time to restart the system (power on) is specified with power_onoff command-line arguments. Some UPS units limit the time that can elapse between the time the power is turned off and the time it is turned back on. Please see your UPS documentation for information about limitations. power_onoff requires a UPS that is supported by the UPS monitor (see ups_mond(1M)). Command Line ArgumentsThe power_onoff command has two forms, and recognizes the following arguments:
DIAGNOSTICSpower_onoff issues diagnostic messages when it encounters syntax errors and out-of-range times. EXAMPLESTo startup the system at 5:00 am next Tuesday, use power_onoff 5am Tuesday next week To startup the system at 5:30 am tomorrow, use power_onoff 5:30 tomorrow To make your system startup each weekday at 7:30 am and shutdown at 5:30 pm each week day, use crontab to execute the first entry on Monday through Thursday and the second entry on Friday (see crontab(1)).
To startup the system at 8:15 on January 24, use power_onoff 0815 Jan 24 To startup the system at 5:15 on January 24, use power_onoff 5:15 Jan 24 To startup the system at 9:30 tomorrow, use power_onoff 9:30am tomorrow To startup the system 24 hours from now, use power_onoff now + 1 day To shutdown the system and not start it up, use power_onoff -n WARNINGSJobs can be submitted up to 2037. If jobs were submitted any later than 2037, an error message will display "BAD DATE". Some UPS units limit the time that can elapse between the time the power is turned off and the time it is turned back on. Please see your UPS documentation for information about limitations. If the date argument begins with a number and the time argument is also numeric (and without suffix), the time argument should be a four-digit number that can be correctly interpreted as hours and minutes. Do not use both next and + increment within a single power_onoff command; only the first operator is accepted and the trailing operator is ignored. No warning or error is produced. The power cord must be disconnected before servicing the unit. |
Printable version | ||
|