Re: Shutdown script for apple Mac
Re: Shutdown script for apple Mac
- Subject: Re: Shutdown script for apple Mac
- From: Bryan <email@hidden>
- Date: Wed, 11 Jul 2001 03:41:22 -0400
- Organization: Apex Radiology
If Multilink has the ability to send an e-mail, then the shutdown side
of what you are asking for can be accomplished with John Schilling's
"Albert" application.
Albert is assigned a POP3 e-mail address which it checks at an assigned
frequency. If it receives an e-mail with the subject line
"Albert:shut_down_the_computer"
it will launch the script application
"shut_down_the_computer".
This is a free solution for shutdown, but keep in mind the poor performance
of POP3.
Relaunching is another story entirely however.
You can restart the Mac by PowerKey Pro through a phone line. See the
info at: Sophisticated Circuits, Inc.
The PowerKey Pro 600 allows dial up execution of applescripts (including
backup and shutdown etc.) as well as dial up power-ups.
All that would be required is sending phone key tones via modem.
Although not required, a dedicated phone line would be very desirable.
There is also the possibility of using the embedded "tiny" web sever in
"Keep It Up" to do shutdowns, but you would have to use http submits
to send the commands, and I have no idea how you would code that on
the PC side.
Keep It Up
If the Mac is running a web server, executing an applescript via a CGI is
supposed to be very straight forward. There are probably plenty of people
on this list that can help do that, but again that doesn't help with the
startup
side.
If the power is shut off, the system can auto restart when the power returns;
but if you want to leave the system off after shutdown and not drain
the UPS, you need to generate a boot signal somewhere.
The Mac Power Manager supports APC and MGE UPS's
APC Shutdown Manager for Mac OS
Software Library - MacOS 9
TrippLite software supports other UPS's in addition to their own:
]
Tripp Lite UPS Systems (by category)
BC Pro
Internet Office
OmniSmart/OmniPro
OmniTel
SmartOnline/Unison
SmartPro
SmartPro DataCenter
Other UPS Systems (by manufacturer)
APC Back-UPS
APC Smart-UPS
Best Fortress
Best Patriot
Deltec PowerRite
Excide OneUPS
IBM Network Professional
IBM Office Professional
Liebert PowerSure
MGE EL7
Minuteman MBK
Minuteman Pro
Oneac ON
OPTI-UPS PowerVS
ParaSystems Pro
PowerCom King
SL Waber UPStart
TrippLite uses a variety of signaling protocols and may even be
able to interact with your system via SNMP, Telnet or Modem Line.
Perhaps the simplest (KISS) solution is to use a folder attachment on
the Mac if it's a server; in the fashion presented by Greg.
Have your NT server move a file to the attached folder on the Mac.
The folder action should be a shutdown script, a file in this folder
triggers the script attached to the folder.
As soon as the NT machine detects the Mac is shut down, then
the NT machine can shut down.
The UPS should then shut off power to both.
When the power returns, the UPS should resupply power.
Both machines should be pre configured to restart on the return of power.
Bryan Kaufman
email@hidden wrote:
>
Hi Apple Script Users,
>
>
We have a customer who is running UPS, with our Shutdown software on a
>
Windows server. The shutdown software, which gracefully closes down the
>
operating system, is Multilink 3.0, downloadable from the Liebert.com
>
website. Anyway, the customer also wants to shutdown his MAC server also
>
based on power events. While Multilink 3.0 is available for Windows, it is
>
not currently available for MAC. However, Multilink 3.0, (whatever
>
version) does have command file/execute batch option also for each power
>
event. What I need to know is:
>
>
1) Is it possible to enter an apple script event, onto a Windows Server
>
application, to then notify the MAC server on network.
>
E.g. On Power event, (say UPS on battery), can a basic script be written,
>
and added to Multilink on the Windows Server, E.g. : "Start shutdown of
>
10.10.10.10 (MAC Server)", with this message being sent through network to
>
MAC.
>
>
OR
>
>
2) Is it possible to write an apple script on the MAC server, for shutdown,
>
then to start this shutdown file, can a basic script be written to notify
>
the MAC from the Windows Application Multilink.E.g. "Windows 10.10.10.1
>
send start message to execute XYZ.exe (apple script) on MAC Server
>
10.10.10.10".
>
>
Of course, based on these questions, we also need to be able to re-start
>
the MAC server, when power has returned to normal.
>
>
I would interested in answers to these questions, and/or if this has
>
already been done, how to access this information?
>
I am happy to start doing internet course to learn Applescript, if required
>
to assist my customers.
>
>
Thank you in advance for your assistance,
>
Regards,
>
email@hidden
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users