All Classes Namespaces Files Functions Pages
ByteBlowerPort.ResultData Class Reference

ByteBlower port counter result set. More...

Methods

 Description.Get
 Returns a textual description of the object.
 
 Interval.Duration.Get
 Gets the configured duration of this results snapshot [NS]. More...
 
 Parent.Get
 Returns the parent object.
 
 Rx.All.Get
 Gets the received counters for the port. More...
 
 Rx.Broadcast.Get
 Gets the received broadcast counters for the port. More...
 
 Rx.Unicast.Get
 Gets the received unicast counters for the port. More...
 
 Timestamp.Get
 Gets the snapshot timestamp [NS]. More...
 

Class overview

ByteBlower port counter result set.

The result set contains three different counters:

  • a Unicast counter, which counts all received unicast Ethernet frames.
  • a Broadcast counter, which counts all received broadcast Ethernet frames.
  • an All counter, which counts all received Ethernet frames.
Note
The "all" counter can be seen as the combination of the unicast and the broadcast counter.
See What's new in API v2 for more information.

A ByteBlower port result data snapshot object can be created via a ByteBlowerPort.ResultData or ByteBlowerPort.ResultSnapshot

Example

Receive all frames on "trunk-1-2" of some server,

1 set port [ $server Port.Create "trunk-1-2" ]
2  set resultHistory [ $port Result.History.Get ]
3  foreach resultset [ $resultHistory Cumulative.Get ] {
4  [ $resultset Rx.Unicast.Get ] PacketCount.Get
5  [ $resultset Rx.Broadcast.Get ] PacketCount.Get
6  [ $resultset Rx.All.Get ] PacketCount.Get
7  }

Definition at line 852 of file api.tcl.

Method documentation

ByteBlowerPort.ResultData::Interval.Duration.Get

Gets the configured duration of this results snapshot [NS].

Since
2.3.0
Example

This example gets interval duration of this result snapshot [NS]

1 $snapshot Interval.Duration.Get

Returns:

1000000000 

Definition at line 869 of file api.tcl.

ByteBlowerPort.ResultData::Rx.All.Get

Gets the received counters for the port.

This will return a ByteBlowerPort.ResultRxData object which contain all counters from a port

Returns
ByteBlowerPort.ResultRxData
Example
1 set snapshot [ $port Result.Get ]
2  $snapshot Rx.All.Get

Returns:

<ByteBlowerPort.ResultRxData object> 

Definition at line 889 of file api.tcl.

ByteBlowerPort.ResultData::Rx.Broadcast.Get

Gets the received broadcast counters for the port.

This will return a ByteBlowerPort.ResultRxData object which contain all counters from a port. This will only contain the broadcast packets received on the port.

Returns
ByteBlowerPort.ResultRxData
Example
1 set snapshot [ $port Result.Get ]
2  $snapshot Rx.Broadcast.Get

Returns:

<ByteBlowerPort.ResultRxData object> 

Definition at line 904 of file api.tcl.

ByteBlowerPort.ResultData::Rx.Unicast.Get

Gets the received unicast counters for the port.

This will return a ByteBlowerPort.ResultRxData object which contain all unicast counters from a port. This will only contain the broadcast unicast received on the port.

Returns
ByteBlowerPort.ResultRxData
Example
1 set snapshot [ $port Result.Get ]
2  $snapshot Rx.Unicast.Get

Returns:

<ByteBlowerPort.ResultRxData object> 

Definition at line 919 of file api.tcl.

ByteBlowerPort.ResultData::Timestamp.Get

Gets the snapshot timestamp [NS].

Example

This example gets the snapshot timestamp [NS].

1 $snapshot Timestamp.Get

Returns:

1413475070000000000 

Definition at line 929 of file api.tcl.