RASORT(1)

πŸ“¦
version 5.0.2+git20250321.41f65e2 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 RASORT(1) β€” the rasort manual page, bestie edition 🌸

okay so real talk: this is the manual page for rasort from the General Commands Manual section of your friendly neighborhood man pages. she's a sorting girlie. let's get into it πŸ’…


✨ NAME ✨

rasort β€” sort argus(8) data file.


πŸ¦‹ SYNOPSIS πŸ¦‹

rasort [[-M sortmode] [-m sort fields] ...]  [raoptions] [-- filter-expression]

πŸ’– DESCRIPTION πŸ’–

So basically Rasort reads argus data from an argus-data source, sorts the records based on the criteria you specify on the command line, and then outputs a valid argus-stream. that's it. that's the whole vibe. clean input, sorted output, no cap ✨


πŸ‘‘ OPTIONS πŸ‘‘

Rasort, like literally all ra based clients, supports a number of ra options including filtering of input argus records through a terminating filter expression. see ra(1) for a complete description of ra options, because she has the full tea πŸ«–

the rasort(1) specific options are:

  • -M replace β€” replaces the existing file(s) with the sorted output(s). like, out with the old, in with the sorted ✨
  • -m field [field ...] β€” picks your sort fields, bestie. here's every single one she supports:
    • stime β€” record start time <default> (she's the default, main character energy fr)
    • ltime β€” record last time.
    • trans β€” aggregation record count.
    • dur β€” record total duration.
    • avgdur β€” record average duration.
    • mindur β€” record minimum duration.
    • maxdur β€” record maximum duration.
    • smac β€” source MAC addr.
    • dmac β€” destination MAC addr.
    • soui β€” oui portion of the source MAC addr.
    • doui β€” oui portion of the destination MAC addr.
    • saddr[/cidr] β€” source IP addr, with optional cidr specification for IPv4 addresses.
    • daddr[/cidr] β€” destination IP addr, with optional cidr specification for IPv4 addresses.
    • proto β€” transaction protocol.
    • sport β€” source port number.
    • dport β€” destination port number.
    • stos β€” source TOS byte value.
    • dtos β€” destination TOS byte value.
    • sttl β€” src -> dst TTL value.
    • dttl β€” dst -> src TTL value.
    • bytes β€” total transaction bytes.
    • sbytes β€” src -> dst transaction bytes.
    • dbytes β€” dst -> src transaction bytes.
    • pkts β€” total transaction packet count.
    • spkts β€” src -> dst packet count.
    • dpkts β€” dst -> src packet count.
    • load β€” bits per second.
    • sload β€” source bits per second.
    • dload β€” destination bits per second.
    • loss β€” pkts retransmitted or dropped.
    • sloss β€” source pkts retransmitted or dropped.
    • dloss β€” destination pkts retransmitted or dropped.
    • ploss β€” percent pkts retransmitted or dropped.
    • sploss β€” percent source pkts retransmitted or dropped.
    • dploss β€” percent destination pkts retransmitted or dropped.
    • rate β€” pkts per second.
    • srate β€” source pkts per second.
    • drate β€” destination pkts per second.
    • tranref β€” argus transaction reference number.
    • seq β€” argus sequence number.
    • smpls β€” source MPLS identifier.
    • dmpls β€” destination MPLS identifier.
    • svlan β€” source VLAN identifier.
    • dvlan β€” destination VLAN identifier.
    • srcid β€” argus source identifier.
    • stcpb β€” source TCP base sequence number.
    • dtcpb β€” destination TCP base sequence number.
    • tcprtt β€” TCP connection setup round-trip time.
    • smeansz β€” source mean packet size
    • dmeansz β€” destination mean packet size
    • sco β€” source country code
    • dco β€” destination country code
    • sas β€” source autonomous system number
    • das β€” destination autonomous system number

πŸŽ€ INVOCATION πŸŽ€

here's a sample invocation of rasort(1), because seeing it is believing it. this call reads argus(8) data from inputfile and sorts the IP protocol based argus(8) data, first by the destination IP address, then by the service (destination) port number and then by the source IP address, and writes the results to stdout. for most services, this arranges argus(8) formatted data by server, service, and then by client. it's giving organized 🧚

rasort -r inputfile -m daddr dport saddr - ip

Copyright (c) 2000-2024 QoSient. All rights reserved.


🌈 SEE ALSO 🌈

ra(1), rarc(5), argus(8),


πŸ“ FILES πŸ“

(no entries here bestie, this section is empty in the original too β€” she said nothing to declare πŸ’€)


πŸ™ˆ AUTHORS πŸ™ˆ

Carter Bullard (carter@qosient.com).


πŸ’€ BUGS πŸ’€

(also empty in the original. iconic behavior honestly, no known bugs on the record ✨)


and that's the whole page, periodt. this was rasort 5.0.3, dated 21 April 2023, straight from the RASORT(1) corner of the manual. go forth and sort your argus data, bestie, you're gonna slay πŸ«ΆπŸ’–