vtk_preemptrule

vtk_preemptrule_create_or_modify

Usage:         
vtk_preemptrule_create_or_modify array

Description:   
The array contains the information of the preemption rule creation, including: 
* pool 
* rulename 
* ruletype 
* enabled 
* debug 
* preempting 
* waitingfor 
* bucketag 
* multiqueueres 
* mqthresh 
* donotdisturb 
* preemptable 
* preemptslavespec 
* preemptslavenum 
* killage 
* method 
* skipresumedjob 
* reservetime 
* reservetype 
* reservenum 
* reserveslave 
* reservefor 
* resumeres 
* resumedelay 
* numjobs 
* maxattempts 
* sortjobsby 
* script 
* id 
* order 
* fireonce 
                
For detailed explanation for each field, refer to Preemption Rules

Returns:       
The preemption rule Id of the preemption rule just created, or an error message.

vtk_preemptrule_delete

Usage:         
vtk_preemptrule_delete preemptRuleId

Description:
This procedure is used to delete a preemption rule object from server. 

Example
vtk_preemptrule_delete 00358286 
ok

Returns:       
"ok" or an error message

vtk_preemptrule_delete_all

Usage:         
vtk_preemptrule_delete_all 

Description:   
This procedure is used to delete all preemption rule objects from server. 

Example:
vtk_preemptrule_delete_all


Returns:       
"ok"

vtk_preemptrule_find

No information is available.

vtk_preemptrule_get

Usage:         
vtk_preemptrule_get preeptRuleId array

Description:   
This procedure fills the array with the value of the preemption rule. 

Examples:
vtk_preemptrule_get 189823 value
parray value
value(bucketage)        = 4
value(count,firings)    = 0
value(debug)            = 0
value(donotdisturb)     = 600
value(enabled)          = 1
value(errormsg)         =
value(fireonce)         = 0
value(killage)          = 0
value(maxattempts)      = 0
value(method)           = SUSPEND
value(mqthresh)         = 0.900000
value(multiqueueres)    =
value(numjobs)          = 1
value(order)            = 22
value(pool)             = RegrTestPool
value(preemptable)      = jobclass==@JOBCLASS@ priority<@PRIORITY@
value(preempting)       = jobclass==testmapp priority>=5
value(preemptslavenum)  = 1
value(preemptslavespec) =
value(reservefor)       =
value(reservenum)       = 0
value(reserveslave)     =
value(reservetime)      = 0
value(reservetype)      = JOBID
value(resumedelay)      = 5
value(resumeres)        =
value(rulename)         = RegrTestJOBCLASS1523045905
value(ruletype)         = GENERIC
value(script)           =
value(skipresumedjob)   = 0
value(sortjobsby)       =
value(ts,last,active)   = 0
value(ts,last,fired)    = 0
value(waitingfor)       = License:regrmappedres


Returns:       
"ok" or an error message