EVA Tunnel Round Trip Delay

EVA.Tunnel.Round.Trip.Delay (Rule)

Knowledge Base article:

Summary

Round Trip Delay

Configuration

The Round Trip Delay counter shows the average time in milliseconds during the measurement interval for a signal (ping) to travel from source to destination and back again. It includes the intrinsic latency of the link round trip time and any queuing encountered from the workload. Thus, the Round Trip Time counter measures the link delay if there is no data flow between source and destination. If there is replication traffic on the link, then the ping can be queued behind any data transmissions already in process, thus increasing round trip delay. If the destination controller is busy, then the round trip time is extended accordingly. Round trip delay is reported for each active tunnel for both local and remote systems. A value of 10,000 is reported when the tunnel is initially opened and then is updated if successful pings are executed. A value of 10,000 is also shown for any tunnel interrupted by a link problem. Round trip delay is reported for all open tunnels, whether active or inactive.

Element properties:

TargetEVAPerformanceMonitor
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.TimedScript.PerformanceProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="EVA.Tunnel.Round.Trip.Delay" Enabled="true" Target="EVAPerformanceMonitor" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="MicrosoftWindowsLibrary6062780!Microsoft.Windows.TimedScript.PerformanceProvider">
<IntervalSeconds>300</IntervalSeconds>
<SyncTime>00:01</SyncTime>
<ScriptName>EVAPerf_Tunnel_Round_Trip_Delay.vbs</ScriptName>
<Arguments/>
<ScriptBody><Script><![CDATA[
' Extract tunnel statistics
'
'
'Time,Ctlr,Tunnel Number,Host Port,Source ID,Dest. ID,Round Trip Delay (ms),Copy Retries per second,Write Retries per second,Copy In MB/s,Copy Out MB/s,Write In MB/s,Write Out MB/s,Free Copy Resources,Free Write Resources,Free Command Resources,Node
'

SetLocale("en-us")
Wscript.Sleep 15000
linenumber=0
FileName = "C:\temp\EVAPERF_drt.csv"
Set fso = CreateObject("Scripting.FileSystemObject")
Set oAPI = CreateObject("MOM.ScriptAPI")
Const ForReading = 1

If fso.FileExists(FileName) = 0 Then
wscript.echo "File not found."
wscript.quit
End If

Set oFile = fso.GetFile(FileName)

Set oStream = oFile.OpenAsTextStream(ForReading, TristateUseDefault)

Set propertyBag = oAPI.CreatePropertyBag()

Do While Not oStream.AtEndOfStream
sRecord=oStream.ReadLine
if linenumber <> 0 and sRecord <> "" Then
tmp = split(sRecord,",")
value = tmp(6)
name = tmp(16) & ":" & tmp(1) & ":" & tmp(3) & ":" & tmp(2)


propertyBag.AddValue "Name", name
propertyBag.AddValue "Value", value
oAPI.AddItem(propertyBag)
End If
linenumber = linenumber+1
Loop
oStream.Close
If name ="" Then
Set propertyBag = oAPI.CreatePropertyBag()
propertyBag.AddValue "Name", "No DR Groups Found"
propertyBag.AddValue "Value", 0
oAPI.AddItem(propertyBag)
End if

oAPI.ReturnItems

]]></Script></ScriptBody>
<TimeoutSeconds>60</TimeoutSeconds>
<ObjectName>HP EVA Tunnel Statistics</ObjectName>
<CounterName>Round Trip Delay(ms)</CounterName>
<InstanceName>$Data/Property[@Name='Name']$</InstanceName>
<Value>$Data/Property[@Name='Value']$</Value>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SystemCenter!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>