Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Integrated Management - Manager Administration Guide


5.8.2 Making the switch using the jcochfilter command

You can use the jcochfilter command to switch an event acquisition filter, and to switch between enabling and disabling a common exclusion-condition.

To use the jcochfilter command to switch an event acquisition filter and to switch between enabling and disabling a common exclusion-condition, use the job scheduler function of JP1/AJS and execute the jcochfilter command at the specified time to create a jobnet that starts a maintenance job. You can also automate the process of changing the maintenance job and monitoring state.

Organization of this subsection

(1) Switching an event acquisition filter

Each event acquisition filter is assigned a unique filter ID. By using this filter ID and the jcochfilter command, you can switch an event acquisition filter.

For details about the jcochfilter command, see jcochfilter (1. Commands) in the manual Job Management Partner 1/Integrated Management - Manager Command and Definition File Reference.

To switch an event acquisition filter:

  1. Enter the jcochfilter command and display an event acquisition conditions list.

    Examples follow of displaying an event acquisition conditions list on a physical host and a logical host.

    • Displaying an event acquisition conditions list on a physical host

      Enter the command as follows.

      jcochfilter

    • Displaying an event acquisition conditions list on logical host hostA

      Enter the command as follows.

      jcochfilter -h hostA

    A display example follows of an event acquisition conditions list on logical host hostA.

    Figure 5‒8: Using the jcochfilter command to display an event acquisition conditions list

    [Figure]

    If JP1/IM - Manager on the specified host has not started, you cannot use the command to switch an event acquisition filter.

  2. Select an event acquisition filter based on the filter ID and filter name.

  3. Enter the jcochfilter -i command and switch the event acquisition filter.

    Examples of switching an event acquisition filter on a physical host and a logical host are described below.

    • Switching an event acquisition filter on a physical host to a filter that has a filter ID of 3

      Enter the command as follows.

      jcochfilter -i 3

    • Switching an event acquisition filter on logical host hostA to a filter that has a filter ID of 3

      Enter the command as follows.

      jcochfilter -i 3 -h hostA

(2) Switching between enabling and disabling a common exclusion-condition

Each common exclusion-condition is assigned a unique common exclusion-condition group ID. Using this common exclusion-condition group ID and the jcochfilter command, you can switch between enabling and disabling a common exclusion-condition.

For details about the jcochfilter command, see jcochfilter (1. Commands) in the manual Job Management Partner 1/Integrated Management - Manager Command and Definition File Reference.

To switch between enabling and disabling a common exclusion-condition:

  1. Enter the jcochfilter command and display an event acquisition conditions list.

    Examples of displaying an event acquisition conditions list on a physical host and a logical host are described below.

    • Displaying an event acquisition conditions list on a physical host

      Enter the command as follows.

      jcochfilter

    • Displaying an event acquisition conditions list on logical host hostA

      Enter the command as follows.

      jcochfilter -h hostA

    If JP1/IM - Manager on the specified host has not started, you cannot use the command to switch an event acquisition filter.

  2. Select a common exclusion-conditions group based on the common exclusion-conditions group ID and the common exclusion-conditions group name.

  3. Switch between enabling and disabling the common exclusion-conditions group.

    Use one of the following options to switch between enabling and disabling the common exclusion-conditions group.

    • -e option

      Specify the common exclusion-conditions group ID you want to enable.

      Unspecified common exclusion-conditions groups are disabled.

    • -on or -off option

      Specify the common exclusion-conditions group ID you want to enable.

      The enabling and disabling settings of unspecified common exclusion-conditions groups are not changed.

      These options can be used when the operating mode of the common exclusion-condition is extended mode.

    The following describes an example of switching between enabling and disabling common exclusion-conditions on the physical host and a logical host.

    • On the physical host, the common exclusion-conditions with common exclusion-conditions group ID 3 are enabled, and the common exclusion-conditions with common exclusion-conditions group IDs 1 and 2 are disabled (only the specified common exclusion-conditions groups are changed).

      This specification can be used when the operating mode of the common exclusion-condition is extended mode.

      jcochfilter -on 3 -off 1,2

    • On the physical host, the common exclusion-conditions with common exclusion-conditions group ID 3 are enabled, and the other common exclusion-conditions are disabled.

      jcochfilter -e 3

    • On logical host hostA, the common exclusion-conditions with common exclusion-conditions group ID 3 are enabled, and the other common exclusion-conditions are disabled.

      jcochfilter -e 3 -h hostA