Skip to content

Coverage report (nvctl coverage)

nvctl coverage answers one question about your own network: how much of its configuration does netverdict read? It imports every config file in a directory and writes a report per device type and profile. The report is built so that it can be shared outside the network it was measured on.

nvctl coverage <dir> [--manifest m.json] [--vendor-map map.json]
[--min-devices 3] [--top 150]
[--json out.json] [--md out.md] [--baseline prev.json]
[--jobs N] [--timeout S] [--strict]

For each device type and profile:

MeasureMeaning
LinesConfiguration lines read.
ModelledLines that change the simulated network.
CarriedLines kept and written back, with the reason they change nothing here.
No effectLines accepted with no effect.
UnrecognizedLines the profile does not know.
IncompleteLines that point at something the config does not define.
Export framingLines such as Building configuration... or a prompt at the edges of the text. They are taken off and counted, not read as config.
Not readLines of files the profile refused, could not read, or timed out on.
Import and apply timeMedian and maximum per device.
FailuresFiles that could not be read or timed out.

The report also lists the most common line shapes, most lines first. A shape is a line with its values masked by the grammars’ own keyword list, so names and addresses do not appear. Shapes seen on fewer than --min-devices devices are not listed one by one.

OptionEffect
--manifest m.jsonNames the estate: each file with its device type. Files not listed are skipped.
--vendor-map map.jsonMaps the manifest’s device types to netverdict profiles.
--min-devices NA shape is listed when at least N devices have it. Default 3.
--top NList at most N shapes per type. Default 150.
--json out.jsonWrite the report as JSON (schema 1).
--md out.mdWrite the report as Markdown.
--baseline prev.jsonCompare with an earlier JSON report.
--jobs NParallel imports. Default: the number of CPUs.
--timeout SSeconds per file before it counts as a failure. Default 120.
--strictRefuse to write a report that would carry anything from the input.

Without a vendor map, the profile is detected from the content. An APIC dump is read as cisco-aci. A format with no profile is refused and counted, not guessed.

With --strict, the finished report is checked before anything is written. It must contain no IP address and no word from the input: no hostname from the configs, no file name, and no manifest value except the device type. If it would, nothing is written and the command exits with status 3.

With --baseline, the new report is compared with an earlier one, type by type, with the shapes that are new, gone or changed. If a device type now has a larger share of unrecognized lines or more incomplete lines, or more files fail, the command exits with status 1. Timing is shown but does not fail the gate. Use it in CI to stop a netverdict upgrade, or a config change, that reads less of your network.

StatusMeaning
0The report was written.
1The report was written, and it is worse than the baseline.
3Usage error, or --strict refused to write.

The importers give every line they do not model a note with one of four classes. The coverage report counts them:

ClassMeaning
unrecognized:The profile does not know the line.
no effect:The line is accepted and changes nothing in the simulation.
incomplete:The line refers to something the config does not define, or misses a part the box needs.
remark:A note about the device, not about one line. For example: a Check Point Gaia export has no security policy (it is on the management server), or a NetScaler address was placed on one port of a VLAN with several.

Each line is noted at most as often as the file holds it.