Chapter 4. Workstation hints and tips
45
print "File does'nt exists or Regular calculation\n";
$now+=172800;
($sec,$min,$hour,$S_DAY,$S_MON,$S_YEAR,$wday)=(localtime($now))[0,1,2,3,4,5,6];
$S_YEAR=substr($1900,2,2);
$S_MON+=1;
$S_DOWN=sprintf("%02d%02d%02d%02d%02d",$S_MON,$S_DAY,$S_HOUR,$S_MIN,$S_YEAR);
system ("shutdown -Ft '$S_DOWN' <<EOF
yes
EOF");
#-------------------------------------------------------------------
To cover national holidays or holiday seasons, the file in Example 4-4 can be enhanced with
individual dates to keep the system in a power-off state. For each line, use the following
format: start-day, month, year, number of power-off days. If the file is out of date, the program
will still maintain the regular weekend power off.
Example 4-4 Power off calendar
1 1 2005 3
7 2 2005 5
28 5 2005 4
13 8 2005 3
Implement the entire mechanism through the AIX 5L crontab file. Example 4-5 shows the
additional entry in root’s crontab to execute the Perl script on every Friday at 6:00 p.m.
Example 4-5 Crontab entry for power off and on
# Crontab entry for automatic power off
0 18 * * 5 /usr/local/script/poffpon.pl
4.5 Wake on LAN
Introduced with the POWER5 technology, the flexible service processor (FSP) provides an
additional functionality to the IntelliStation POWER 285 system. In some situations, it is very
helpful to power on a system without physically pushing the white button on the operator
control panel.
Wake on LAN® is implemented only on the integrated Gigabit Ethernet and interfaced to the
FSP. The Ethernet controller supports both Advanced Power Management™ (APM) wake up
and Advanced Configuration and Power Interface (ACPI) wake up. The APM wake up uses
the APM_WAKEUP signal to wake up the system.
Before using the Wake on LAN, it must be activated on the FSP using the ASMI interface.
See 3.2.1, “Service processor” on page 33 for further information.
Note: To execute a Perl script, check if the perl.rte fileset is installed.
Note: Beginning with AIX 5L V5.2 ML4, the
wol
command is integrated in the AIX 5L
operating system.
Содержание IntelliStation POWER 285
Страница 2: ......
Страница 36: ...26 IBM IntelliStation POWER 285 Technical Overview and Introduction...
Страница 58: ...48 IBM IntelliStation POWER 285 Technical Overview and Introduction...
Страница 62: ...52 IBM IntelliStation POWER 285 Technical Overview and Introduction...
Страница 65: ......