Connect to Connected Management Group Action

Microsoft.SystemCenter.Tiering.ConnectToTieredManagementGroup (DataSourceModuleType)

Connect to Tiered Management Group Data Source module type.

Element properties:

TypeDataSourceModuleType
IsolationAny
AccessibilityInternal
RunAsMicrosoft.SystemCenter.Tiering.TieredManagementGroupAccount
OutputTypeSystem.CommandOutput

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Scheduler Default
ConnectToLowerTier ProbeAction System.CommandExecuterProbe Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
IntervalSecondsint$Config/IntervalSeconds$Interval Seconds
TimeoutSecondsint$Config/TimeoutSeconds$Timeout Seconds

Source Code:

<DataSourceModuleType ID="Microsoft.SystemCenter.Tiering.ConnectToTieredManagementGroup" Accessibility="Internal" RunAs="Microsoft.SystemCenter.Tiering.TieredManagementGroupAccount" Batching="false">
<Configuration>
<xsd:element name="IntervalSeconds" type="xsd:integer"/>
<xsd:element name="LowerTierSDKServerName" type="xsd:string"/>
<xsd:element name="TimeoutSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Seconds">$Config/IntervalSeconds$</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
<ProbeAction ID="ConnectToLowerTier" TypeID="System!System.CommandExecuterProbe">
<ApplicationName>%systemroot%\System32\windowspowershell\v1.0\powershell.exe</ApplicationName>
<WorkingDirectory>%MOMROOT%</WorkingDirectory>
<CommandLine>-PSConsoleFile Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Console.psc1 -ExecutionPolicy Unrestricted -Command "&amp; '$File/TieringSynTx.ps1$'" $Config/LowerTierSDKServerName$</CommandLine>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files>
<File>
<Name>TieringSynTx.ps1</Name>
<Contents><Script>

Set-Location "OperationsManagerMonitoring::";

$connection = $null;
$LowerTierSDKServer = $Args[0];


$connection = New-Item $LowerTierSDKServer -errorAction:SilentlyContinue;

if ($connection -eq $null)
{
Write-Host "ERROR: Could not connect to" $LowerTierSDKServer;
}
else
{
Write-Host "SUCCESS - Connected to:";
dir;

}

</Script></Contents>
<Unicode>false</Unicode>
</File>
</Files>
</ProbeAction>
</MemberModules>
<Composition>
<Node ID="ConnectToLowerTier">
<Node ID="Scheduler"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.CommandOutput</OutputType>
</DataSourceModuleType>