-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBulkChangeMAIndexCacheConfig.xml
188 lines (188 loc) · 13.8 KB
/
BulkChangeMAIndexCacheConfig.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?xml version="1.0" encoding="UTF-8"?>
<Workflow_WorkflowDefinition apiMode="0" config="<configuration />"
description="Change bulk index cache config for media agents by group - used for disable alert messages from auto configured MAs on VSA AppAware clients

Created by : Ali Allomani <[email protected]>"
inputs="<inputs><ClientGroup class="commvault.msgs.CvEntities.ClientGroupEntity" _list_="false"><clientGroupName /><clientGroupId /></ClientGroup></inputs>"
interactive="0" isHtmlDescription="0"
name="BulkChangeMAIndexCacheConfig" outputs="<outputs />"
revision="$Revision: $"
uniqueGuid="f741e67f-79ff-40b5-a03c-04cb0c3f3383"
variables="<variables />" webHidden="0" workflowId="0">
<schema>
<outputs className="" name="outputs" type=""/>
<variables className="" name="variables" type=""/>
<inputs attribute="0" className="" name="inputs" type="">
<children attribute="0"
className="commvault.msgs.CvEntities.ClientGroupEntity"
controlHidden="0" controlType="2" defaultValue=""
displayName="Client Group" documentation="" hidden="0"
inputType="commvault.msgs.CvEntities.ClientGroupEntity"
listType="0" maximumValue="" minimumValue=""
name="ClientGroup" readOnly="0" required="1"
searchable="0" type="{commvault.msgs.CvEntities}ClientGroupEntity">
<children attribute="0" className="java.lang.String"
defaultValue="" inputType="java.lang.String"
listType="0" name="clientGroupName" type="{http://www.w3.org/2001/XMLSchema}string"/>
<children attribute="0" className="java.lang.Integer"
defaultValue="" inputType="java.lang.Integer"
listType="0" name="clientGroupId" type="{http://www.w3.org/2001/XMLSchema}integer"/>
</children>
</inputs>
<config className="" name="configuration" type=""/>
</schema>
<Start commented="0" continueOnFailure="0" created="0"
description="" displayName="Start" height="36" interactive="0"
jobMode="0" name="Start" originalStyle="" skipAttempt="0"
style="image;image=/images/jgraphx/house.png"
uniqueName="Start_1" waitSetting="0" width="58" x="45" y="52">
<inputs val="<inputs />"/>
<transition activity="CommServDBQuery_1" commented="0"
originalStyle="" points="" sourceX="72" sourceY="70"
status="0" style="defaultEdge" targetX="198" targetY="248"
transitionIndex="0" x="0" y="0">
<condition language="1" script="/*
The expression should return a boolean. Use the variable name "activity" to refer to the previous activity object. Example:
activity.exitCode==0;
*/
"/>
</transition>
</Start>
<Activity commented="0" continueOnFailure="0"
created="1337083648420"
description="executes queries against the commserv database"
displayName="Fetch Media Agents" height="34" interactive="0"
jobMode="0" name="CommServDBQuery"
namespaceUri="commvault.cte.workflow.activities"
originalStyle="" skipAttempt="0"
style="label;image=CommServDBQuery"
uniqueName="CommServDBQuery_1" waitSetting="0" width="141"
x="193" y="236">
<inputs val="<inputs><commCell /><query>Select c.name&#xD;
From APP_Client c&#xD;
INNER JOIN APP_ClientGroupAssoc a ON c.id = a.clientId&#xD;
INNER JOIN APP_ClientProp d ON d.componentNameId = c.id&#xD;
WHERE a.clientGroupId = 'xpath:{/workflow/inputs/ClientGroup/clientGroupId}' and d.attrName='Idx: alert space' and d.attrVal &gt; '1024.0'</query></inputs>"/>
<transition activity="ForEach_1" commented="0" originalStyle=""
points="" sourceX="263" sourceY="253" status="0"
style="defaultEdge" targetX="584" targetY="113"
transitionIndex="0" x="0" y="0">
<condition language="1" script="/*
The expression should return a boolean. Use the variable name "activity" to refer to the previous activity object. Example:
activity.exitCode==0;
*/
"/>
</transition>
</Activity>
<Activity commented="0" continueOnFailure="0"
created="1510143313357"
description="iterates a group of activities over a list of values"
displayName="ForEach" height="521" interactive="0" jobMode="0"
name="ForEach" namespaceUri="commvault.cte.workflow.activities"
originalStyle="" skipAttempt="0" style="swimlane"
uniqueName="ForEach_1" waitSetting="0" width="400" x="380" y="99">
<inputs val="<inputs><name class="java.lang.String">row</name><values class="java.lang.Object" _list_="false">xpath:{/workflow/CommServDBQuery_1/resultSets/row}</values><numberOfParallelExecutions class="java.lang.Integer" _list_="false">1</numberOfParallelExecutions><continueOnFailure class="java.lang.Boolean" _list_="false">false</continueOnFailure></inputs>"/>
<superProcess>
<Start commented="0" continueOnFailure="0"
created="1510143313357" description=""
displayName="Start" height="30" interactive="0"
jobMode="0" name="Start" originalStyle=""
skipAttempt="0"
style="label;fillColor=#FFFF33;gradientColor=#FFFF00"
uniqueName="Start_2" waitSetting="0" width="120" x="74" y="52">
<inputs val="<inputs />"/>
<transition activity="ExecuteScript_1" commented="0"
originalStyle="" points="" sourceX="134"
sourceY="67" status="0" style="defaultEdge"
targetX="138" targetY="164" transitionIndex="0"
x="0" y="0">
<condition script="/*
The expression should return a boolean. Use the variable name "activity" to refer to the previous activity object. Example:
activity.exitCode==0;
*/
"/>
</transition>
</Start>
<Activity commented="0" continueOnFailure="1"
created="1510143889786" description=""
displayName="ExecuteScript" height="34" interactive="0"
jobMode="0" maxRestarts="0" name="ExecuteScript"
namespaceUri="commvault.cte.workflow.activities.cmd.operation"
originalStyle="" skipAttempt="0"
style="label;image=commvault.cte.workflow.activities.cmd.operation.OperationExecScript"
uniqueName="ExecuteScript_1" waitSetting="0" width="110"
x="83" y="147">
<inputs val="<inputs><scriptName class="java.lang.String" _list_="false">setMediaAgentProperty</scriptName><arguments class="java.lang.String" _list_="false">-si xpath:{/workflow/ForEach_1/row/col[@name="name"]} -si 11 -si 2</arguments><sessionOptions class="workflow.types.cmd.SessionOptions" _list_="false"><useImpersonatedAccount class="java.lang.Boolean" _list_="false">true</useImpersonatedAccount><tokenFile class="java.lang.String" _list_="false" /><token class="java.lang.String" _list_="false" /></sessionOptions></inputs>"/>
<transition activity="Decision_1" commented="0"
originalStyle="" points="" sourceX="138"
sourceY="164" status="0" style="defaultEdge"
targetX="145" targetY="255" transitionIndex="0"
x="0" y="0">
<condition language="1" script="/*
The expression should return a boolean. Use the variable name "activity" to refer to the previous activity object. Example:
activity.exitCode==0;
*/
"/>
</transition>
</Activity>
<Activity commented="0" continueOnFailure="0"
created="1510144916827"
description="if/else based decision"
displayName="Decision" height="100" interactive="0"
jobMode="0" name="Decision"
namespaceUri="commvault.cte.workflow.activities"
originalStyle="" skipAttempt="0"
style="rhombus;fontStyle=1" uniqueName="Decision_1"
waitSetting="0" width="100" x="95" y="205">
<inputs val="<inputs><expression class="java.lang.String" _list_="false">xpath:{/workflow/ExecuteScript_1/exitCode}==0</expression><scriptType class="workflow.types.ScriptType" _list_="false">JAVA</scriptType></inputs>"/>
<transition activity="LogEvent_1" commented="0"
displayName="Success" originalStyle="" points=""
sourceX="145" sourceY="255" status="0"
style="defaultEdge" targetX="138" targetY="425"
transitionIndex="0" value="True" x="0" y="0">
<condition script="/*
The expression should return a boolean. Use the variable name "activity" to refer to the previous activity object. Example:
activity.exitCode==0;
*/
"/>
</transition>
<transition activity="LogEvent_2" commented="0"
displayName="Failed" originalStyle="" points=""
sourceX="145" sourceY="255" status="0"
style="defaultEdge" targetX="273" targetY="424"
transitionIndex="0" value="False" x="0" y="0">
<condition script="/*
The expression should return a boolean. Use the variable name "activity" to refer to the previous activity object. Example:
activity.exitCode==0;
*/
"/>
</transition>
</Activity>
<Activity commented="0" continueOnFailure="0"
created="1510144965833"
description="logs an event in the commcell console with the specified severity level"
displayName="LogEvent" height="34" interactive="0"
jobMode="0" name="LogEvent"
namespaceUri="commvault.cte.workflow.activities"
originalStyle="" skipAttempt="0"
style="label;image=commvault.cte.workflow.activities.LogEventActivity"
uniqueName="LogEvent_1" waitSetting="0" width="100"
x="88" y="408">
<inputs val="<inputs><severity class="workflow.types.SeverityLevel" _list_="false">INFO</severity><message class="java.lang.String" _list_="false">Success MA Indexcache config cahnge on xpath:{/workflow/ForEach_1/row/col[@name="name"]} </message></inputs>"/>
</Activity>
<Activity commented="0" continueOnFailure="0"
created="1510145093849"
description="logs an event in the commcell console with the specified severity level"
displayName="LogEvent" height="34" interactive="0"
jobMode="0" name="LogEvent"
namespaceUri="commvault.cte.workflow.activities"
originalStyle="" skipAttempt="0"
style="label;image=commvault.cte.workflow.activities.LogEventActivity"
uniqueName="LogEvent_2" waitSetting="0" width="100"
x="239" y="331">
<inputs val="<inputs><severity class="workflow.types.SeverityLevel" _list_="false">CRITICAL</severity><message class="java.lang.String" _list_="false">Faield MA Indexcache config cahnge on xpath:{/workflow/ForEach_1/row/col[@name="name"]} xpath:{/workflow/ExecuteScript_1/commandOutput}</message></inputs>"/>
</Activity>
</superProcess>
<activitySchema>
<outputs name="outputs">
<children attribute="0"
className="workflow.types.data.DataRow"
defaultValue="" hidden="0"
inputType="workflow.types.data.DataRow" listType="0"
name="row" type="{workflow.types.data}DataRow">
<children attribute="0" className="java.lang.Object"
defaultValue="" hidden="0"
inputType="java.lang.Object" listType="1"
name="col" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
</children>
</outputs>
<inputs className="" name="" type="">
<children attribute="0" className="java.lang.String"
hidden="0" inputType="java.lang.String" listType="0"
name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<children attribute="0" className="java.lang.Object"
hidden="0" inputType="java.lang.Object" listType="0"
name="values" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
<children attribute="0" className="java.lang.Integer"
defaultValue="1" hidden="0"
inputType="java.lang.Integer" listType="0"
name="numberOfParallelExecutions" type="{http://www.w3.org/2001/XMLSchema}integer"/>
<children attribute="0" className="java.lang.Boolean"
defaultValue="false" hidden="0"
inputType="java.lang.Boolean" listType="0"
name="continueOnFailure" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
</inputs>
</activitySchema>
</Activity>
<formProperties css="" formVersion="0" javaScript=""/>
</Workflow_WorkflowDefinition>