Byte Sent/Sec (SUSE Linux Enterprise Server 9)

Microsoft.Linux.SLES.9.NetworkAdapter.BytesSentPerSec.Collection (Rule)

Network Adapter\Bytes Sent/Sec 性能计数器收集规则

Knowledge Base article:

摘要

此规则收集 Network Adapter\Bytes Sent/sec 性能计数器的性能数据。在性能视图和报表中可以访问收集的值。

此指标显示网络适配器上每秒发送的字节数,包括组帧字符。

代理返回的值是网络适配器发送的字节累计计数。此规则计算连续样本之间的字节增量(其中“样本数”参数控制计算中所包含的样本数),并将此增量值除以样本收集时间之间的秒数。

Element properties:

TargetMicrosoft.Linux.SLES.9.NetworkAdapter
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Linux.SLES.9.NetworkAdapter.BytesSentPerSec.Collection" Target="Microsoft.Linux.SLES.9.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 Sent/Sec</CounterName>
<InstanceName>$Target/Property[Type="Unix!Microsoft.Unix.LogicalDevice"]/DeviceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='SCX_EthernetPortStatistics']/*[local-name(.)='InstanceID']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='SCX_EthernetPortStatistics']/*[local-name(.)='BytesTransmitted']$</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>