컴퓨터 쓰기 작업에 대한 로그 파일 모니터링 다시 설정

Microsoft.Unix.ResetLogFileMonitoring.WriteAction (WriteActionModuleType)

Element properties:

TypeWriteActionModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
InputTypeSystem.BaseData
OutputTypeSystem.BaseData

Member Modules:

ID Module Type TypeId RunAs 
InvokeAction WriteAction Microsoft.Unix.WSMan.Invoke.VarPriv.WriteAction Default
InvokePriv WriteAction Microsoft.Unix.WSMan.Invoke.VarPriv.WriteAction Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
ResetOnReadbool$Config/ResetOnRead$다음 읽기 시 다시 설정False로 설정할 경우 로그 파일 마지막 검색에서 현재 시간 사이의 모든 로그 파일 이벤트가 잠재적 경고에 대해 처리되지 않습니다.
True로 설정할 경우 로그 파일 마지막 검색에서 로그 파일의 다음 모니터링 검색 사이의 모든 로그 파일 이벤트가 잠재적 경고에 대해 처리되지 않습니다.
유지 보수 모드 종료 전에 이 작업을 즉시 실행하는 경우 이 값을 False로 설정하세요. 유지 보수 모드 시작 시 이 작업을 실행하는 경우 이 값을 True로 설정하세요.

Source Code:

<WriteActionModuleType ID="Microsoft.Unix.ResetLogFileMonitoring.WriteAction" Accessibility="Public">
<Configuration>
<xsd:element name="TargetSystem" type="xsd:string"/>
<xsd:element name="ResetOnRead" type="xsd:boolean" minOccurs="0" default="false"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="ResetOnRead" ParameterType="bool" Selector="$Config/ResetOnRead$"/>
</OverrideableParameters>
<ModuleImplementation>
<Composite>
<MemberModules>
<WriteAction ID="InvokePriv" TypeID="Microsoft.Unix.WSMan.Invoke.VarPriv.WriteAction">
<TargetSystem>$Config/TargetSystem$</TargetSystem>
<UserName>$RunAs[Name="Microsoft.Unix.PrivilegedAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Microsoft.Unix.PrivilegedAccount"]/Password$</Password>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem?__cimnamespace=root/scx</Uri>
<Selector/>
<InvokeAction>ExecuteCommand</InvokeAction>
<Input>&lt;p:ExecuteCommand_INPUT xmlns:p="http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem"&gt;&lt;p:command&gt;/opt/microsoft/scx/bin/scxlogfilereader -g $Config/ResetOnRead$ &lt;/p:command&gt;&lt;p:timeout&gt;60&lt;/p:timeout&gt;&lt;/p:ExecuteCommand_INPUT&gt;</Input>
<TimeOutInMS>600000</TimeOutInMS>
</WriteAction>
<WriteAction ID="InvokeAction" TypeID="Microsoft.Unix.WSMan.Invoke.VarPriv.WriteAction">
<TargetSystem>$Config/TargetSystem$</TargetSystem>
<UserName>$RunAs[Name="Microsoft.Unix.ActionAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Microsoft.Unix.ActionAccount"]/Password$</Password>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem?__cimnamespace=root/scx</Uri>
<Selector/>
<InvokeAction>ExecuteCommand</InvokeAction>
<Input>&lt;p:ExecuteCommand_INPUT xmlns:p="http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem"&gt;&lt;p:command&gt;/opt/microsoft/scx/bin/scxlogfilereader -g $Config/ResetOnRead$ &lt;/p:command&gt;&lt;p:timeout&gt;60&lt;/p:timeout&gt;&lt;/p:ExecuteCommand_INPUT&gt;</Input>
<TimeOutInMS>600000</TimeOutInMS>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="InvokePriv">
<Node ID="InvokeAction"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.BaseData</OutputType>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>