Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

17.6 Completed/Abended Shutdown Exit [Windows]

When the execution of the shutdown job net is completed, Jobscheduler calls up the following shutdown exit programs according to the execution result (Completed, Pseudo-normal, or Abended) of the shutdown job net.

If you want to run some processes in accordance with the result of the shutdown job net, create an exit program with the same name and store it in the following directory:

<Systemwalker installation directory>\MpWalker.JM\bin

At the installation, batch files (jobschendexit.bat and jobschnoendexit.bat) are provided.

Case of Completed or Pseudo-Normal

The system searches for the jobschendexit.bat file first, and then jobschendexit.exe file as the exit program. The exit program found in the search will be used. If jobschendexit.bat is found, jobschendexit.exe will not be called up even if it exists.

The jobschendexit.bat file provided at the installation stops the services of Jobscheduler and Job Execution Control and calls up the queuing completion notification command (f3crheet.exe) with queuing completion notification "system."

In order to shut down your machine, define queuing completion notification "system" in the [Queuing Completion Notification Definition] dialog box.

See the Systemwalker Operation Manager Online Help for this dialog box.

Case of Abended

The system searches for the jobschnoendexit.bat file first, and then the jobschnoendexit.exe file as the exit program. The exit program found in the search will be used. If jobschnoendexit.bat is found, jobschnoendexit.exe will not be called up even if it exists.

In jobschnoendexit.bat provided at the installation, no processing will be executed.

Therefore, when the shutdown job net ends abnormally, the shutdown process will not be executed.

Cautions

Enterprise EditionUsage example in operating subsystem

In operating subsystem, the system should be shut down after terminating all of subsystems. An example of the shutdown exit is shown below.

The parameter to be passed to the exit program is %6 (subsystem number).

echo off

echo shutdown job net exit routine start

if "%6" == "0" goto zero
if not "%6" == "0" goto notzero

:zero
rem --- Systemwalker MpJobsch ---
net stop "Fujitsu MpWalker MpJobsch"
rem --- Systemwalker MpMjes ---
mjstop -sys %6
net stop "Fujitsu MpWalker MpMjes"
goto done

:notzero
rem --- Systemwalker MpJobsch ---
net stop "Fujitsu MpWalker MpJobsch%6"
rem --- Systemwalker MpMjes ---
mjstop -sys %6
net stop "Fujitsu MpWalker MpMjes%6"

:done
f3crheet.exe system%6

If you define the setting like above example, the queuing completion notification to be specified with the f3crheet command must be defined in the [Queuing Completion Notification Definition] dialog box beforehand. As a result, the shutdown process will be postponed until the queuing completion notification specified with the f3crheet command is output.