ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ File Transfer Edition » FtePingAgent to check communication before file transfer

Post new topic  Reply to topic
 FtePingAgent to check communication before file transfer « View previous topic :: View next topic » 
Author Message
tonydix
PostPosted: Sat Jan 14, 2012 3:34 pm    Post subject: FtePingAgent to check communication before file transfer Reply with quote

Newbie

Joined: 01 Jul 2011
Posts: 5

Hi Guys

I 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.

cheers

<?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>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ File Transfer Edition » FtePingAgent to check communication before file transfer
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.