Hi BizTalk gurus
Using MsgBoxViewer I've identified an issue that I should be able to fix viaTerminator integration.
When I import theMsgBoxViewer outputfile MBVCleanupScripts.xml into Terminator the proposed cleanup scriptTerminate Cache amounts to the task Terminate Cashing Instances.
The task has several parameters, one of which is:
Hostname | The host that the instances to be acted upon are associated with. Select 1 or more. |
However the Hostname parametercannot be set in the Parameters tab of Terminator (please see image below)?
Now if I run the task I get the expected WMI error:
The following error was caught in the application:
**************************************************
WMIAccessAsync::verifyParameterValues: - No Host selected. You must select at least 1 Host.
**************************************************
Is this a bug in Terminator (I’m running Terminator version 2.0.0.275), or am I doing something wrong here?
Thanks
Michael Brandt Lassen
Terminate Cashing Instances (documentation from BtsTerminator.exe)
This task is the same as the Terminate Instances WMI task except the ServiceClass param is restricted to just Caching. The BizTalk Admin Console already uses WMI to terminate instances but is not very efficient when terminating a very large number of instances. This task uses WMI calls to terminate a large number of service instances that match the criteria selected by the user. Once started, clicking the Stop button makes the script stop execution at the next safe point but does not undo what has already been done. The user has the option to specify a full path to a folder in order to save all associated messages for an instance before it is terminated. Note that this path is on the Biztalk server selected to run this task – NOT the computer running the Terminator tool. Choosing to save messages results in a significant performance hit so the user will need to be sure they need to save messages before specifying a path. |
Type | WMI |
Database | N/A |
Versions | 2004,2004SP2,2006,2006R2,2009,2010 |
Multi-Messagebox | Safe to run against all messageboxes |
Resolution | Use the Count Instance (and Save Messages)task to use WMI to count items before using this task to terminate them. |
Links | None |
Output | Will output a breakdown of the instances that have been terminated and saved categorized by host string “Completed” when successful. |
Parameters | Description |
ServiceClass | The service classes of the instances to be acted upon. Caching is preselected for this task. |
ServiceStatus | The status of the instances to be acted upon. Select 1 or more. |
Hostname | The host that the instances to be acted upon are associated with. Select 1 or more. |
BatchCount | The number of instances in each batch passed to the BizTalk WMI namespace to be acted upon. Too low or too high a number may decrease performance. The max value supported by the BizTalk WMI namepace’s is 2000. Default value is 1000. Note that this is NOT a limit to the total number of instances that will be acted on but the number per batch. |
MaxCount | The total number of instances to be acted upon. Note that 1 instance may be associated with many messages. Default value is 0 which indicates no limit. |
BizTalkServer | The name of the server that this task will connect to in order to access the BizTalk WMI Namespace. This must be the local server that Terminator is running on. If not, this parameter is highlighted in red indicating the WMI calls may fail. |
SaveMessages | Indicates whether messages will be saved before their instance is acted upon. Default is False. Choosing to save messages results in a significant performance hit so the user needs to be sure they need to save messages before specifying True. Messages will not be saved for Caching items and Routing Failure Reports since the BizTalk WMI namespace doesn’t support that. |
FileSaveFullPath | This is the location on the BizTalk Server itself where messages will be saved when SaveMessages is set to True. Specify a full path to a folder. Note that this path is on the Biztalk server selected to run this task – NOT the computer running the Terminator tool. |
Date and time to start | Allows the user to filter this task to not touch any instance before a certain date. Defaults to the date of the oldest instance in the messagebox or 1-1-2004 if there are no instances. |
Date and time to end | Allows the user to filter this task to not touch any instance after a certain date. Defaults to the current date. |