Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2014 19:15:45 +0300
From:      Zaro Korchev <zkorchev@mail.bg>
To:        soc-status@freebsd.org
Subject:   Re: [Machine readable output from userland utilities] report
Message-ID:  <5AF0FF20-E41B-4D46-A427-D84D9E2CD047@mail.bg>
In-Reply-To: <2F779B73-EAC5-49B4-B3E8-7A81109EC166@mail.bg>
References:  <8D1B686D-1AAA-4E07-9270-E42699110561@mail.bg> <2F779B73-EAC5-49B4-B3E8-7A81109EC166@mail.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi everybody

This week I finished working on netstat which took a lot of time as it =
supports huge amount of possible output statistics.
Here is an example after formatting:

{
    "internet": [
        {
            "proto": "udp4 ",
            "recv": 0,
            "sent": 0,
            "local address": "10.0.2.15.53954 ",
            "foreign address": "4.2.2.2.53 "
        },
    ],
    "unix": [
        {
            "sockets": [
                {
                    "address": -8796049594976,
                    "type": "stream",
                    "recv": 0,
                    "send": 0,
                    "inode": -8796049389256,
                    "conn": 0,
                    "refs": 0,
                    "nextref": 0,
                    "path": "/var/run/casper"
                },
                {
                    "address": -8796049594736,
                    "type": "stream",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049594496,
                    "refs": 0,
                    "nextref": 0
                },
                {
                    "address": -8796049594496,
                    "type": "stream",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049594736,
                    "refs": 0,
                    "nextref": 0
                },
                {
                    "address": -8796049593536,
                    "type": "stream",
                    "recv": 0,
                    "send": 0,
                    "inode": -8796050837032,
                    "conn": 0,
                    "refs": 0,
                    "nextref": 0,
                    "path": "/var/run/devd.pipe"
                }
            ]
        },
        {
            "sockets": [
                {
                    "address": -8796049596416,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049594016,
                    "refs": 0,
                    "nextref": -8796049596176
                },
                {
                    "address": -8796049596176,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049594016,
                    "refs": 0,
                    "nextref": -8796049595936
                },
                {
                    "address": -8796049595936,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049594016,
                    "refs": 0,
                    "nextref": -8796049595696
                },
                {
                    "address": -8796049595696,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049594016,
                    "refs": 0,
                    "nextref": -8796049595216
                },
                {
                    "address": -8796049595456,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049593776,
                    "refs": 0,
                    "nextref": 0
                },
                {
                    "address": -8796049595216,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049594016,
                    "refs": 0,
                    "nextref": -8796049594256
                },
                {
                    "address": -8796049594256,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": 0,
                    "conn": -8796049594016,
                    "refs": 0,
                    "nextref": 0
                },
                {
                    "address": -8796049594016,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": -8796050221216,
                    "conn": 0,
                    "refs": -8796049596416,
                    "nextref": 0,
                    "path": "/var/run/logpriv"
                },
                {
                    "address": -8796049593776,
                    "type": "dgram",
                    "recv": 0,
                    "send": 0,
                    "inode": -8796050220744,
                    "conn": 0,
                    "refs": -8796049595456,
                    "nextref": 0,
                    "path": "/var/run/logpriv"
                }
            ]
        },
        {
            "sockets": []
        }
    ]
}

There are some issues that I'm working on fixing. The most important is =
how to display very big integers which at the moment is not directly =
possible with yajl.

In the process I did some changes to libsol (like adding boolean =
support).

I did some fixes on the ls project and updated it to use the newest API =
of the system's libsol.

I'm currently working on fixing bugs and then I'm going to add libsol =
support to more tools.


Zaro=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AF0FF20-E41B-4D46-A427-D84D9E2CD047>