tttns
is a command-line interface (CLI) tool designed to inspect 3GPP TS 32.297 CDR (Charging Data Record) files. The name "tttns" is derived from the first letters of "32297".
Download tttns
and install into a local bin directory.
Latest version:
curl -L https://raw.githubusercontent.com/haoli000/tttns/main/generated/install.sh | bash
Specific version:
curl -L https://raw.githubusercontent.com/haoli000/tttns/main/generated/install.sh | bash -s 0.0.4
The script will install the binary into $HOME/bin
folder by default, you can override this by setting
$CUSTOM_INSTALL
environment variable
Get the archive that fits your system from the Releases page and
extract the binary into a folder that is mentioned in your $PATH
variable.
tttns [file|-] [flags]
tttns [command]
cdr
: Print all CDR header info or use its sub commandscompletion
: Generate the autocompletion script for the specified shellfile
: Print CDR file header info or use its sub commandshelp
: Help about any commandversion
: Print the version number of tttns
-h, --help
: Display help for tttns-j, --json
: Output in JSON format (except for cdr dump)
The cdr
command is used to print and manipulate CDR (Charging Data Record) information.
Usage:
tttns cdr [file|-] [flags]
tttns cdr [command]
Flags:
-h, --help
: Display help for the cdr command-j, --json
: Output in JSON format
-
count: Get the number of CDRs in a file
tttns cdr count [file|-]
-
dump: Dump the raw content of CDR to stdout
tttns cdr dump [file|-] [index|1]
-
header: Print CDR header info
tttns cdr header [file|-] [index|1]
For more information about a specific subcommand, use:
tttns cdr [subcommand] --help
-
Get the number of CDRs in a file:
tttns cdr count example.cdr
-
Print CDR header info of the 1st CDR:
tttns cdr header example.cdr 1 cat example.cdr | tttns cdr header 1
-
Dump the raw content of the 2nd CDR to stdout:
tttns cdr dump example.cdr 2 cat example.cdr | tttns cdr dump 2
-
Print CDR header info in JSON format:
tttns cdr header example.cdr 1 --json
Apache-2.0.
The project has been scaffolded with the help of kleiner.