Hitachi

JP1 Version 12 JP1/Integrated Management 2 - Manager Overview and System Design Guide


6.10 Flow of automated action execution

The following describes how the JP1/IM and JP1/Base functionality are inter-linked in automated action execution, taking as an example the flow of processing from the time a manager receives a JP1 event that triggers an automated action until the action is executed on an agent.

The description below assumes that the definition of the automated action has been completed. (For details on defining an automated action, see 6.3 Defining an automated action).

Figure 6‒8: Flow of processing for automated action execution (command executed on an agent by an automated action)

[Figure]

The flow of processing is described below, following the numbers in the figure:

  1. A JP1 event that triggers an automated action occurs on the agent and is registered with the event service.

  2. The registered JP1 event is forwarded to a higher-level host in accordance with the configuration management definitions, and is registered with that manager's event service.

  3. JP1/IM - Manager (event base service) acquires the registered JP1 event from the event service.

  4. The acquired JP1 event is compared with the automated action definitions, and is passed to the automatic action service if a match is found.

  5. On receiving the JP1 event, the automatic action service passes a command execution request to JP1/Base on the manager.

  6. On receiving the command execution request, JP1/Base on the manager references the configuration information and sends a command execution request to the target host.

  7. JP1/Base on the agent that received the request references the user mapping definitions and then executes the command using the permissions of the mapped OS user.#

    #: User mapping (JP1/Base user management) is processed on the target host where the command is to be executed. Thus, user mapping must be set up in advance on the agent where the automated action is to be executed, or on the manager if the automated action is to be executed on the manager.

  8. After the command has been executed, JP1/Base on the agent reports the result to the higher-level host defined in the configuration definitions.

  9. On receiving the command execution result, JP1/Base on the manager records the result in a command execution log (ISAM) file, and then reports the result to the automatic action service.

  10. The automatic action service outputs the execution result received from JP1/Base to a log, and then passes the execution result to the event base service.

  11. The JP1 event information held by the event base service is displayed in JP1/IM - View through the event console service.

Automated actions are executed by the JP1/Base command execution function. See also 8.4.4 Managing command execution.

Important

If any of the following events occurs during the execution processing of an automated action, the action ceases to proceed through the usual status transition (this applies only to actions whose status is Wait, Send, Queue, Running, Wait (Canceling), Send (Canceling), Queue (Canceling), or Running (Canceling)):

  • The manager, action relay host, or action target host is shut down or otherwise stopped.

  • Network error

  • JP1/Base failure

In such cases, check the status of the automated actions as follows.

Using the JP1/Base jcocmdshow command (supported in version 07-51):

You can check the action status using this command if the automated action was being processed by JP1/Base (command execution management) on the target host.#

#: If the processing request has not yet been received or if processing has ended, you cannot use this command to check the action status.

If an automated action ceases to progress and the jcocmdshow command cannot be used to check its status, evaluate whether it needs to be re-executed, and do so if necessary from the Execute Command window.