Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Value UPTIME_DAYS (\d+)
Value UPTIME_HOURS (\d+)
Value UPTIME_MINUTES (\d+)
Value UPTIME_SECONDS (\d+)
Value VERSION (.+)
Value BUILD_TIME ([A-Za-z]{3}\/\d{1,2}\/\d{4} \d{2}:\d{2}:\d{2})
Value FACTORY_SOFTWARE (\S+)
Value VERSION (\S+(?:\s+\S+)*)
Value BUILD_TIME ((\d{4}-\d{2}-\d{2}|[A-Za-z]{3}\/\d{1,2}\/\d{4}) \d{2}:\d{2}:\d{2})
Value FACTORY_SOFTWARE (\S+(?:\s+\S+)*)
Copy link
Collaborator

@mjbear mjbear Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The factory software data provided does not require a change to the regex as there only appears to be one word (not two words/strings separated with a space).
Do you have data that shows a version separated with a space?

Value FREE_MEMORY (\d+\.\d{1}(K|M|G)iB)
Value TOTAL_MEMORY (\d+\.\d{1}(K|M|G)iB)
Value CPU (.+)
Value CPU (\S+(?:\s+\S+)*)
Value CPU_COUNT (\d+)
Value CPU_FREQUENCY (\d+(M|G)Hz)
Value CPU_LOAD (\d{1,3}%)
Expand All @@ -18,9 +18,9 @@ Value TOTAL_HDD_SPACE (\d+\.\d{1}(K|M|G)iB)
Value WRITE_SECT_SINCE_REBOOT (\d+)
Value WRITE_SECT_TOTAL (\d+)
Value BAD_BLOCKS (\d{1,3}(\.\d+)?%)
Value ARCHITECTURE_NAME (\S*)
Value BOARD_NAME (.+)
Value PLATFORM (.+)
Value ARCHITECTURE_NAME (\S+(?:\s+\S+)*)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of the architecture name in the provided data has a space and a second word. There doesn't appear to be a reason to change the regex unless there's test data we haven't seen.

Value BOARD_NAME (\S+(?:\s+\S+)*)
Value PLATFORM (\S+(?:\s+\S+)*)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

platform only shows up as a single word in the test data. There doesn't appear to be a reason to change the regex. Is there more test data?


Start
^\s*uptime\:\s+${UPTIME}\s*$$ -> Continue
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
uptime: 7w5d6h42m45s
version: 7.16.1 (stable)
build-time: 2024-10-10 14:03:32
factory-software: 6.41.3
free-memory: 178.4MiB
total-memory: 256.0MiB
cpu: MIPS 1004Kc V2.15
cpu-count: 4
cpu-frequency: 880MHz
cpu-load: 1%
free-hdd-space: 5.5MiB
total-hdd-space: 16.0MiB
write-sect-since-reboot: 12691
write-sect-total: 576299
architecture-name: mmips
board-name: hEX S
platform: MikroTik
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
parsed_sample:
- architecture_name: "mmips"
bad_blocks: ""
board_name: "hEX S"
build_time: "2024-10-10 14:03:32"
cpu: "MIPS 1004Kc V2.15"
cpu_count: "4"
cpu_frequency: "880MHz"
cpu_load: "1%"
factory_software: "6.41.3"
free_hdd_space: "5.5MiB"
free_memory: "178.4MiB"
platform: "MikroTik"
total_hdd_space: "16.0MiB"
total_memory: "256.0MiB"
uptime: "7w5d6h42m45s"
uptime_days: "5"
uptime_hours: "6"
uptime_minutes: "42"
uptime_seconds: "45"
uptime_weeks: "7"
version: "7.16.1 (stable)"
write_sect_since_reboot: "12691"
write_sect_total: "576299"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
uptime: 2h14m31s
version: 7.18.2 (stable)
build-time: 2025-03-11 11:59:04
factory-software: 7.4.1
free-memory: 845.8MiB
total-memory: 1024.0MiB
cpu: ARM64
cpu-count: 4
cpu-frequency: 350MHz
cpu-load: 1%
free-hdd-space: 992.3MiB
total-hdd-space: 1024.0MiB
write-sect-since-reboot: 40
write-sect-total: 315102
bad-blocks: 0%
architecture-name: arm64
board-name: RB5009UG+S+
platform: MikroTik
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
parsed_sample:
- architecture_name: "arm64"
bad_blocks: "0%"
board_name: "RB5009UG+S+"
build_time: "2025-03-11 11:59:04"
cpu: "ARM64"
cpu_count: "4"
cpu_frequency: "350MHz"
cpu_load: "1%"
factory_software: "7.4.1"
free_hdd_space: "992.3MiB"
free_memory: "845.8MiB"
platform: "MikroTik"
total_hdd_space: "1024.0MiB"
total_memory: "1024.0MiB"
uptime: "2h14m31s"
uptime_days: ""
uptime_hours: "2"
uptime_minutes: "14"
uptime_seconds: "31"
uptime_weeks: ""
version: "7.18.2 (stable)"
write_sect_since_reboot: "40"
write_sect_total: "315102"
Loading