Hi All

Take a look at the following STAX script, please.

I am using this STAX script to send STAF commands to four computers:
loadgen1, loadgen2, loadgen3, loadgen4.

All of these Machines have STAF installed and configured on them, with STAX
service plugged to each one of them.

The computers:

loadgen2, loadgen3, loadgen4 trust{level 5} the computer loadgen1.

I am using loadgen1 as the controller machine using which I trigger the STAF
commands on all the machines.

When I do so, only the computers loadgen2, loadgen1, loadgen4 are executing
the commands and the computer loadgen3
remains mute :(

However, if I send the command (with out using/modifying this script) only
to loadgen3 from loadgen1 it works.

Is there any limitation in the <paralleliterate> as to how many number of
items it can iterate?
I am wondering about this strange behaviour.

mommy :(

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "stax.dtd">
<stax>
  <defaultcall function="Main"/>
  <function name="Main">
    <sequence>
    <script>
    class server:
        def __init__(self, hostname, script):
        self.hostname = hostname
        self.script = script
        def getHostname(self):
        return self.hostname
        def getScript(self):
        return self.script
    machList = [ server('loadgen1', 'E:/testbed/STAF/xml/loadgen1.xml'),
server('loadgen2', 'E:/testbed/STAF/xml/loadgen2.xml'), server('loadgen3',
'E:/testbed/STAF/xml/loadgen3.xml'), server('loadgen4',
'E:/testbed/STAF/xml/loadgen4.xml')]</script>
    <paralleliterate var="machName" in="machList">
        <stafcmd name="'Invoke STAX on Machines'">
            <location>machName.getHostname()</location>
            <service>'STAX'</service>
            <request>'EXECUTE  FILE %s JOBNAME %s CLEARLOGS' %(
machName.getScript(),  machName.getHostname() ) </request>
        </stafcmd>
    </paralleliterate>
    </sequence>
  </function>
</stax>

-- 
Cheers!!
Harsha Reddy
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to