Logswap.scr – Visara Master Console Center Scripting Guide User Manual
Page 16
Chapter 1 Script Overview
Scripting Guide
16
Status Change
Reserved Script Name Executed
in Response
MCC is started (this event is not a login).
#startup.scr
MCC is shutdown (this event is not a
logout).
#shutdn.scr
A log file is swapped from current to
backup when full.
#logswap.scr
Temperature or humidity sensor limit is
exceeded.
#snserrs.scr
Temperature or humidity sensor returns
to within limits.
#snsredv.scr
Sensor unit is unreadable.
#snslost.scr
Sensor unit is recovered/readable.
#snsfind.scr
DI port #1 changes to ON.
#dier001.scr
DI port #2 changes to ON.
#dier002.scr
DI port #n changes to ON.
#diernnn.scr
DI port #n changes to OFF.
#dircnnn.scr
DI unit is unreadable.
#dilost.scr
DI unit is recovered/readable.
#difind.scr
DO unit is unreadable.
#dolost.scr
DO unit is recovered/readable.
#dofind.scr
Power unit is unreadable.
#pwrlost.scr
Power unit is recovered/readable.
#pwrfind.scr
Table 1. List of MCC Reserved Scripts executed in response to status changes
Some of these scripts are explained in the following sections.
#logswap.scr
When one of the MCC log files reaches its maximum record limit, the
system:
Deletes the current .BAK file if it exists
Automatically renames the current log file to have a .BAK extension
Opens a new log file
The MCC then executes the #logswap.scr script, sending it three
parameters:
Parm 1. A constant representing the type of backup log (see Manifest
Constants on page 42). (A number.)
Parm 2. The path of the backup log. (A string.)