ARMARA Course 02

Course 02 / Module 06

Read ArmaraOS output like a script, and save a 30-second morning check

Select one useful field from JSON, then save a short human-readable routine that establishes your daily baseline.

Level
Beginner
Time
12 minutes
Commands
5
Finish
A reusable morning check

Video / coming soon

The written lesson is complete now.

Choose a shell-native JSON reader

Use structured output to select a field, not merely to make the screen longer. The saved morning check stays human-readable.

PowerShell
(armaraos agent list --json | ConvertFrom-Json)[0].id
01

Start with the smallest JSON document

Run in your terminal
armaraos health --json
Real health JSON with status ok and version 0.8.3
Fresh complete output / 24 August 2026

JSON is useful when another command needs one exact field. Human output remains better for a quick visual scan.

02

Extract one UUID and nothing else

Run in your terminal
(armaraos agent list --json | ConvertFrom-Json)[0].id
Real PowerShell output selecting the first agent UUID from JSON
Fresh live output / one selected field

The result is the identifier required by commands such as message. The full roster also contains prompts, paths, names, and model details, so do not share it casually.

03

Expect document sizes to differ

Run in your terminal
armaraos status --json
Selected real status JSON fields including running state and agent count
Selected fields from a much larger real response
Run in your terminal
armaraos doctor --json
Selected real doctor JSON checks with all ok true
Selected checks from the real response

Status is a large runtime document. Doctor can report all_ok: true while optional checks still warn. Read the individual checks before deciding whether anything needs attention.

04

Read recurring flags correctly

FlagContract
--config <CONFIG>Use another configuration file where live help offers the recurring option.
--jsonRequest machine output only where that command's own help lists it.

If JSON errors on another command, check its help before blaming your typing.

05

Save the thirty-second morning check

Save as armaraos-morning.ps1
armaraos health
armaraos status
armaraos doctor
armaraos logs --lines 50

The check is deliberately readable. Run it each morning for a week and learn the normal shape of your own instance.

06

Keep audit text out of the routine

The next module adds a more sensitive record.

The security audit can contain prompt text. It stays out of a routine that might later be pasted into a support ticket without careful reading.

Check it / run the saved file

Read four results in sequence.

Run the morning check. Identify the daemon state, diagnostic summary, and whether the local TUI log contains lines.

Safety note

Structured output can contain prompts, local paths, agent names, and provider details. Select and redact before sharing it.

Troubleshooting for this sitting
What you seeLikely causeWhat to do
--json is rejectedThat command does not offer the flag.Read that command's own help.
PowerShell prints no UUIDThe roster is empty or JSON did not parse.Run the full JSON command and inspect it.
jq is not foundIt is not installed.Copy the first id manually for this lesson.
Doctor warns while all_ok is trueAn optional check is unavailable.Read the named check and act only if you need it.
Logs prints nothingThe TUI log is empty on this build.Record the observation and continue.

Back to Module 2.5

Next / Module 2.7

The audit trail, and why it reports itself invalid

Lesson ready