Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

Enterprise Edition16.3.2 Installation/Operation Information Acquisition API/EE [Windows]

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.
The precise return value varies depending on the product version/level.
- For V13.8.0:
140*65536+40=(9175080)10=(8C0028)16
- For V13.3.0/V13.3.1:
130*65536+40=(8519720)10=(820028)16
In the case of Systemwalker Operation Manager V13.2.0 or earlier, the first 2 bytes indicate the version, and the last 2 bytes indicate the level.

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).
- For V13.2.0:

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);
}