From: tihor@acf3.NYU.EDU (Stephen Tihor)
Subject: Re: UPS advice, and how to do a remote shutdown (shutdown from C)?
Date: 7 Aug 91 18:14:00 GMT [thread overview]
Message-ID: <23030005@acf3.NYU.EDU> (raw)
In-Reply-To: 1991Aug7.160101.23503@athena.mit.edu
To shutdown a VMS system you will want to run a detached process since the
shutdown code, by its nature, can not be ru8n successfully from say a batch job.
You want something like the two examples below from our network triggered
over temperature shutdown system.
$!-----------------------------------------------------------
$ SET NOON ! run detached shutdown process
$ STOP SHUTDOWN
$ RUN/UIC=SYSTEM/INPUT=CLUSTER$MANAGER:DET_SHUTDOWN.COM-
/PROCESS_NAME="SHUTDOWN" -
/OUTPUT=SYS$MANAGER:DET_SHUTDOWN.LOG SYS$SYSTEM:LOGINOUT
$!-----------------------------------------------------------
$ set noverify ! Detached shutdown procedure
$ set noon
$ request/to=central "Starting detached shutdown"
$ ! Time reasons spindowndisks sitespecific backup autoreboot
$ ! remove_node,reboot
$ if p1 .eqs. "" then p1 = F$STRING(120)
$ reason = "Temperature exceeds safe level in machine room"
$ minutes = F$INTEGER(p1)
$ define shutdown$inform_nodes 'F$GETSYI("SCSNODE")'
$ @sys$system:shutdown 'minutes' "''reason'" NO YES "within half an hour" -
YES "REMOVE_NODE,REBOOT_CHECK"
! YES "CLUSTER,REBOOT_CHECK"
$ request/to=central "Detached shutdown aborted?"
parent reply other threads:[~1991-08-07 18:14 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1991Aug7.160101.23503@athena.mit.edu>]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox