

old tasks to be replaced:
1)
<task>
<uid>1T1I</uid>
<name>Task_RunOwt</name>
<params>
<OrcIp>$ORC1IP$</OrcIp>
<OrcUsername>$ORC1USERNAME$</OrcUsername>
<OrcPassword>$ORC1PASSWORD$</OrcPassword>
<VolumeNames>$VOLUME1NAME$,$VOLUME2NAME$</VolumeNames>
<WriteToRawVolume>true</WriteToRawVolume>
<IoToolOptions>-b512 -n4194304 -o0 -t256 -c1 -r0 -l0 -w100 -s10 -p0 -g1 -v0 -d1 -z'' -q64 -f'' -i'' -u0</IoToolOptions>
</params>
<pass>1T3G</pass>
<fail>abortfail</fail>
<incomplete>abortfail</incomplete>
</task>
2)
<task>
<uid>1T1I</uid>
<name>Task_RunDbdIo</name>
<params>
<OrcIp>$ORC1IP$</OrcIp>
<OrcUsername>$ORC1USERNAME$</OrcUsername>
<OrcPassword>$ORC1PASSWORD$</OrcPassword>
<VolumeNames>$VOLUME1NAME$,$VOLUME2NAME$</VolumeNames>
<IOToolOptions>--queue 64 --seed --io_profile --trace STAT</IOToolOptions>
</params>
<pass>1T3G</pass>
<fail>abortfail</fail>
<incomplete>abortfail</incomplete>
</task>
New Task Which has to be substituted in place of above two tasks if found in the xml files:
<task>
<uid>1T1I</uid>
<name>Task_RunGenericIo</name>
<params>
<GroupName>$GROUP1NAME$</GroupName>
<ClusterName>$CLUSTER1NAME$</ClusterName>
<WriteToRawVolumeOrFile>raw</WriteToRawVolumeOrFile>
<Client>
<OrcIp>$ORC1IP$</OrcIp>
<OrcUsername>$ORC1USERNAME$</OrcUsername>
<OrcPassword>$ORC1PASSWORD$</OrcPassword>
<Volume>
<Names>$VOLUME1NAME$,$VOLUME2NAME$</Names>
</Volume>
</Client>
</params>
<pass>1T3G</pass>
<fail>abortfail</fail>
<incomplete>abortfail</incomplete>
</task>
Points to be noted:
*uid,pass,fail and incomplete tags and its content in the xml code should remain unchanged,only the code in between the uid and pass tags should be replaced with following
*In RunOwt task,When WriteToRawVolume is mentioned true, in RungenericIo,WriteToRawVolumeOrFile should be= raw
*In RunOwt task,When WriteToRawVolume is mentioned false, in RungenericIo,WriteToRawVolumeOrFile should be= file
*When RunDbdio task is found ,in RungenericIo,WriteToRawVolumeOrFile should always be =raw
*if only volume1name exists than only volume1name should be present(but not volume2name).
*IoToolOptions in above tasks is not required in RunGenericIo task.
*basically the xml code logic should be same after replacement
*I dont think any Xml file contains both the tasks Task_RunOwt and Task_RunDbdIo in a single XML File , But even if thats the scenario ,replacement has to be done with Task_RunGenericIo since other two tasks are deprecated.
*Every Xml file has many different tasks which has Task_RunOwt and Task_RunDbdIo repeated no. of times or only once.
*All 1500 xml files are not in single folder,they are in different folders of same directory.
*Task_RunOwt and Task_RunDbdIo tasks are deprecated in the tool i work with, so i need them get replaced with Task_RunGenericIo which is used for writing data in volumes of Client Orcs mentioned..
It would be of great help if this works out...Thanks in advance...