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 » how to execute a shell script using managed calls in mqfte

Post new topic  Reply to topic
 how to execute a shell script using managed calls in mqfte « View previous topic :: View next topic » 
Author Message
pavan343
PostPosted: Fri Jun 22, 2012 4:34 am    Post subject: how to execute a shell script using managed calls in mqfte Reply with quote

Novice

Joined: 17 Dec 2010
Posts: 13

hi

i want to execute a shell script using mqfte managed calls.

to test this i created a simple shell script which created a new directory called test. this scripts is running fine and when i run this script a new directory call test gets created in my aix box.

now i created a file transfer xml to execute this scipt below is the template of the script

<?xml version="1.0" encoding="UTF-8"?>
<request version="1.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<managedCall>
<originator>
<hostName>localhost</hostName>
<userID>eaiuser</userID>
</originator>
<agent QMgr="QMB" agent="SAMPLE"/>
<reply QMGR="QMB">reply</reply>
<transferSet priority="1">
<call>
<command name="fteStart.sh" type="executable" retryCount="2" retryWait="30" successRC="0">
</command>
</call>
</transferSet>
</managedCall>
</request>

and below is the fte command that i gave to run this transfer xml

fteCreateTransfer -sa sample -da sample -td /tmp/managedcall.xml

i get a response saying

BFGCL0035I: Transfer request issued. The request ID is: 414d5120514d42202020202
02020202004c4e14f2002cb1e
BFGCL0182I: The request is now waiting to be processed by the agent.

but the shell script never executes and the agent status is active which indicates that it is doing some activity.

what could be the issue.Have i gone wrong some where???
need an urgent solution for this issue.
thank you
Back to top
View user's profile Send private message
rsimons99
PostPosted: Mon Aug 27, 2012 10:13 am    Post subject: Reply with quote

Newbie

Joined: 11 Feb 2009
Posts: 5

You cannot submit a managedcall using the ftCreateTransfer command. managed calls are only submitted by resource monitors. I am surprised that you got this is submit at all. The schema validation for the fteCreateTransfer should have failed this as a invallid request.

The only way for this to work outside of a resource monitor is to put the XML message directly on the agents command queue. i.e. system.fte.command.<agentName>"
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 » how to execute a shell script using managed calls in mqfte
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.