Interromper Serviço SQL Agent no Cluster
Microsoft.SQLServer.2005.StopClusteredSQLAgent (Task)
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2005.StopClusteredSQLAgent" Target="SQL2005Core!Microsoft.SQLServer.2005.Agent" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName>%windir%\system32\cluster.exe</ApplicationName>
<WorkingDirectory>%windir%\system32</WorkingDirectory>
<CommandLine>/cluster:$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$ resource "$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/AgentClusterName$" /offline</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>