Printer FriendlyEmail Article Link

Spirent TestCenter-Automation: How can we generate stream from capture file using API?

Environment/Versions
  • Spirent TestCenter 
  • TCL
  • JAVA
Answer

We need use command 'GenerateStreamBlockFromPcap'.

Below are example to use the command to generate streamblock on port1

Using Tcl

stc::perform GenerateStreamBlockFromPcap -PcapFileName tcp.pcap -port $port1

Using Java: 

sm.clear();

sm.put("pcapfilename", "tcp.pcap");

sm.put("port", port1);

 

stc.Perform(GenerateStreamBlockFromPcap, sm);

 


Product : Automation,API,Spirent TestCenter