[Machine readable output from userland utilities] report

Zaro Korchev zkorchev at mail.bg
Mon Jul 14 10:17:55 UTC 2014


Hi everybody

This week I added libsol support for several other tools.

sockstat
wc
last

This is a sample output from last:

[
    {
        "type": "login",
        "user": "root",
        "line": "ttyv0",
        "host": "",
        "time": "Tue May 27 13:59",
        "logout": "shutdown",
        "duration": {
            "days": 0,
            "hours": "00:01"
        }
    },
    {
        "type": "boot",
        "time": "Tue May 27 13:58"
    },
    {
        "type": "shutdown",
        "time": "Tue May 27 13:58"
    },
    {
        "type": "login",
        "user": "root",
        "line": "ttyv1",
        "host": "",
        "time": "Tue May 27 12:55",
        "logout": "shutdown",
        "duration": {
            "days": 0,
            "hours": "01:03"
        }
    },
    {
        "type": "login",
        "user": "root",
        "line": "ttyv0",
        "host": "",
        "time": "Tue May 27 12:23",
        "logout": "shutdown",
        "duration": {
            "days": 0,
            "hours": "01:34"
        }
    },
    {
        "type": "boot",
        "time": "Tue May 27 12:23"
    }
]

Zaro


More information about the soc-status mailing list