Skip to content

v0.2.0

Latest

Choose a tag to compare

@tmunzer-AIDE tmunzer-AIDE released this 18 Nov 17:24
v0.2.0
48a8055

mistctl v0.2.0

This release turns describe into a troubleshooting tool. It also adds Marvis troubleshooting, insight metrics over time, and four new resource types: audit logs, config history, NAC rules and licenses. mistctl is still read-only.

$ mistctl describe site HQ
$ mistctl troubleshoot client aa:bb:cc:dd:ee:ff
$ mistctl insights switch sw-core cpu rx_bytes

New commands

  • mistctl troubleshoot client MAC | device NAME | site [NAME]. Shows what Marvis found for a client, a device or a site: each finding with its explanation and recommendation. Use --type wireless|wired|wan for sites, and --duration or --start/--end within the last 7 days. API warnings, such as a missing Marvis subscription, go to stderr. This needs a Marvis subscription.
  • mistctl insights site|client|ap|switch|gateway|mxedge [NAME] [METRIC...]. Shows Mist insight metrics without building the request by hand. Objects are found by name, so the site is looked up for you. A few useful metrics are shown when you name none. The interval is picked from the window, and each series gets one summary line with a trend. --points prints every value, top N metrics print as a table, and -o json|yaml prints the raw API answer. Metric names, device names and client hostnames tab-complete. mistctl insights metrics [KIND] lists the metrics of each kind of object.

New resources

  • get audit-logs: who changed what, filtered by --site, --admin or --text. -o wide adds the source IP, user agent and device name.
  • get config-history --site X: the configurations Mist pushed to a site's APs (version, SSIDs, band and channel), with --device to keep one AP.
  • get nac-rules and describe nac-rule: NAC rules in evaluation order, with their tags shown by name. describe shows what each referenced tag matches or assigns.
  • get licenses: entitled, used and available per license type for the org. With --site, it shows the site's usage next to the org entitlement.

Richer describe

Each new view states how many API calls it costs, in --help and in the README. A section that cannot be read is reported on its own line and does not fail the command.

  • describe site X is a health summary: counters, devices not connected, unacknowledged alarms and SLE scores over --duration.
  • describe device X adds the ports that are up (switches and WAN edges), the unacknowledged alarms naming the device and its last events.
  • describe port DEVICE:PORT adds the neighbor device, the device's port_config entry, the wired clients on the port and its last events.
  • describe client now takes a hostname as well as a MAC. A hostname shared by several clients lists their MACs so you can pick one. Client hostnames tab-complete in describe client and get clients.
  • describe alarm ID (new) finds the alarm and adds its definition, the current state of the affected devices, their events around the alarm, the email recipients and webhooks it goes to, and the 30-day count of that alarm type. --with audit adds the configuration changes of the hour before.
  • describe sle METRIC --site X (new) shows a metric's success rate and the classifiers behind the degraded part, ranked. --with impacted adds the most affected clients and devices.
  • describe nac-client MAC (new) explains the last NAC verdict: the matched rule with its tags by name, the user MAC labels and the last authentication events.

Fixes

  • describe mxedge now works for Mist Edges assigned to a site, and shows whether an edge is org- or site-level.
  • describe device and describe port reject an invalid time window (bad --duration, --start/--end, or a start after the end) before spending any API call. get commands also refuse an empty window up front.
  • get config-history --device finds the device's site by itself, so --site is no longer needed.
  • Long insight series are read across every page. An incomplete series prints a warning and exits non-zero.
  • The Homebrew tap and Scoop bucket READMEs now cover install, upgrade, uninstall, completions and a quick start.

Install

Platform Command
macOS / Linux (Homebrew) brew upgrade --cask mistctl or brew install --cask tmunzer-AIDE/tap/mistctl
Windows (Scoop) scoop update mistctl or scoop bucket add mistctl https://github.com/tmunzer-AIDE/scoop-bucket then scoop install mistctl
Debian / Ubuntu, RHEL / Fedora, Alpine .deb, .rpm and .apk packages below
Any platform Archives below, or go install github.com/tmunzer-AIDE/mistctl/cmd/mistctl@v0.2.0

The macOS binaries are signed with a Developer ID certificate and notarized by Apple. Each archive has an SBOM, and checksums.txt lists the SHA-256 of every file.

Known limitations

  • mistctl api <path> (raw access to any GET endpoint) is still on the roadmap.
  • Windows binaries are not Authenticode-signed, so a browser download may show a SmartScreen prompt. Installing through Scoop is not affected.
  • troubleshoot needs a Marvis subscription on the org.

Changelog