dsc-datatool(1)

πŸ“¦ version 1.4.2, in ubuntu resolute, ubuntu stonking

πŸ’– dsc-datatool(1) πŸ’–

okay bestie, welcome to the General Commands Manual entry for dsc-datatool β€” yes the whole glow-up lives right here, section 1, and it's lowkey iconic.


✨ NAME ✨

dsc-datatool β€” the tool for converting, exporting, merging and transforming DSC data. she does it all, no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

dsc-datatool [-h] [-c CONF] [-s SERVER] [-n NODE] [-x XML] [-d DAT]
             [--dataset DATASET] [-o OUTPUT] [-t TRANSFORM]]
             [-g GENERATOR] [--list] [--skipped-key SKIPPED_KEY]
             [--skipped-sum-key SKIPPED_SUM_KEY] [-v] [-V]

🌸 DESCRIPTION 🌸

Tool for converting, exporting, merging and transforming DSC data. literally what it says on the tin, and she ate. πŸ”₯

Please have a look at the wiki article on how to set this up using Influx DB and Grafana. it's giving setup-guide main character energy:

https://github.com/DNS-OARC/dsc-datatool/wiki/Setting-up-a-test-Grafana


πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help β€” show this help message and exit. the classic "help me pls" button 🫢
  • -c CONF, --conf CONF β€” Not implemented. yeah she's just sitting there, not doing anything, we don't talk about her πŸ™ˆ
  • -s SERVER, --server SERVER β€” Specify the server for where the data comes from. (required) β€” like, you gotta tell her where the data's from, bestie, no server no vibes. ⭐
  • -n NODE, --node NODE β€” Specify the node for where the data comes from. (required) β€” also mandatory, also non-negotiable. πŸ‘‘
  • -x XML, --xml XML β€” Read DSC data from the given file or directory, can be specified multiple times. If a directory is given then all files ending with .xml will be read. so like, feed her a file or a whole folder and she'll scoop up every .xml in there πŸ’–
  • -d DAT, --dat DAT β€” Read DSC data from the given directory, can be specified multiple times. Note that the DAT format is depended on the filename to know what type of data it is. so the filename is doing the heavy lifting here, iykyk. πŸŽ€
  • --dataset DATASET β€” Specify that only the list of datasets will be processed, the list is comma separated and the option can be given multiple times. picky eater mode: she only chews the datasets you name. ✨
  • -o OUTPUT, --output OUTPUT β€” OUTPUT has the following format that uses output to specify the output module and sep as an options separator:
<sep><output>[<sep>option=value...]>

Can be specified multiple times to output to more then one. more outputs = more chaos = more fun 🌈

Use dsc-datatool --list to see a list of modules and the man-page of each output for information about options.

  • -t TRANSFORM, --transform TRANSFORM β€” TRANSFORM has the following format that uses name to specify the transformer module and sep as an options separator. The datasets field can specify which dataset to run the transformer on, or use * to specify all datasets.
<sep><name><sep><datasets>[<sep>option=value...]

Can be specific multiple times to chain transformation, the chain will be executed in the order on command line with one exception. All transformations specified for dataset * will be executed before named dataset transformations. so it's a whole pipeline, and the * girlies cut the line, periodt. πŸ’€

Use dsc-datatool --list to see a list of modules and the man-page of each transformer for information about options. For a list of datasets see the DSC configuration that creates the XML files or the documentation for the Presenter that creates the DAT files.

  • -g GENERATOR, --generator GENERATOR β€” GENERATOR has two formats, one to specify a comma separated list of generators and one that uses name to specify the generator module and sep as an options separator.
<name>[,<name>,...]

<sep><name>[<sep>option=value...]

This option can be given multiple times.

Use dsc-datatool --list to see a list of modules and the man-page of each generator for information about options.

  • --list β€” List the available generators, transformers and outputs then exit. window shopping, but for modules πŸ›οΈ
  • --skipped-key SKIPPED_KEY β€” Set the special DSC skipped key. (default to "-:SKIPPED:-")
  • --skipped-sum-key SKIPPED_SUM_KEY β€” Set the special DSC skipped sum key. (default to "-:SKIPPED_SUM:-")
  • --encoding ENCODING β€” Set the encoding to use when reading and writing files, default to utf-8.
  • -v, --verbose β€” Increase the verbose level, can be given multiple times. the more the merrier, she will NOT stop talking πŸ—£οΈ
  • -V, --version β€” Display version and exit.

🧚 EXAMPLE 🧚

here's the whole thing in action, look at her go:

dsc-datatool \
  --server "$SERVER" \
  --node "$NODE" \
  --output ";InfluxDB;file=influx.txt;dml=1;database=dsc" \
  --transform ";Labler;*;yaml=$HOME/labler.yaml" \
  --transform ";ReRanger;rcode_vs_replylen;range=/64;pad_to=5" \
  --transform ";ReRanger;qtype_vs_qnamelen;range=/16;pad_to=3" \
  --transform ";ReRanger;client_port_range;key=low;range=/2048;pad_to=5" \
  --transform ";ReRanger;edns_bufsiz,priming_queries;key=low;range=/512;pad_to=5;allow_invalid_keys=1" \
  --transform ";ReRanger;priming_responses;key=low;range=/128;pad_to=4" \
  --transform ";NetRemap;client_subnet,client_subnet2,client_addr_vs_rcode,ipv6_rsn_abusers;net=8" \
  --generator client_subnet_country \
  --generator ";client_subnet_authority;fetch=yes" \
  --xml "$XML"

πŸ“ SEE ALSO πŸ“

dsc-datatool.conf(5), dsc-datatool-[generator|transformer|output] <name>(7)

like, go read the friends too, they're all linked πŸ’œ


πŸ’œ AUTHORS πŸ’œ

Jerry LundstrΓΆm, DNS-OARC

Maintained by DNS-OARC

https://www.dns-oarc.net/tools/dsc


😭 BUGS 😭

For issues and feature requests please use:

https://github.com/DNS-OARC/dsc-datatool/issues

For question and help please use:

https://lists.dns-oarc.net/mailman/listinfo/dsc


bestie, please actually use those links instead of suffering in silence, it's giving "just ask for help" energy 🫢

and that's the whole page, we're done!! this lil manual lives in the General Commands Manual as dsc-datatool(1) β€” periodt, slay, go transform some DNS data πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from