用戶端監視 Cab 及狀態檔修剪工具規則

Microsoft.SystemCenter.CM.AEM.Internal.CabAndStatusFileTrimmer (Rule)

此規則會從「用戶端監視」檔案共用,定期修剪 Cab 及狀態檔案。

Knowledge Base article:

摘要

此規則為內部使用,用以從「用戶端監視」檔案共用,定期清理 Cab 及狀態檔案。不應覆寫此規則,否則會對監視有負面影響。

原因

本部分不適用此規則類型。

解決方式

此規則類型不需要任何使用者動作。

Element properties:

TargetMicrosoft.SystemCenter.CM.AEM.CrashListener
CategoryOperations
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Scheduler Default
FSWA WriteAction Microsoft.SystemCenter.CM.AEM.Internal.FileShareWA Default

Source Code:

<Rule ID="Microsoft.SystemCenter.CM.AEM.Internal.CabAndStatusFileTrimmer" Target="AEMLib!Microsoft.SystemCenter.CM.AEM.CrashListener" Enabled="true" ConfirmDelivery="true">
<Category>Operations</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Days">1</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="FSWA" TypeID="Microsoft.SystemCenter.CM.AEM.Internal.FileShareWA">
<FileShareConfiguration>
<Location>$Target/Property[Type="AEMLib!Microsoft.SystemCenter.CM.AEM.CrashListener"]/SharePath$</Location>
<Validate>false</Validate>
<PolicyTextUrl>$Target/Property[Type="AEMLib!Microsoft.SystemCenter.CM.AEM.CrashListener"]/PolicyResponseUrl$</PolicyTextUrl>
<TrimCabsNotTouchedInDays>90</TrimCabsNotTouchedInDays>
<TrimStatusFilesNotTouchedInDays>90</TrimStatusFilesNotTouchedInDays>
</FileShareConfiguration>
</WriteAction>
</WriteActions>
</Rule>