question

udaya avatar image
udaya asked udaya answered

API to find "Rx VLAN Frame Count (Frames)" ?

Need a help on API command to get "Rx VLAN Frame Count (Frames)". Please help.
Spirent TestCenter (STC)api
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Yaseen avatar image
Yaseen answered
Hi Uday, You would find the value of VLAN Frame Count (Frames) from Analyzer port results. Get the handle of the resultdataset that is subscribed to Analyzerportresults and use the below code to get the value, Assume, ResultHandle contains the value as resultdataset handle (resultdataset1) stc::get [lindex [stc::get $ResultHandle -resulthandlelist] 1] -vlanframecount Here 1 indicates the VLAN Frame count received on port2, for port1 use the index value as 0 Hope this information helps! Thanks!
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

udaya avatar image
udaya answered
Yes, Thanks Yaseen. I also tried this and worked fine: stc::get $hPort -children-Analyzer stc::get $hAnalyzer -children-AnalyzerPortResults stc::get $hStatistics -VlanFrameCount stc::get $hStatistics -VlanFrameRate
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.