netft record
Records every accepted sample to CSV or NDJSON. The destination must not exist. Capture writes a .partial path and promotes it only after a clean drain and flush; exit code 8 means integrity was not guaranteed.
Synopsis
netft record [HOST] --output PATH [OPTIONS]Record every accepted sensor sample to a bounded capture.
Options
| Option | Value | Description |
|---|---|---|
-v, --verbose | flag | Show additional diagnostic progress. |
-q, --quiet | flag | Suppress progress output. |
--color | auto|always|never | Control color in human-readable output. |
--http-port | PORT | Set the sensor HTTP port. |
--rdt-port | PORT | Set the sensor RDT port. |
--timeout | DURATION | Set the connection timeout. |
--format | auto|text|json|table|ndjson|csv | Select the output format. |
--output | PATH | Write output to a file. |
--duration | DURATION | Stop after a bounded duration. |
--count | INTEGER | Stop after recording this many samples. |
Exit status
| Code | Meaning |
|---|---|
0 | Completed successfully |
2 | Invalid command line or configuration |
3 | Sensor discovery failed |
4 | Stream connection or acquisition failed |
5 | Sensor reported a fault |
6 | Input/output operation failed |
8 | Recording integrity could not be guaranteed |
130 | Interrupted |
Examples
netft record sensor.example --output measurement.csv
netft record sensor.example --output measurement.ndjson --duration 60s