效能計數器 [Network Adapter\Bytes Total/Sec] 的集合規則
此規則收集 [Network Adapter\Bytes Total/sec] 效能計數器的效能資料。您可以在效能檢視和報表中存取收集的值。
此標準會顯示網路介面卡每秒傳送及接收的位元組數目,包含框架字元。
代理程式傳回的值為網路介面卡傳送及接收位元組的累計計數器。此規則會計算連續取樣間的位元組差值 (其中 [樣本數] 參數控制計算中所含的樣本數),再將此差值除以範本收集時間間隔的秒數。
Target | Microsoft.Linux.SLES.12.NetworkAdapter |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Unix.WSMan.PerfCounterProvider.Filtered.Delta | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.Linux.SLES.12.NetworkAdapter.BytesTotalSec.Collection" Target="Microsoft.Linux.SLES.12.NetworkAdapter" Enabled="true" Remotable="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Unix!Microsoft.Unix.WSMan.PerfCounterProvider.Filtered.Delta">
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_EthernetPortStatistics?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Network Adapter</ObjectName>
<CounterName>Bytes Total/Sec</CounterName>
<InstanceName>$Target/Property[Type="Unix!Microsoft.Unix.LogicalDevice"]/DeviceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='SCX_EthernetPortStatistics']/*[local-name(.)='InstanceID']</InstanceProperty>
<Value>/DataItem/WsManData/*[local-name(.)='SCX_EthernetPortStatistics']/*[local-name(.)='BytesTotal']</Value>
<NumSamples>1</NumSamples>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>