執行 VMStat
Microsoft.Solaris.10.Invoke.VMStat.Task (Task)
執行 VMStat 一次。您可能會想多執行幾次,以取得平均值。
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.Solaris.10.Invoke.VMStat.Task" Target="Microsoft.Solaris.10.Computer" Accessibility="Internal" Enabled="true">
<Category>Maintenance</Category>
<WriteAction ID="VMStat" TypeID="Unix!Microsoft.Unix.WSMan.Invoke.WriteAction">
<TargetSystem>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem?__cimnamespace=root/scx</Uri>
<Selector/>
<InvokeAction>ExecuteCommand</InvokeAction>
<Input><p:ExecuteCommand_INPUT xmlns:p="http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem"><p:command>/usr/bin/vmstat</p:command><p:timeout>60</p:timeout></p:ExecuteCommand_INPUT></Input>
</WriteAction>
</Task>