Sample IMF configurations

An example of a type definition file for a WebSphere MQ agent that is IMF-enabled is as follows.

In this example, the IMF-related attributes are set to the following values:

AgentFile

opt/VRTSvcs/bin/Script51Agent

IMF{}

{ Mode=2, MonitorFreq=5, RegisterRetryLimit=3 }

IMFRegList[]

{ QueueManager, MQUser, MQVer }

LevelTwoMonitorFreq

25

type WebSphereMQ6 (
   static str AgentDirectory = "/opt/VRTSagents/ha/bin/WebSphereMQ6"
   static str AgentFile = "/opt/VRTSvcs/bin/Script51Agent"
   static int LevelTwoMonitorFreq = 25
   static str ArgList[] = { ResLogLevel, State, IState, QueueManager, 
                            CommandServer, MQUser, MQVer, EnvFile, 
                            SecondLevelMonitor, MonitorProgram, 
                            MonitorListener }
   static boolean AEPTimeout = 1
   static int IMF{} = { Mode=2, MonitorFreq=5, RegisterRetryLimit=3 }
   static str IMFRegList[] = { QueueManager, MQUser, MQVer }
   str ResLogLevel = INFO
   str QueueManager
   boolean CommandServer = 0
   str MQUser = mqm
   str MQVer = "6.0"
   str EnvFile
   int SecondLevelMonitor
   str MonitorProgram
   boolean MonitorListener = 0
)     

A sample resource configuration from the /etc/VRTSvcs/conf/config/main.cf file is as follows:

WebSphereMQ6 Queue1 (
                QueueManager = Queue1
                CommandServer = 1
                MQVer = "7.0"
                MonitorListener = 1
                )