Printer FriendlyEmail Article Link

How do I get package content by using the Spirent TestCenter API?

Answer

Use command: CaptureGetFrame

For example:

stc::perform CaptureGetFrame -CaptureProxyId capture2 -FrameIndex 0

Return value:

  

parent system1 -Name {CaptureGetFrameCommand 1} -FrameIndex 0 -CaptureProxyId c
apture2 -Timestamp {2011-09-05 15:01:21.34720280} -PreambleLength 7 -DataLength
135 -PacketData 555555555555D500000100000100109400000208004500006E00000000FFFD39
3AC0550102C000000100000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000FF
2F4B1BB728BE9546B1828B4AD6B02FFFA57C0D41D91104 -ExecuteSynchronous true -State C
OMPLETED -Status {} -StartTime 1315206123.74644 -EndTime 1315206124.74665 -Elaps
edTime 1000 -ProgressDisplayCounter true -ProgressStepsCount 1 -ProgressCurrentS
tep 1 -ProgressCurrentStepName {} -ProgressMaxValue 0 -ProgressCurrentValue 0 -P
rogressCancelled false -Active true

 

 

The index is from 0.


Product : API,Spirent TestCenter