Supermicro.ProbeType.Admin.NormalPing (ProbeActionModuleType)

Element properties:

TypeProbeActionModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
InputTypeSystem.BaseData
OutputTypeSystem.PropertyBagData

Member Modules:

ID Module Type TypeId RunAs 
PA ProbeAction Microsoft.Windows.PowerShellPropertyBagProbe Default

Overrideable Parameters:

IDParameterTypeSelector
Countint$Config/Count$

Source Code:

<ProbeActionModuleType ID="Supermicro.ProbeType.Admin.NormalPing" Accessibility="Public">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IP" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Count" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeoutSeconds" type="xsd:int"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Count" Selector="$Config/Count$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<ProbeAction ID="PA" TypeID="Windows!Microsoft.Windows.PowerShellPropertyBagProbe">
<ScriptName>ADMIN_NormalPing.ps1</ScriptName>
<ScriptBody><Script> param($IP,$Count)

$api = New-Object -comObject 'MOM.ScriptAPI'
$propertyBagData = $api.CreatePropertyBag()
$command = "ping " + $IP + " -n " + $Count
$propertyBagData.AddValue("Command", $command)
$result = Invoke-Expression $command
$result = [System.Text.RegularExpressions.Regex]::Replace($result, "\s{1,}", " ")
$propertyBagData.AddValue("Result", $result)
$propertyBagData</Script></ScriptBody>
<Parameters>
<Parameter>
<Name>IP</Name>
<Value>$Config/IP$</Value>
</Parameter>
<Parameter>
<Name>Count</Name>
<Value>$Config/Count$</Value>
</Parameter>
</Parameters>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</ProbeAction>
</MemberModules>
<Composition>
<Node ID="PA"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
<InputType>System!System.BaseData</InputType>
</ProbeActionModuleType>