Automated Shutdown Procedure for Solaris/Irix

  • This is for notes on automating a shutdown in preparation for a power outage or other outages.
  • The general procedure goes like this:
    1. update motd a day or so before with the timing of the intended shutdown
    2. update cron with the shutdown command a day or so before
    3. if possible/necessary, send email to key users to let them know of the automated shutdown
  • For Linux, see LinuxAutomatedShutdownProcedure

Solaris

  1. ssh as root into the system to be shutdown
  2. update the motd
# cd /etc
# co -l motd   (this may not work, in which case you can ignore it)
# vi motd
 - add something like:
  March 22, 2005
  ai0 will be shutdown at 4:30am Wednesday, March 23rd,
  for a planned power outage in DC.
# ci -u motd   (then this won't work either)
  1. add the crontab entry:
 - set the VISUAL variable for your shell.  
   In bash/sh, it can be done like this:
     # bash
     # VISUAL=vi
     # export VISUAL
   In tcsh, it can be done like this:
     # tcsh
     # setenv VISUAL 'vi'
# crontab -e
 - add lines to the end like:
### Temporary additon to handle scheduled power outage (lfolland 2005/03/20)
0 3 23 3 * /usr/sbin/shutdown -y -i5 "Scheduled Power Outage March 23, 2005 at 3am"
  • (save and exit - this automatically updates the crontab)
  • Note in the above: "0 3 23 3 *" = 0 minutes, 3 hours (ie: 3am), 22nd day of any month, 3 - March, * any day of the week

Irix

  • Mostly the same as above with the variation in the shutdown command
### Temporary additon to handle scheduled power outage (lfolland 2005/03/20)
0 3 23 3 * cd /; /etc/shutdown -y -g300 -i0 -p

-- LawrenceFolland - 22 Mar 2005

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2006-02-08 - IsaacMorland
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback