9.8 jslmmgrdbcleanup (cleans up database)
Function
This command deletes unneeded data, including the data that remained when monitored services were deleted and data that was created when database errors occurred. By deleting unneeded data, you can obtain free space for the database.
To ensure the efficient use of space in the database, we recommend that you clean up the database periodically (on a daily to weekly basis).
Execute this command while the following SLM - Manager services are running:
SLM - Manager DB Service (service name: HiRDBEmbeddedEdition_JL0)
SLM - Manager Service (service name: JP1_ITSLM_MGR_Service)
In a cluster system, execute this command on the active server (if the command is executed on the standby server, an error will result).
If the -r option is specified, this command deletes RD areas to which no monitored service is assigned. If the -r option is omitted, this command deletes any unneeded data in an RD area, but the RD area will remain and can be reused.
jslmmgrdbcleanup is set as the identifier in the messages that this command outputs to the message logs.
For details about the message logs, see 7.2.4 Message logs.
For details about the messages displayed during command execution, see 11.3 Messages.
Format
jslmmgrdbcleanup [ -r ]
Execution permission
User account that belongs to the OS's Administrators group
Storage folder
SLM-Manager-installation-folder\mgr\bin\
Arguments
-r
Deletes RD areas to which no monitored service is assigned, in addition to deleting unneeded data in the database.
Notes
Do not execute another command while this command is executing, except for the jslmminfoget command.
This command does not apply to access logs. Access logs are deleted using the standard OS commands for deleting files and folders.
- If you delete a monitored service without executing the jslmmgrdbcleanup command, the RD area that was used by the applicable monitored service will not be reused. If no reusable RD area exists, a new RD area is created when a monitored service is newly registered. When estimating the size of the database area, if there is no leeway in the number of monitored services, you must first delete a monitored service and then execute the jslmmgrdbcleanup command to make the RD area reusable.
-
If you specify the -r option, do not register or delete any monitored services while this command is being executed.
Return value
Return value |
Description |
---|---|
0 |
Database cleanup processing terminated normally. |
1 |
Database cleanup processing failed. |
130 |
The process has been interrupted by pressing Ctrl+C. |
Example
C:\Program Files\HITACHI\JP1ITSLM\mgr\bin\jslmmgrdbcleanup