Skip to content
dreamjhhan edited this page May 22, 2017 · 6 revisions

OSNT SUME Command-Line-Interface

OSNT SUME has a tool for the command-line-interface mode for generator, monitor, and timestamp measurement. The command is osnt-tool-cmd.py, which is placed in the directory osnt/sw/host/app/cli.

OSNT SUME osnt-tool-cmd.py

The tool is written in Python. There are templates to give an example how the tool is used for packet generation, monitor, and delay measurement.

Uage: osnt-tool-cmd.py [-h] [-ifp0 IFP0] [-ifp1 IFP1] [-ifp2 IFP2]
                        [-ifp3 IFP3] [-rpn0 RPN0] [-rpn1 RPN1] [-rpn2 RPN2]
                        [-rpn3 RPN3] [-ipg0 IPG0] [-ipg1 IPG1] [-ipg2 IPG2]
                        [-ipg3 IPG3] [-txs0 TXS0] [-txs1 TXS1] [-txs2 TXS2]
                        [-txs3 TXS3] [-rxs0 RXS0] [-rxs1 RXS1] [-rxs2 RXS2]
                        [-rxs3 RXS3] [-run] [-cs CS] [-ds] [-st] [-flt FLT]
                        [-clear] [-lpn LPN] [-lty0] [-lty1] [-lty2] [-lty3]
                        [-llog LLOG] [-skt] [-rnm]

Optional arguments:
  -h, --help  show this help message and exit
  -ifp0 IFP0  OSNT SUME generator load packet into nf0. eg. -if0 <pcap file>
  -ifp1 IFP1  OSNT SUME generator load packet into nf1. eg. -if1 <pcap file>
  -ifp2 IFP2  OSNT SUME generator load packet into nf2. eg. -if2 <pcap file>
  -ifp3 IFP3  OSNT SUME generator load packet into nf3. eg. -if3 <pcap file>
  -rpn0 RPN0  OSNT SUME generator packet replay no. on nf0. eg. -rpn0 <integer
              number>
  -rpn1 RPN1  OSNT SUME generator packet replay no. on nf1. eg. -rpn1 <integer
              number>
  -rpn2 RPN2  OSNT SUME generator packet replay no. on nf2. eg. -rpn2 <integer
              number>
  -rpn3 RPN3  OSNT SUME generator packet replay no. on nf3. eg. -rpn3 <integer
              number>
  -ipg0 IPG0  OSNT SUME generator inter packet gap on nf0. eg. -ipg0 <integer
              number>
  -ipg1 IPG1  OSNT SUME generator inter packet gap on nf1. eg. -ipg1 <integer
              number>
  -ipg2 IPG2  OSNT SUME generator inter packet gap on nf2. eg. -ipg2 <integer
              number>
  -ipg3 IPG3  OSNT SUME generator inter packet gap on nf3. eg. -ipg3 <integer
              number>
  -txs0 TXS0  OSNT SUME generator tx timestamp position on nf0. eg. -txs0
              <integer number>
  -txs1 TXS1  OSNT SUME generator tx timestamp position on nf1. eg. -txs1
              <integer number>
  -txs2 TXS2  OSNT SUME generator tx timestamp position on nf2. eg. -txs2
              <integer number>
  -txs3 TXS3  OSNT SUME generator tx timestamp position on nf3. eg. -txs3
              <integer number>
  -rxs0 RXS0  OSNT SUME generator rx timestamp position on nf0. eg. -rxs0
              <integer number>
  -rxs1 RXS1  OSNT SUME generator rx timestamp position on nf1. eg. -rxs1
              <integer number>
  -rxs2 RXS2  OSNT SUME generator rx timestamp position on nf2. eg. -rxs2
              <integer number>
  -rxs3 RXS3  OSNT SUME generator rx timestamp position on nf3. eg. -rxs3
              <integer number>
  -run        OSNT SUME generator trigger to run. eg. --run
  -cs CS      OSNT SUME monitor packet cutter size in byte. -cs <integer
              number>
  -ds         OSNT SUME monitor run display stats. -ds
  -st         OSNT SUME monitor show stats. -st
  -flt FLT    OSNT SUME monitor load filter file. -flt <filter file name>
  -clear      OSNT SUME monitor clear stats and time. -clear
  -lpn LPN    OSNT SUME latency measurement packet no on one of the nf
              interfaces. eg. -lpn <integer number>. This number should be the
              same with the rpn.
  -lty0       OSNT SUME latency measurement on nf0. eg. -lty0
  -lty1       OSNT SUME latency measurement on nf1. eg. -lty1
  -lty2       OSNT SUME latency measurement on nf2. eg. -lty2
  -lty3       OSNT SUME latency measurement on nf3. eg. -lty3
  -llog LLOG  OSNT SUME latency measurement log file. eg. -lf <file name>
  -skt        OSNT SUME generator trigger and latency measurement with python
              socket. eg. -skt
  -rnm        OSNT SUME generator trigger and latency measurement. eg. -rnm