Skip to content
jc-rs
GitHub

ipconfig

--ipconfigv1.0.0

Windows `ipconfig` command parser

Windowscommand
$ ipconfig | jc-rs --ipconfig

A real pair

From the reference corpus (windows/windows-xp/ipconfig.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. The coverage note below explains why this pair does not enter the measured comparison. Hover a value to see where it came from.

ipconfigwindows-xp

Windows IP Configuration

   Host Name . . . . . . . . . . . . : DESKTOP-PC4
   Primary Dns Suffix  . . . . . . . : somecompany.corp
   Node Type . . . . . . . . . . . . : Unknown
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : somecompany.corp
                                       somecompany.xyz

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection
   Physical Address. . . . . . . . . : 00-0C-29-25-B6-4D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IP Address. . . . . . . . . . . . : 192.168.22.135
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.22.1
   DHCP Server . . . . . . . . . . . : 192.168.22.1
   DNS Servers . . . . . . . . . . . : 192.168.22.151
   Lease Obtained. . . . . . . . . . : Saturday, September 21, 2024 10:31:26 PM
   Lease Expires . . . . . . . . . . : Sunday, September 22, 2024 10:31:26 PM
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{
  "host_name": "DESKTOP-PC4",
  "primary_dns_suffix": "somecompany.corp",
  "node_type": "Unknown",
  "ip_routing_enabled": false,
  "wins_proxy_enabled": false,
  "dns_suffix_search_list": [
    "somecompany.corp",
    "somecompany.xyz"
  ],
  "adapters": [
    {
      "name_long": "Ethernet adapter Local Area Connection",
      "name": "Local Area Connection",
      "type": "Ethernet",
      "connection_specific_dns_suffix": null,
      "connection_specific_dns_suffix_search_list": [],
      "description": "Intel(R) PRO/1000 MT Network Connection",
      "physical_address": "00-0C-29-25-B6-4D",
      "dhcp_enabled": true,
      "autoconfiguration_enabled": true,
      "ipv6_addresses": [],
      "temporary_ipv6_addresses": [],
      "link_local_ipv6_addresses": [],
      "ipv4_addresses": [
        {
          "address": "192.168.22.135",
          "subnet_mask": "255.255.255.0",
          "status": null,
          "autoconfigured": false
        }
      ],
      "default_gateways": [
        "192.168.22.1"
      ],
      "dhcp_server": "192.168.22.1",
      "dhcpv6_iaid": null,
      "dhcpv6_client_duid": null,
      "dns_servers": [
        "192.168.22.151"
      ],
      "primary_wins_server": null,
      "lease_expires": "Sunday, September 22, 2024 10:31:26 PM",
      "lease_obtained": "Saturday, September 21, 2024 10:31:26 PM",
      "netbios_over_tcpip": null,
      "media_state": null,
      "extras": [],
      "lease_expires_epoch": 1727069486,
      "lease_expires_iso": "2024-09-22T22:31:26",
      "lease_obtained_epoch": 1726983086,
      "lease_obtained_iso": "2024-09-21T22:31:26"
    }
  ],
  "extras": []
}

Fixture coverage

noneThe reference corpus ships no oracle-valid fixture for this parser, so the differential cannot speak for it. That is reported, not hidden.

Magic syntax

jc-rs ipconfigjc-rs runs the command itself and parses what it prints. Recognised for: `ipconfig`

Source: crates/jc-rs-parsers/src/misc/ipconfig.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare