Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

18.5 Day Change Time Arrival Exit

This explains the exit program called up when the day change time set in the calendar function arrives.

[Windows]

If the day change time arrives, the system searches for the exit program in the timeexit.bat first and then in the timeexit.exe. The exit program found will be used. If the timeexit.bat is found, timeexit.exe will not be called up even if it exists.

If you want to use this exit to perform custom processing, create an exit program with the same name and store it in the following directory:

<Systemwalker installation directory>\MpWalker.JM\bin

[UNIX]

If the day change time arrives, the system searches for and calls the jobsch.time.exit file as the exit program.

If you want to use this exit to perform custom processing, create an exit program with the same name and store it in the following directory:

Solaris/Linux:

/opt/FJSVJOBSC/bin

HP-UX:

/opt/FHPJOBSCH/bin

AIX:

/usr/FAIXJOBSC/bin

Appropriate execution privileges are required to execute the exit program. If relevant privileges are not set, the exit program will not be called.

Parameters Passed to the Exit Program

The parameters passed to the exit program are shown below.

argc:

Number of parameters (1) (Note1)

argv[0]:

Exit program name

argv[1]:

Subsystem number (character string) (Note2)

Note1:

In Systemwalker Operation Manager EE, the number of parameters is two.

Note2:

This parameter is used in Systemwalker Operation Manager EE.

Cautions

Program Example

Below is an example program for the day change time arrival exit:

[Windows]

/*
  Generates a message event called JOBSCH-TIME
*/

#include <stdio.h>
#include <process.h>

main(int argc, char *argv[])
{
    char msg[256];
    memset(msg,0x00,sizeof(msg));
    sprintf_s(msg,sizeof(msg),"jobschmsgevent JOBSCH-TIME-sys%s",argv[1]); 
    system(msg);

    exit(0);
}

[UNIX]

/*
  Example program for the day change time arrival exit (for UNIX),
  which outputs a day change time arrival message on the console
*/
#include <syslog.h>
#include <stdio.h>

main(int argc, char *argv[])
{
    char msg[256];
    memset(msg,0x00,sizeof(msg));
    sprintf(msg, "WARNING: Day change time has come. sys%d",argv[1]);
    openlog("jobsch", LOG_CONS, LOG_USER);
    syslog(LOG_WARNING, msg);
    closelog();

    exit(0);
}