Linux Copy OMSAdminConf Rule

Microsoft.Linux.CopyOMSAdminConf.Rule (Rule)

Rule for Linux to Copy the OMSAdminConf.

Knowledge Base article:

Summary

The Rule copies the OMSAdminConf File to the Linux server.

Element properties:

TargetMicrosoft.Linux.Computer
CategorySystem
EnabledTrue
Alert GenerateFalse
RemotableTrue
Event LogOperations Manager

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
CopyOMSAdminConf WriteAction Microsoft.Linux.Copy.OMSAdminConf.WriteAction Default

Source Code:

<Rule ID="Microsoft.Linux.CopyOMSAdminConf.Rule" Enabled="true" Target="Microsoft.Linux.Computer" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>System</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>.</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">20020</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">OpsMgr Connector</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[1]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Id$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="CopyOMSAdminConf" TypeID="Microsoft.Linux.Copy.OMSAdminConf.WriteAction">
<Host>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</Host>
<Port>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/SSHPort$</Port>
<UserName>$RunAs[Name="Unix!Microsoft.Unix.AgentMaintenanceAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Unix!Microsoft.Unix.AgentMaintenanceAccount"]/Password$</Password>
<TimeoutSeconds>400</TimeoutSeconds>
</WriteAction>
</WriteActions>
</Rule>