Enabling and disabling intelligent resource monitoring (IMF) for agents

Review the following procedures to enable or disable intelligent resource monitoring manually. The intelligent resource monitoring feature is enabled by default. The IMF resource type attribute determines whether an IMF-aware agent must perform intelligent resource monitoring.

Note:

VCS provides haimfconfig script to enable and disable IMF for agents. You can use the script when VCS is running or when VCS is stopped. Use the script to enable or disable IMF for the IMF-aware bundled agents, enterprise agents, and custom agents.

For additional information, refer to Enabling and disabling IMF for agents by using script section in Cluster Server Administrator's Guide.

See How the Sybase and SybaseBk agents support intelligent resource monitoring .

Note:

All Sybase resources in the cluster gets modified when you enable or disable IMF monitoring for agents.

To enable intelligent resource monitoring

  1. Make the VCS configuration writable.
    # haconf -makerw
  2. Run the following command to enable intelligent resource monitoring.
    • To enable intelligent monitoring of offline resources:

      # hatype -modify resource_type IMF -update Mode 1
    • To enable intelligent monitoring of online resources:

      # hatype -modify resource_type IMF -update Mode 2
    • To enable intelligent monitoring of both online and offline resources:

      # hatype -modify resource_type IMF -update Mode 3

    You can also change the values of the MonitorFreq key and the RegisterRetryLimit key of the IMF attribute.

    See Attribute definitions for the Sybase agent.

    See Attribute definitions for the SybaseBk agent.

  3. Save the VCS configuration
    # haconf -dump -makero
  4. Make sure that the AMF kernel driver is configured on all nodes in the cluster.
    • /etc/init.d/amf.rc status
  5. Restart the agent. Run the following commands on each node.
    # haagent -stop agent_name -force -sys sys_name
    # haagent -start agent_name -sys sys_name

To disable intelligent resource monitoring

  1. Make the VCS configuration writable.
    # haconf -makerw
  2. To disable intelligent resource monitoring for all the resources of a certain type, run the following command:
    # hatype -modify Sybase IMF -update Mode 0
  3. To disable intelligent resource monitoring for a specific resource, run the following command:
    # hares -override resource_name IMF
    # hares -modify resource_name IMF -update Mode 0
  4. Save the VCS configuration.
    # haconf -dump -makero