Here's the result on an XP machine with a single NIC:

*{
  "discovertype": "netconfig",
  "description": "IP Network Configuration",
  "source": "netconfig",
  "host": "LAURALEE",
   "data": {
    "Local Area Connection": {
      "address": "20:CF:30:3C:F3:CF",
      "mtu": 1500,
      "operstate": "UP",
      "ipaddrs": {
        "10.10.10.1/24": {"brd":"10.10.10.255"}
      }
    }
,
    "MS TCP Loopback interface": {
      "address": "00:00:00:00:00:00",
      "mtu": 1520,
      "operstate": "UP",
      "ipaddrs": {
        "127.0.0.1/8": {}      }
    }
  }
}*

I did notice that all the lines are ended by <LF> only. But the last one is ended by <CR><LF>. Don't know if that matters.

The comma I highlighted in red probably isn't where you meant to put it (but it makes no difference).

BUT AN AWESOME GREAT JOB!  Thanks!


On 4/12/2013 6:24 PM, Roger Massey wrote:
Here is a link <https://dl.dropboxusercontent.com/u/17774745/netconfig.zip> to a zip file with a windows netconfigexe. (The . is missing to make the mailer happy). If you have a windows machine run netconfig.exe on it. It should output a json string that describes the machine's network config.

You could verify the json is legal on web validators (jsonlint, ...) or post the string to the list.

If you have visual studio c# 2010 the source code is also in the zip and comments to the list are welcome.

It is my first c# program so be gentle.
Roger

PS. I never could get the exe and/or zip through the mailer.


_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/

_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/

Reply via email to