Search Wiki:
Resource Page Description
zgrid, a console tool to create the jobs to a distributed grid env, and download the results from...

This is another achievement while creating the Performance Center (http://code.msdn.com/perfcenter) w/ Controller(http://code.msdn.com/controller) and Agent(http://code.msdn.com/agent)

usage scenario:
> setenv CONTROLLERHOST = ipaddress
> zgrid create jobs agent# script
> zgrid create jobs script # if the agent# is not assigned, then controller will assign a spare agent to do the job
> zgrid download latest result
> zgrid list agents
> zgrid list jobs
> zgrid list result
> zgrid download result result#
Last edited Sep 4 2008 at 7:42 AM  by ZuneLover, version 3
Comments
Z wrote  Sep 29 2008 at 11:09 AM  
Found an easy way to do this - PowerShell https://code.msdn.microsoft.com/Thread/View.aspx?ProjectName=controller&ThreadId=745

Zuner wrote  Oct 3 2008 at 7:10 AM  
#
# Load the Controller Data assembly
#
$asm = 'C:\zgrid\ControllerData.dll'
[System.Reflection.Assembly]::LoadFile($asm)

#
# Instantiate the Zion
#
$z = new-object zion("data source=c:\zgrid\zion.sdf")

#
# Get the list of Jobs and Scripts
#
$z.script | ft
$z.job

#
# Create a new script and persist it into DB
#
$script = new-object Script
$script.Name = "Created from PowerShell, just a shot"
$script.Target = "JOKE"
$script.Code = "ls"

$z.script.InsertOnSubmit($script)
$z.SubmitChanges()

#
# Delete the script just created
#
$z.script.DeleteOnSubmit($script)
$z.submitchanges()

#
# Get a script and then update it
#
$script = $z.script|where {$_.ID -eq 2}
$script.Name = "Check SDET Service Status"
$z.submitchanges()

Updating...
Page view tracker