Scheduled file transfer message examples
Examples of the messages that we can put on the agent command queue to request that the agent create or delete a schedule.
Create scheduled transfer
<?xml version="1.0" encoding="UTF-8"?> <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.00" xsi:noNamespaceSchemaLocation="FileTransfer.xsd"> <managedTransfer> <originator> <hostName>example.com.</hostName> <userID>mqm</userID> </originator> <schedule> <submit timebase="admin" timezone="Europe/London">2010-01-01T21:00</submit> </schedule> <sourceAgent QMgr="US2.BINDINGS" agent="US2.BINDINGS.FILE"/> <destinationAgent QMgr="US2.BINDINGS" agent="US2.BINDINGS.FILE"/> <transferSet> <item checksumMethod="MD5" mode="binary"> <source disposition="leave" recursive="false"> <file>/etc/passwd</file> </source> <destination exist="overwrite" type="directory"> <file>/tmp</file> </destination> </item> </transferSet> </managedTransfer> </request>
Delete scheduled transfer
<?xml version="1.0" encoding="UTF-8"?> <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.00" xsi:noNamespaceSchemaLocation="FileTransfer.xsd"> <deleteScheduledTransfer> <originator> <delete> <hostName>example.com.</hostName> <userID>mqm</userID> </delete> </originator> <ID>1</ID> <reply QMGR="US2.BINDINGS">WMQFTE.4D400F8B20003902</reply> </deleteScheduledTransfer> </request>