Comment 3 for bug 1762546

Revision history for this message
Taihsiang Ho (tai271828) wrote :

ubuntu@201306-13868:~$ sudo dmidecode -t bios -t system | python3 -m plainbox dev parse dmidecode | jq '[.[0]."_attributes" + {"category": .[0]."category"}, .[1]."_attributes" + {"category": .[1]."category"}]'
error: syntax error, unexpected QQSTRING_START, expecting IDENT
[.[0]."_attributes" + {"category": .[0]."category"}, .[1]."_attributes" + {"category": .[1]."category"}]
      ^
1 compile error
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe
ubuntu@201306-13868:~$

ubuntu@201306-13868:~$ sudo dmidecode -t bios -t system | python3 -m plainbox dev parse dmidecode
[
    {
        "_attributes": {
            "bios_address": "0xE0000",
            "bios_bios_revision": "1.4",
            "bios_firmware_revision": "1.4",
            "bios_release_date": "10/04/2016",
            "bios_rom_size": "6656 kB",
            "bios_runtime_size": "128 kB",
            "bios_vendor": "Dell Inc.",
            "bios_version": "A14"
        },
        "category": "BIOS"
    },
    {
        "_attributes": {
            "system_family": "Shark Bay ULT",
            "system_name": "Inspiron 7537",
            "system_sku_number": "Inspiron 7537",
            "system_uuid": "4C4C4544-0000-0010-8000-80C04F000000",
            "system_vendor": "Dell Inc.",
            "system_version": "Not Specified",
            "system_wake_up_type": "Power Switch"
        },
        "category": "SYSTEM"
    }
]
ubuntu@201306-13868:~$

ubuntu@201306-13868:~$ sudo dmidecode -t bios -t system | pastebinit
http://paste.ubuntu.com/p/sNRfhNJQT2/