InstallLinuxAgent

Microsoft.Unix.SSHCommand.InstallLinuxAgent.WriteAction (WriteActionModuleType)

在 Linux 主機上安裝代理程式。

Element properties:

TypeWriteActionModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
InputTypeSystem.BaseData
OutputTypeSystem.BaseData

Member Modules:

ID Module Type TypeId RunAs 
InstallAgent WriteAction Microsoft.Unix.SSHCommand.WriteAction Default
SCOMCertSign WriteAction Microsoft.Unix.SSHBased.SCOMCert.Signing.WriteAction Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
Hoststring$Config/Host$主機
Portstring$Config/Port$連接埠
UserNamestring$Config/UserName$使用者名稱
Passwordstring$Config/Password$密碼
InstallCommandstring$Config/InstallCommand$安裝命令
InstallPackagestring$Config/InstallPackage$安裝套件
TimeoutSecondsstring$Config/TimeoutSeconds$逾時 (秒)

Source Code:

<WriteActionModuleType ID="Microsoft.Unix.SSHCommand.InstallLinuxAgent.WriteAction" Accessibility="Public">
<Configuration>
<xsd:element name="Host" type="xsd:string"/>
<xsd:element name="Port" type="xsd:string" minOccurs="0"/>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
<xsd:element name="InstallCommand" type="xsd:string"/>
<xsd:element name="InstallPackage" type="xsd:string"/>
<xsd:element name="TimeoutSeconds" type="xsd:string" minOccurs="0"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Host" ParameterType="string" Selector="$Config/Host$"/>
<OverrideableParameter ID="Port" ParameterType="string" Selector="$Config/Port$"/>
<OverrideableParameter ID="UserName" ParameterType="string" Selector="$Config/UserName$"/>
<OverrideableParameter ID="Password" ParameterType="string" Selector="$Config/Password$"/>
<OverrideableParameter ID="InstallCommand" ParameterType="string" Selector="$Config/InstallCommand$"/>
<OverrideableParameter ID="InstallPackage" ParameterType="string" Selector="$Config/InstallPackage$"/>
<OverrideableParameter ID="TimeoutSeconds" ParameterType="string" Selector="$Config/TimeoutSeconds$"/>
</OverrideableParameters>
<ModuleImplementation>
<Composite>
<MemberModules>
<WriteAction ID="InstallAgent" TypeID="Microsoft.Unix.SSHCommand.WriteAction">
<Host>$Config/Host$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<Command>sh /tmp/scx-@@user@@/$Config/InstallPackage$ $Config/InstallCommand$; EC=$?; cd /tmp; rm -rf /tmp/scx-@@user@@; exit $EC</Command>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</WriteAction>
<WriteAction ID="SCOMCertSign" TypeID="Microsoft.Unix.SSHBased.SCOMCert.Signing.WriteAction">
<Host>$Config/Host$</Host>
<Port>$Config/Port$</Port>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="SCOMCertSign">
<Node ID="InstallAgent"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.BaseData</OutputType>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>