json_dump takes data from TRAP interface in JSON format and dumps it into stdout or file. It works as a "logger" for JSON interfaces.
- Input: 1
- Output: 0
-h [trap,1]Print help message for this module / for libtrap specific parameters.-i IFC_SPECSpecification of interface types and their parameters.-vBe verbose.-vvBe more verbose.-vvvBe even more verbose.
-w <filename>Write dump to FILE instead of stdout (overwrite file).-a <filename>Write dump to FILE instead of stdout (append to file).-I --indent <number>Pretty-print JSON with indentation set to N spaces. Note that such format can't be read by json_replay module.--noflushDisable automatic flush of output buffer after writing a record (may improve performance).
$ json_dump.py -i u:trap_in_ifc #write json to stdout
$ json_dump.py -i u:trap_in_ifc -w dest_file #write to file - overwrite mode
$ json_dump.py -i u:trap_in_ifc -a dest_file --noflush #write to file - append mode, disable autoflush
