Topic
  • 2 replies
  • Latest Post - ‏2012-03-15T08:44:36Z by YEK3_Tonderai_Mujeni
YEK3_Tonderai_Mujeni
4 Posts

Pinned topic Check agent availability before tranfering files using ftePingAgent

‏2012-01-14T23:58:06Z |
Hi Guys

I am running WMQFTE 7.0.4 on windows am trying to come up with a solution that checks if the agent is up before transfering files using Ant script for ftePingAgent.For a successfull ping i want files to be tranfered to the destination dir and for a fail ping want to cancel transfer and move files to another which is local.

Could anyone please help on this problem since i am stuck , I have a ftePing Agent ant script pasted below.If possible to call an xml file created during fteCreateTranfes command either way of the result of the ping would be greatly appreciated.

Please help

<?xml version='1.0'?>
<project xmlns:fte="antlib:com.ibm.wmqfte.ant.taskdefs" name="FTEPing" default="job" basedir="." >

<description> FTE Ant Ping </description>
<!-- set global properties for this FTE JOB -->
<target name="init" description="Set Global variables">
<property name="DNODE" value="TRAGENT@TLQMAN"/>
<property name="cmdqm" value="NTCOD"/>
</target>
<target name="step1" depends="init" description="FTEPing">
<fte:ping cmdqm="${cmdqm}" agent="${DNODE}" rcproperty="ping.rc" timeout="15"/>
</target>
<target name="check" depends="step1">
<condition property="ping-failed">
<equals arg1="${ping.rc}" arg2="3"/>
</condition>
<fail if="ping-failed"
message="Ping failed MAXRC=${ping.rc}.">
</fail>
<echo message="The Ping was Successful!" />
</target>
<target name="job" depends="init, step1,check" />
</project>
Updated on 2012-03-15T08:44:36Z at 2012-03-15T08:44:36Z by YEK3_Tonderai_Mujeni
  • YEK3_Tonderai_Mujeni
    4 Posts

    Re: Check agent availability before tranfering files using ftePingAgent

    ‏2012-01-17T10:43:37Z  
    Than ya'all for the response , managed to came up with one script that works..

    <?xml version='1.0'?>
    <project xmlns:fte="antlib:com.ibm.wmqfte.ant.taskdefs" name="FTEPing" default="job" basedir="." >

    <description> FTE Ant Ping </description>
    <!-- set global properties for this FTE JOB -->
    <target name="init" description="Set Global variables">
    <property name="DNODE" value="TRAGENT@TLQMAN"/>
    <property name="cmdqm" value="NTCOD"/>
    </target>

    <target name="step1" depends="init" description="FTEPing">
    <fte:ping cmdqm="${cmdqm}" agent="${DNODE}" rcproperty="ping.rc" timeout="15"/>
    </target>
    <target name="check" depends="step1">
    <condition property="ping-success">
    <equals arg1="${ping.rc}" arg2="0"/>
    </condition>
    </target>
    <target name="fail" depends="check" unless="ping-success">

    <fte:call cmdqm="NTCOD" agent="NTAGENT@NTCOD" rcproperty="call.rc" >
    <fte:command command="rollback.xml" type="anscript" successrc="1" retrycount="5" retrywait="30" >
    </fte:command>
    </fte:call>

    </target>

    <target name="job" depends="init, step1,check, fail" if="ping-success" >

    <fte:call cmdqm="NTCOD" agent="NTAGENT@NTCOD" rcproperty="call.rc" >
    <fte:command command="MoveFiles.xml" type="antscript" successrc="1" retrycount="5" retrywait="30" >
    </fte:command>
    </fte:call>

    </target>
    </project>
  • YEK3_Tonderai_Mujeni
    4 Posts

    MQFTE on AT&#38;T GIS UNIX

    ‏2012-03-15T08:44:36Z  
    Hi All

    Is MQFTE supported on AT&T GIS UNIX which is now called NCR UNIX SVR4

    Regards