Ping Computer (with Route)

Microsoft.SystemCenter.HealthService.PingWithRoute (ConsoleTask)

Uses "pathping.exe" to show route to target computer and calculates round trip time (RTT) and other useful statistics.

Element properties:

TargetMicrosoft.SystemCenter.HealthService
Application\%windir\%\system32\pathping.exe
WorkingDirectory
isRequireOutputTrue
AccessibilityInternal
EnabledTrue

Source Code:

<ConsoleTask ID="Microsoft.SystemCenter.HealthService.PingWithRoute" Accessibility="Internal" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthService" RequireOutput="true" Category="MonitoringObject">
<Application>%windir%\system32\pathping.exe</Application>
<Parameters>
<Parameter>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Parameter>
</Parameters>
<WorkingDirectory/>
</ConsoleTask>