* Re: UPS advice, and how to do a remote shutdown (shutdown from C)?
[not found] <1991Aug7.160101.23503@athena.mit.edu>
@ 1991-08-07 18:14 ` Stephen Tihor
0 siblings, 0 replies; only message in thread
From: Stephen Tihor @ 1991-08-07 18:14 UTC (permalink / raw)
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?"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1991-08-07 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1991Aug7.160101.23503@athena.mit.edu>
1991-08-07 18:14 ` UPS advice, and how to do a remote shutdown (shutdown from C)? Stephen Tihor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox