<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=RusNet%2FSCHEMA</id>
	<title>RusNet/SCHEMA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=RusNet%2FSCHEMA"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=RusNet/SCHEMA&amp;action=history"/>
	<updated>2026-12-05T22:42:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=RusNet/SCHEMA&amp;diff=841&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=RusNet/SCHEMA&amp;diff=841&amp;oldid=prev"/>
		<updated>2026-11-29T20:33:00Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= RusNet report format (schema v1) =&lt;br /&gt;
&lt;br /&gt;
Every RusNet scan is written to a single JSON document. This is the standardized interchange format: any RusNet viewer (the self-contained HTML report, the Python desktop app, the .NET WebView2 app) loads any file in this shape and renders the full interactive report from it. Hand-written or third-party JSON renders too, as long as it matches the shape below.&lt;br /&gt;
&lt;br /&gt;
The HTML report embeds one of these objects as &amp;lt;code&amp;gt;window.&amp;amp;#95;_RUSNET_DATA&amp;amp;#95;_&amp;lt;/code&amp;gt;; the viewers also accept one at runtime through &amp;lt;code&amp;gt;window.rusnet.load(objectOrJsonString)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Top level ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-jsonc&amp;quot;&amp;gt;{&lt;br /&gt;
  &amp;quot;tool&amp;quot;: &amp;quot;RusNet&amp;quot;,               // producer name&lt;br /&gt;
  &amp;quot;version&amp;quot;: &amp;quot;1.0.0&amp;quot;,             // producer version&lt;br /&gt;
  &amp;quot;scanner_host&amp;quot;: &amp;quot;my-pc&amp;quot;,        // hostname of the machine that ran the scan&lt;br /&gt;
  &amp;quot;started_at&amp;quot;:  &amp;quot;2026-10-25T14:03:11-05:00&amp;quot;,   // ISO-8601 with offset&lt;br /&gt;
  &amp;quot;finished_at&amp;quot;: &amp;quot;2026-10-25T14:04:48-05:00&amp;quot;,&lt;br /&gt;
  &amp;quot;networks&amp;quot;: [&amp;quot;192.168.1.0/24&amp;quot;], // CIDRs that were swept&lt;br /&gt;
  &amp;quot;stats&amp;quot;: {                      // derived totals (the viewer recomputes these, so they&amp;#039;re advisory)&lt;br /&gt;
    &amp;quot;total_hosts&amp;quot;: 12,&lt;br /&gt;
    &amp;quot;hosts_up&amp;quot;: 11,&lt;br /&gt;
    &amp;quot;open_ports&amp;quot;: 34,&lt;br /&gt;
    &amp;quot;with_vendor&amp;quot;: 9,&lt;br /&gt;
    &amp;quot;with_hostname&amp;quot;: 7&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;interfaces&amp;quot;: [ Interface, ... ],&lt;br /&gt;
  &amp;quot;hosts&amp;quot;:      [ Host, ... ]      // the only required non-trivial array&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The viewer needs only &amp;lt;code&amp;gt;hosts&amp;lt;/code&amp;gt; (an array) to render; everything else degrades gracefully.&lt;br /&gt;
&lt;br /&gt;
== Interface ==&lt;br /&gt;
&lt;br /&gt;
One of the scanning machine&amp;#039;s own adapters.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field&lt;br /&gt;
! Type&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Adapter name&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| IPv4 address&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;mac&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| MAC, lower-case colon form&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;netmask&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Dotted netmask&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;cidr&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Network in CIDR form&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;gateway&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Default gateway IP&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;dns&amp;lt;/code&amp;gt;&lt;br /&gt;
| string[]&lt;br /&gt;
| DNS server IPs&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;dhcp&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Whether DHCP is enabled (as the OS reports it)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Host ==&lt;br /&gt;
&lt;br /&gt;
One discovered device. Only &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt; is required; every other field may be absent or empty.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field&lt;br /&gt;
! Type&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ip&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| &amp;lt;strong&amp;gt;Required.&amp;lt;/strong&amp;gt; IPv4 address&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;mac&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| MAC address (lower-case colon form)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;vendor&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| MAC OUI vendor, or &amp;lt;code&amp;gt;&amp;quot;(randomised MAC)&amp;quot;&amp;lt;/code&amp;gt; for a locally-administered MAC&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;hostname&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| PTR / NetBIOS / mDNS name&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sources&amp;lt;/code&amp;gt;&lt;br /&gt;
| string[]&lt;br /&gt;
| How it was seen: any of &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;arp&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ssdp&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mdns&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;self&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;is_up&amp;lt;/code&amp;gt;&lt;br /&gt;
| bool&lt;br /&gt;
| Responded to discovery&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;is_self&amp;lt;/code&amp;gt;&lt;br /&gt;
| bool&lt;br /&gt;
| This is the scanning machine&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;is_gateway&amp;lt;/code&amp;gt;&lt;br /&gt;
| bool&lt;br /&gt;
| This is a default gateway&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;rtt_ms&amp;lt;/code&amp;gt;&lt;br /&gt;
| number&amp;amp;#124;null&lt;br /&gt;
| Ping round-trip in ms&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ttl&amp;lt;/code&amp;gt;&lt;br /&gt;
| number&amp;amp;#124;null&lt;br /&gt;
| Reply TTL (OS hint: ~64 Linux/Android, ~128 Windows, ~255 appliance)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;os_guess&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Coarse OS guess from TTL&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;device_type&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| One of the taxonomy values below (the viewer colours/groups by this)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;model&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Model string when a protocol revealed one&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ports&amp;lt;/code&amp;gt;&lt;br /&gt;
| Port[]&lt;br /&gt;
| Open TCP service ports&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;details&amp;lt;/code&amp;gt;&lt;br /&gt;
| object&lt;br /&gt;
| Free-form extras (SSDP/mDNS fields, etc.); string or string[] values&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Port ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field&lt;br /&gt;
! Type&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;&lt;br /&gt;
| number&lt;br /&gt;
| TCP port&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;service&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Expected service name&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;banner&amp;lt;/code&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Short banner / &amp;lt;code&amp;gt;Server:&amp;lt;/code&amp;gt; header, if offered&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;device_type&amp;lt;/code&amp;gt; taxonomy ==&lt;br /&gt;
&lt;br /&gt;
The viewer has a stable colour and glyph for each of these; an unknown value falls back to the &amp;quot;Unknown device&amp;quot; style, so new types still render.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Router / gateway&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Printer&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IP camera / NVR&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;NAS / file server&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Media server&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TV / streaming device&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Smart speaker / audio&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Smart lighting&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;IoT / smart-home device&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Phone / tablet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Windows PC&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Linux host / server&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Apple device&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Single-board computer (Raspberry Pi)&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Virtual machine&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Host with network services&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Unknown device&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Minimal valid example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-json&amp;quot;&amp;gt;{&lt;br /&gt;
  &amp;quot;tool&amp;quot;: &amp;quot;RusNet&amp;quot;,&lt;br /&gt;
  &amp;quot;hosts&amp;quot;: [&lt;br /&gt;
    { &amp;quot;ip&amp;quot;: &amp;quot;192.168.1.1&amp;quot;, &amp;quot;hostname&amp;quot;: &amp;quot;router.lan&amp;quot;, &amp;quot;device_type&amp;quot;: &amp;quot;Router / gateway&amp;quot;,&lt;br /&gt;
      &amp;quot;is_gateway&amp;quot;: true, &amp;quot;is_up&amp;quot;: true, &amp;quot;ports&amp;quot;: [{ &amp;quot;number&amp;quot;: 80, &amp;quot;service&amp;quot;: &amp;quot;HTTP&amp;quot; }] },&lt;br /&gt;
    { &amp;quot;ip&amp;quot;: &amp;quot;192.168.1.42&amp;quot;, &amp;quot;device_type&amp;quot;: &amp;quot;Unknown device&amp;quot;, &amp;quot;is_up&amp;quot;: true }&lt;br /&gt;
  ]&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save that as &amp;lt;code&amp;gt;anything.json&amp;lt;/code&amp;gt;, open it in any RusNet viewer, and it renders.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[RusNet]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/RusNet/blob/main/docs/SCHEMA.md RusNet/docs/SCHEMA.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:RusNet]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>