RATRACE(1)
π RATRACE π
okay bestie, you found ratrace(1) β it lives in the General Commands Manual section and it's genuinely one of those tools that sounds boring and is actually kind of iconic. it traces the route to remote addresses that show up in argus(8) data streams and files. yes, that argus. iykyk. π¦
β¨ NAME β¨
ratrace β trace the route to remote addresses seen in argus(8) data streams / files. no cap, that's the whole job description. π
πΈ SYNOPSIS πΈ
ratrace [-f conf] [-m agr(s)] [-M mode(s)] [-P procnum] [raoptions] [--
filter-expression]
π DESCRIPTION π
so basically, Ratrace reads argus data from an argus-data source, and then it traces the path to the IP addresses contained in the flow data. that's it, that's the vibe. π₯
this tool is primarily used to support detailed network awareness, visibility and location of IP addresses encountered. she's a scout. she's doing recon. she's the main character. π
bestie, pls go readratrace.5for detailed information regardingratraceconfiguration. it's giving required reading, fr fr. π
π OPTIONS π
Ratrace, like all ra based clients, supports a number of ra options β including filtering of input argus records through a terminating filter expression, and the ability to specify the output style, format and contents for printing data. ra(1) has a complete description of ra options, go look. β¨
and now, the ratrace(1) specific options β the ones that are hers:
-maggregation object β pick what you're aggregating by. the supported aggregation objects are, and i'm listing every single one because we do not gatekeep here:noneβ do not merge records (results in no aggregation). she's doing nothing and she's thriving.allβ merge all records into a single record. one record to rule them all.srcidβ argus source identifier.smacβ source mac(ether) addr.dmacβ destination mac(ether) addr.souiβ oui portion of the source mac(ether) addr.douiβ oui portion of the destination mac(ether) addr.smplsβ source mpls label.dmplsβ destination label addr.svlanβ source vlan label.dvlanβ destination vlan addr.saddr/[l|m]β source IP addr/[cidr len | m.a.s.k].daddr/[l|m]β destination IP addr/[cidr len | m.a.s.k].matrix/lβ sorted src and dst IP addr/cidr len.protoβ transaction protocol.sportβ source port number. Implies use of'proto'.dportβ destination port number. Implies use of'proto'.stosβ source TOS byte value.dtosβ destination TOS byte value.sttlβsrc -> dstTTL value.dttlβdst -> srcTTL value.stcpbβsrc -> dstTCP base sequence number.dtcpbβdst -> srcTCP base sequence number.inode[/l|m]]β intermediate node IP addr/[cidr len | m.a.s.k], source of ICMP mapped events.scoβ source ARIN country code, if present.dcoβ destination ARIN country code, if present.sasβ source node origin AS number, if available.dasβ destination node origin AS number, if available.iasβ intermediate node origin AS number, if available.
-Mmodes β set the mode, or modes. the supported modes are:correctβ Attempt to correct the direction of flows by also searching the reverse flow key, if a match isn't found in the cache. This mode is on by default when using the default full 5-tuple flow key definitions. she's fixing the vibes. π§nocorrectβ Turn off flow correction for direction. This mode is used by default if the flow key has been changed.norepβ Do not generate an aggregate statistic for each flow. This is used primarily when the output represents a single object. Primarily used when merging status records to generate single flows that represent single transactions.rmonβ Generate data suitable for producing RMON types of metrics.indβ Process each input file independantly, so that after the end of each inputfile,ratraceflushes its output.replaceβ Replace each inputfile contents, with the aggregated output. The initial file compression status is maintained.
not me putting replace here without a warning but okay bestie, it replaces each inputfile contents, so know that before you type it. π
-P<procnum>β Specify the number of processors to use for aggregation. Default is1. one (1) processor, one (1) girl, we keep it simple unless you say otherwise.-Vβ Verbose operation, printing a line of output for each input file processed. Very useful when using thera()-Roption. she's chatty and honestly? obsessed. π¬
π INVOCATION π
here's a sample invocation of ratrace(1). this call reads argus(8) data from inputfile and aggregates the tcp protocol based argus(8) data. By default, ratrace(1) merges using the standard 5-tuple flow key. This method is used to merge multiple status records into a single flow record per transaction.
% ra -r argus.tcp.2012.02.13.12.20.00
StartTime Dur Trans Flgs Proto SrcAddr Sport Dir DstAddr Dport TotPkts State
12:23:07.268 0.997 1 e i tcp 192.168.0.68.59016 -> 208.59.201.75.http 298 CON
12:23:08.294 1.000 1 e tcp 192.168.0.68.59016 -> 208.59.201.75.http 111 CON
12:23:09.294 0.991 1 e d tcp 192.168.0.68.59016 -> 208.59.201.75.http 637 CON
12:23:10.331 0.330 1 e tcp 192.168.0.68.59016 -> 208.59.201.75.http 89 CON
12:23:32.183 0.010 1 e tcp 192.168.0.68.59016 -> 208.59.201.75.http 3 FIN
% ratrace -r argus.tcp.2012.02.13.12.20.00
StartTime Dur Trans Flgs Proto SrcAddr Sport Dir DstAddr Dport TotPkts State
12:23:07.268 24.925 5 e d tcp 192.168.0.68.59016 -> 208.59.201.75.http 1138 FIN
look at that glow-up. five records in, one merged record out. she ate. π
and here's another sample invocation of ratrace(1). this call reads argus(8) data from inputfile and aggregates the tcp protocol based argus(8) data, based on the source and destination address matrix and the protocol. It reports the metrics as a percent of the total. percentages?? she's doing math AND serving looks. β¨
% ratrace -r argus.2012.02.13.17.20.00 -m saddr/16 daddr proto -% \
-s stime dur trans proto saddr dir daddr pkts state - tcp and port https
StartTime Dur pTrans Proto SrcAddr Dir DstAddr pTotPkts State
17:49:54.225 8.101 33.333 tcp 192.168.0.0/16 -> 17.154.66.18 23.372 FIN
17:48:42.607 179.761 13.333 tcp 192.168.0.0/16 -> 17.172.224.25 31.052 FIN
17:50:01.113 0.803 6.667 tcp 192.168.0.0/16 -> 17.250.248.161 5.676 FIN
17:49:54.525 1.153 6.667 tcp 192.168.0.0/16 -> 64.12.173.137 5.509 FIN
17:50:35.411 101.133 26.667 tcp 192.168.0.0/16 -> 184.28.150.87 19.199 RST
17:49:56.061 73.415 6.667 tcp 192.168.0.0/16 -> 205.188.8.47 11.018 RST
17:49:55.677 0.434 6.667 tcp 192.168.0.0/16 -> 205.188.101.10 4.174 FIN
π COPYRIGHT π
Copyright (c) 2000-2024 QoSient. All rights reserved.
(protect her at all costs, she's been here since 2000. π)
π¦ SEE ALSO π¦
go read your siblings, bestie, they're all part of the family. πΈ
π FILES π
(nothing here, and honestly? that's valid. sometimes the most iconic move is saying nothing. π )
β AUTHORS β
Carter Bullard (carter@qosient.com). thank you carter, the vision, the legacy, the icon. π«Ά
π BUGS π
(nothing listed. a flawless queen, no notes. no bugs, only vibes. π)
okay that's the whole page bestie, you made it to the end!! this was ratrace version 5.0.3, dated 07 October 2023, from the General Commands Manual β go trace some routes and slay. π
β¨π
π¦ where this page comes from
- debian trixie: argus-client 1:5.0.2+git20250321.41f65e2-2 Β· GPL-2.0-or-later
- ubuntu questing: argus-client 1:5.0.2+git20250321.41f65e2-2ubuntu1
- ubuntu resolute: argus-client 1:5.0.2+git20250321.41f65e2-2ubuntu2 Β· GPL-2.0-or-later
- ubuntu stonking: argus-client 1:5.0.2+git20250321.41f65e2-2ubuntu2 Β· GPL-2.0-or-later
- Copyright (c) 2000-2024 QoSient, LLC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms