jimgndbstatus
- Organization of this page
Function
This command checks the operating Status, such as starting and stopping Intelligent Integrated Management Database service and the trend data management service.
If the -ri option is specified, you can check the retention period of the Intelligent Integrated Management Database (Trend Data Management DB).
When the -rs option is specified, you can check the last execution date, end date, and next scheduled execution date for the process of deleting data that has exceeded the retention period of the Intelligent Integrated Management Database (Trend Data Management DB).
Format
jimgndbstatus [{-ri | -rs}]
[-h logical-host-name]The command arguments are in no particular order.
Execution permission
In Windows: Administrator permissions (if the Windows UAC feature is enabled, the command is executed from the administrator console)
In Linux: Superuser permissions
Storage directory
- In Windows:
-
Manager-path\bin\imgndb\
- In Linux:
-
/opt/jp1imm/bin/imgndb/
Arguments
- -ri
-
When this option is specified, the retention period of trend data in the trend data management DB is output as the KNAN12099-I message.
- -rs
-
When this option is specified, the trend data in the trend data management DB checks whether the retention period has expired and outputs the following information about the execution schedule of the deletion process of the data that has exceeded the retention period in the KNAN12054-I message.
-
Last start date and time (start date and time of last run)
-
Last end date and time (end date and time of last run)
-
Next start date and time (next execution start date and time)
For details about the KNAN12054-I message, including the formats for Date/time files (Last Date/time, Last Date/time, Next Start Date/time), see the JP1/Integrated Management 3 - Manager Messages.
-
- -h logical-host-name
-
When operating on a clustered system, specify the logical host name of the host on which the command is executed.
Checks the operating Status of Intelligent Integrated Management Database corresponding to the specified Logical host. If you are not using a cluster system, you do not need to specify it.
If this option is omitted, the logical host name specified in the environment variable JP1_HOSTNAME is assumed. If the environment variable JP1_HOSTNAME is not specified, the physical host name is assumed.
Note that JP1_DEFAULT cannot be specified for the logical host name.
Return values
|
0 |
|
|
1 |
Abnormal termination |
|
12 |
Intelligent Integrated Management Database and Trend Data Management Service are stopped. |
|
16 |
The Intelligent Integrated Management Database is up and the Trend Data Management Service is stopped. |
|
17 |
The Intelligent Integrated Management Database is stopped, and the Trend Data Management Service is started. |
|
20 |
Intelligent Integrated Management database not set up |
Log output
This command outputs the following trace log for each process: The integrated trace log is not output.
-
File name
jimgndbstatus{1|2|3|4|5|6|7|8|9|10}.log#
#: {1|2|3|4|5|6|7|8|9|10} is a number of faces of the file.
-
File size (number of faces)
5,120KB (10 faces)
-
Output destination
- In Windows:
-
Physical host
Manager-path\log\imgndb\#
-
Logical host
user-specified-path-when-created-logical-host-of-JP1/IM - Manager\log\imgndb\
- In Linux:
-
Physical host
/var/opt/jp1imm/log/imgndb/#
-
Logical host
user-specified-path-when-created-logical-host-of-JP1/IM - Manager/jp1imm/log/imgndb/
- #
-
Even in the operation of a logical host, a portion of the log is output to the physical host.
-
Notes
-
For details about Intelligent Integrated Management Database operation command multiplexing execute, see About multiple execution of the commands related to the Intelligent Integrated Management Database.
-
If "unknown" is displayed in the date and time information when the command is executed with the -rs option, it is possible that automatic deletion of trend data is in progress. In this case, you can wait a few moments and run the command again to obtain information about the execution schedule.
Example 1
-
If neither the -ri option nor the -rs option is specified and the result is successful.
>jimgndbstatus KNAN12044-I The processing to confirm the service operating status will now start. KNAN12047-I The Intelligent Integrated Management Database Service is running. KNAN12048-I The trend data management service is running. KNAN12045-I The processing to confirm the service operating status ended normally.
Example 2
-
If the -ri option is specified and the end is successful.
>jimgndbstatus -ri KNAN12044-I The processing to confirm the service operating status will now start. KNAN12099-I The retention period is as follows: 32 days KNAN12045-I The processing to confirm the service operating status ended normally.
Example 3
-
If the -rs option is specified and the end is successful.
>jimgndbstatus -rs KNAN12044-I The processing to confirm the service operating status will now start. KNAN12054-I The previous and next execution schedules are as follows. Previous start date and time : [2021-07-15 17:31:06.83+09] Previous end date and time : [2021-07-15 17:31:07.08+09] Next start date and time : [2021-07-15 18:01:07.08+09] KNAN12045-I The processing to confirm the service operating status ended normally.