TrafficFile¶
SCPI Commands
SENSe:DATA:MEASurement<MeasInstance>:IPReplay:TRAFficfile
- class TrafficFile[source]
TrafficFile commands group definition. 1 total commands, 0 Sub-groups, 1 group commands
- class GetStruct[source]
Response structure. Fields:
L_4_Protocol: List[str]: Layer 4 protocol as string (‘TCP’, ‘UDP’, …)
No_Of_Packets: List[int]: Number of IP packets for the connection
Ip_Src_Address: List[str]: IP address of the connection source as string
Ip_Src_Port: List[int]: Port number of the connection source
Ip_Dest_Address: List[str]: IP address of the connection destination as string
Ip_Dest_Port: List[int]: Port number of the connection destination
- get(filename: str) → GetStruct[source]
# SCPI: SENSe:DATA:MEASurement<Instance>:IPReplay:TRAFficfile value: GetStruct = driver.sense.data.measurement.ipReplay.trafficFile.get(filename = '1')
Queries information about all IP connections contained in a selected file of the playlist. If the file has not yet been analyzed and the measurement state is RUN, the command triggers file analysis. The analysis takes some time. Repeat the command until the analysis results are available. The results are returned as follows: {<L4Protocol>, <NoOfPackets>, …, <IPDstPort>}conn 1, {…}conn 2, …
- param filename
File name as a string. Specify the file name with extension but without path, for example ‘myfile.pcap’.
- return
structure: for return value, see the help for GetStruct structure arguments.