Usage DetailsΒΆ

The usage command for the ipktgen tool is as given below:

usage: ipktgen [-h] -a APPMODEL -u USERSESSIONS (-c | -s) [-v] [-o OUTDIR]
            [-m {Type1,Type2,Type3,Type4}]

**required arguments**:

-a APPMODEL, --appmodel APPMODEL
specify app model file

-u USERSESSIONS, --usersessions USERSESSIONS
specify net model file


**optional arguments**:

-h, --help
show this help message and exit

-v, --verbose
increase output stream log level of output

-c, --client
generate packets as client (can only use one of either -c or -s)

-s, --server
generate packets as server (can only use one of either -c or -s)

-o OUTDIR, --outdir OUTDIR
specify output directory to save logs

-m {Type1,Type2,Type3,Type4},
--modeltype {Type1,Type2,Type3,Type4}
modeling method to use for generatingpackets. must be
the same as the method that is used to create the traffic
model file

The library can also be used directly:

from ipktgen import Genpackets
generator = Genpackets(appmodel, usersessions, client, outdir, modeltype)
generator.generate()