This section explains the installation/operation information acquisition API/EE (Mp_StatusMJES_Ex).
Synopsis
#include "f3cuapi.h" long Mp_StatusMJES_Ex(int system_num)
Description
This API obtains the version/level and operation status of Job Execution Control in Systemwalker Operation Manager EE.
Parameter
system_num
Specify operating target subsystem number using a range of 0 to 9.
Return Values
Return Value | Meaning | Action |
|---|---|---|
0 | Job Execution Control is not running. | - |
1 or greater | Job Execution Control is running. In the case of Systemwalker Operation Manager V13.2.0, the version is 130 (the integer preceding the first period x 10) and the level is 30 (the integer preceding the second period x 10 + 10 + the integer following the second period). 130*65536+30=(8519710)10=(82001E)16 | - |
-1 | A system error occurred. | Collect "Job Execution Control" information with the maintenance information collection tool and contact a Fujitsu SE. |
Note that in the event of a system error, GetLastError()can be used to obtain detailed error codes.
Program Example
Below is an example program of the installation/operation information acquisition API/EE:
#include <windows.h>
#include <stdio.h>
#include "f3cuapi.h"
int main (int argc, char **argv)
{
long rtn;
int system_num;
system_num = 0;
rtn = Mp_StatusMJES_Ex (system_num);
switch (rtn) {
case 0:
printf ("Systemwalker MpMjes service is not running.\n");
return (1);
case MJSESYSER:
printf ("GetLastError() is %d\n", GetLastError());
printf ("System error occurred.\n");
return (1);
}
printf ("Version : %d\n", rtn / 65536);
printf ("Level : %d\n", rtn % 65536);
return (0);
}