Project

General

Profile

Actions

Feature #1357

closed

Feature #1344: Hardware/Inventarisierung: Masterplan

lshw als JSON

Added by Jannik Schönartz about 4 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Start date:
04/08/2020
Due date:
% Done:

100%

Estimated time:

Description

lshw hat einen Parameter --json und so wie es scheint, liefert es eine Menge Daten.
Es bleibt zu evaluieren, ob das eine stabile Quelle ist.

Actions #1

Updated by Udo Daniel Walter about 4 years ago

Als Beispiel mal der Output von "lshw -json" auf dem Client zeft9003 (10.21.11.3):

{
  "id" : "zeft9003",
  "class" : "system",
  "claimed" : true,
  "handle" : "DMI:0022",
  "description" : "Arbeitsplatzrechner",
  "product" : "ESPRIMO Q958",
  "vendor" : "FUJITSU",
  "serial" : "YMLM014708",
  "width" : 64,
  "configuration" : {
    "administrator_password" : "enabled",
    "boot" : "normal",
    "chassis" : "desktop",
    "family" : "ESPRIMO-FTS",
    "power-on_password" : "disabled",
    "uuid" : "A73AD0AE-9D50-E911-A22A-4C52623D32EE" 
  },
  "capabilities" : {
    "smbios-3.2" : "SMBIOS version 3.2",
    "dmi-3.2" : "DMI version 3.2",
    "smp" : "Symmetric Multi-Processing",
    "vsyscall32" : "32-Bit-Prozesse" 
  },
  "children" : [
    {
      "id" : "core",
      "class" : "bus",
      "claimed" : true,
      "handle" : "DMI:001F",
      "description" : "Hauptplatine",
      "product" : "D3613-A1",
      "vendor" : "FUJITSU",
      "physid" : "0",
      "version" : "S26361-D3613-A1",
      "serial" : "59365893",
      "children" : [
        {
          "id" : "firmware",
          "class" : "memory",
          "claimed" : true,
          "description" : "BIOS",
          "vendor" : "FUJITSU // American Megatrends Inc.",
          "physid" : "0",
          "version" : "V5.0.0.13 R1.13.0 for D3613-A1x",
          "date" : "02/11/2019",
          "units" : "bytes",
          "size" : 65536,
          "capacity" : 16711680,
          "capabilities" : {
            "pci" : "PCI-Bus",
            "upgrade" : "BIOS EEPORM kann aktualisiert werden",
            "shadowing" : "BIOS-Shadowing",
            "cdboot" : "Starten von CD-ROM/DVD",
            "bootselect" : "Wählbarer Boot-Pfad",
            "edd" : "Verbesserte Festplattenerweiterungen",
            "int5printscreen" : "Bildschirmfoto-Taste",
            "int9keyboard" : "i8042-Tastatursteuerung",
            "int14serial" : "INT14-Steuerung für serielle Leitungen",
            "int17printer" : "INT17-Druckersteuerung",
            "acpi" : "ACPI",
            "usb" : "USB-Legacy-Emulation",
            "biosbootspecification" : "BIOS-Boot-Vorgabe",
            "uefi" : "UEFI specification is supported" 
          }
        },
        {
          "id" : "memory",
          "class" : "memory",
          "claimed" : true,
          "handle" : "DMI:000A",
          "description" : "Systemspeicher",
          "physid" : "a",
          "slot" : "Systemplatine oder Hauptplatine",
          "units" : "bytes",
          "size" : 17179869184,
          "children" : [
            {
              "id" : "bank:0",
              "class" : "memory",
              "claimed" : true,
              "handle" : "DMI:000B",
              "description" : "SODIMM DDR4 Synchron 2667 MHz (0,4 ns)",
              "product" : "M471A2K43CB1-CTD",
              "vendor" : "Samsung",
              "physid" : "0",
              "serial" : "41A5F7A1",
              "slot" : "DIMM CHA1",
              "units" : "bytes",
              "size" : 17179869184,
              "width" : 64,
              "clock" : 2667000000
            },
            {
              "id" : "bank:1",
              "class" : "memory",
              "claimed" : true,
              "handle" : "DMI:000C",
              "description" : "Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-05-30 08:16+0000Last-Translator: Hendrik Knackstedt <Unknown>Language-Team: German <de@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719)Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-05-30 08:16+0000Last-Translator: Hendrik Knackstedt <Unknown>Language-Team: German <de@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719) [leer]",
              "physid" : "1",
              "slot" : "DIMM CHB2" 
            }
          ]
        },
        {
          "id" : "cache:0",
          "class" : "memory",
          "claimed" : true,
          "handle" : "DMI:0013",
          "description" : "L1 Cache",
          "physid" : "13",
          "slot" : "L1 Cache",
          "units" : "bytes",
          "size" : 393216,
          "capacity" : 393216,
          "configuration" : {
            "level" : "1" 
          },
          "capabilities" : {
            "synchronous" : "Synchron",
            "internal" : "Intern",
            "write-back" : "Write-back",
            "unified" : "Gemeinsamer Zwischenspeicher" 
          }
        },
        {
          "id" : "cache:1",
          "class" : "memory",
          "claimed" : true,
          "handle" : "DMI:0014",
          "description" : "L2 Cache",
          "physid" : "14",
          "slot" : "L2 Cache",
          "units" : "bytes",
          "size" : 1572864,
          "capacity" : 1572864,
          "configuration" : {
            "level" : "2" 
          },
          "capabilities" : {
            "synchronous" : "Synchron",
            "internal" : "Intern",
            "write-back" : "Write-back",
            "unified" : "Gemeinsamer Zwischenspeicher" 
          }
        },
        {
          "id" : "cache:2",
          "class" : "memory",
          "claimed" : true,
          "handle" : "DMI:0015",
          "description" : "L3 Cache",
          "physid" : "15",
          "slot" : "L3 Cache",
          "units" : "bytes",
          "size" : 9437184,
          "capacity" : 9437184,
          "configuration" : {
            "level" : "3" 
          },
          "capabilities" : {
            "synchronous" : "Synchron",
            "internal" : "Intern",
            "write-back" : "Write-back",
            "unified" : "Gemeinsamer Zwischenspeicher" 
          }
        },
        {
          "id" : "cpu",
          "class" : "processor",
          "claimed" : true,
          "handle" : "DMI:0016",
          "description" : "CPU",
          "product" : "Intel(R) Core(TM) i5-8500T CPU @ 2.10GHz",
          "vendor" : "Intel Corp.",
          "physid" : "16",
          "businfo" : "cpu@0",
          "version" : "Intel(R) Core(TM) i5-8500T CPU @ 2.10GHz",
          "slot" : "CPU1",
          "units" : "Hz",
          "size" : 3124959000,
          "capacity" : 4005032704,
          "width" : 64,
          "clock" : 100000000,
          "configuration" : {
            "cores" : "6",
            "enabledcores" : "6",
            "threads" : "6" 
          },
          "capabilities" : {
            "x86-64" : "64bits extensions (x86-64)",
            "fpu" : "mathematical co-processor",
            "fpu_exception" : "FPU exceptions reporting",
            "wp" : true,
            "vme" : "virtual mode extensions",
            "de" : "debugging extensions",
            "pse" : "page size extensions",
            "tsc" : "time stamp counter",
            "msr" : "model-specific registers",
            "pae" : "4GB+ memory addressing (Physical Address Extension)",
            "mce" : "machine check exceptions",
            "cx8" : "compare and exchange 8-byte",
            "apic" : "on-chip advanced programmable interrupt controller (APIC)",
            "sep" : "fast system calls",
            "mtrr" : "memory type range registers",
            "pge" : "page global enable",
            "mca" : "machine check architecture",
            "cmov" : "conditional move instruction",
            "pat" : "page attribute table",
            "pse36" : "36-bit page size extensions",
            "clflush" : true,
            "dts" : "debug trace and EMON store MSRs",
            "acpi" : "thermal control (ACPI)",
            "mmx" : "multimedia extensions (MMX)",
            "fxsr" : "fast floating point save/restore",
            "sse" : "streaming SIMD extensions (SSE)",
            "sse2" : "streaming SIMD extensions (SSE2)",
            "ss" : "self-snoop",
            "ht" : "HyperThreading",
            "tm" : "thermal interrupt and status",
            "pbe" : "pending break event",
            "syscall" : "fast system calls",
            "nx" : "no-execute bit (NX)",
            "pdpe1gb" : true,
            "rdtscp" : true,
            "constant_tsc" : true,
            "art" : true,
            "arch_perfmon" : true,
            "pebs" : true,
            "bts" : true,
            "rep_good" : true,
            "nopl" : true,
            "xtopology" : true,
            "nonstop_tsc" : true,
            "cpuid" : true,
            "aperfmperf" : true,
            "tsc_known_freq" : true,
            "pni" : true,
            "pclmulqdq" : true,
            "dtes64" : true,
            "monitor" : true,
            "ds_cpl" : true,
            "vmx" : true,
            "smx" : true,
            "est" : true,
            "tm2" : true,
            "ssse3" : true,
            "sdbg" : true,
            "fma" : true,
            "cx16" : true,
            "xtpr" : true,
            "pdcm" : true,
            "pcid" : true,
            "sse4_1" : true,
            "sse4_2" : true,
            "x2apic" : true,
            "movbe" : true,
            "popcnt" : true,
            "tsc_deadline_timer" : true,
            "aes" : true,
            "xsave" : true,
            "avx" : true,
            "f16c" : true,
            "rdrand" : true,
            "lahf_lm" : true,
            "abm" : true,
            "3dnowprefetch" : true,
            "cpuid_fault" : true,
            "epb" : true,
            "invpcid_single" : true,
            "pti" : true,
            "ssbd" : true,
            "ibrs" : true,
            "ibpb" : true,
            "stibp" : true,
            "tpr_shadow" : true,
            "vnmi" : true,
            "flexpriority" : true,
            "ept" : true,
            "vpid" : true,
            "ept_ad" : true,
            "fsgsbase" : true,
            "tsc_adjust" : true,
            "bmi1" : true,
            "hle" : true,
            "avx2" : true,
            "smep" : true,
            "bmi2" : true,
            "erms" : true,
            "invpcid" : true,
            "rtm" : true,
            "mpx" : true,
            "rdseed" : true,
            "adx" : true,
            "smap" : true,
            "clflushopt" : true,
            "intel_pt" : true,
            "xsaveopt" : true,
            "xsavec" : true,
            "xgetbv1" : true,
            "xsaves" : true,
            "dtherm" : true,
            "ida" : true,
            "arat" : true,
            "pln" : true,
            "pts" : true,
            "hwp" : true,
            "hwp_notify" : true,
            "hwp_act_window" : true,
            "hwp_epp" : true,
            "md_clear" : true,
            "flush_l1d" : true,
            "cpufreq" : "CPU Frequency scaling" 
          }
        },
        {
          "id" : "pci",
          "class" : "bridge",
          "claimed" : true,
          "handle" : "PCIBUS:0000:00",
          "description" : "Host bridge",
          "product" : "8th Gen Core Processor Host Bridge/DRAM Registers",
          "vendor" : "Intel Corporation",
          "physid" : "100",
          "businfo" : "pci@0000:00:00.0",
          "version" : "07",
          "width" : 32,
          "clock" : 33000000,
          "configuration" : {
            "driver" : "skl_uncore" 
          },
          "children" : [
            {
              "id" : "display",
              "class" : "display",
              "claimed" : true,
              "handle" : "PCI:0000:00:02.0",
              "description" : "VGA compatible controller",
              "product" : "Intel Corporation",
              "vendor" : "Intel Corporation",
              "physid" : "2",
              "businfo" : "pci@0000:00:02.0",
              "version" : "00",
              "width" : 64,
              "clock" : 33000000,
              "configuration" : {
                "driver" : "i915",
                "latency" : "0" 
              },
              "capabilities" : {
                "pciexpress" : "PCI Express",
                "msi" : "Message Signalled Interrupts",
                "pm" : "Power Management",
                "vga_controller" : true,
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing",
                "rom" : "extension ROM" 
              }
            },
            {
              "id" : "generic",
              "class" : "generic",
              "claimed" : true,
              "handle" : "PCI:0000:00:12.0",
              "description" : "Signal processing controller",
              "product" : "Cannon Lake PCH Thermal Controller",
              "vendor" : "Intel Corporation",
              "physid" : "12",
              "businfo" : "pci@0000:00:12.0",
              "version" : "10",
              "width" : 64,
              "clock" : 33000000,
              "configuration" : {
                "driver" : "intel_pch_thermal",
                "latency" : "0" 
              },
              "capabilities" : {
                "pm" : "Power Management",
                "msi" : "Message Signalled Interrupts",
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing" 
              }
            },
            {
              "id" : "usb",
              "class" : "bus",
              "claimed" : true,
              "handle" : "PCI:0000:00:14.0",
              "description" : "USB controller",
              "product" : "Cannon Lake PCH USB 3.1 xHCI Host Controller",
              "vendor" : "Intel Corporation",
              "physid" : "14",
              "businfo" : "pci@0000:00:14.0",
              "version" : "10",
              "width" : 64,
              "clock" : 33000000,
              "configuration" : {
                "driver" : "xhci_hcd",
                "latency" : "0" 
              },
              "capabilities" : {
                "pm" : "Power Management",
                "msi" : "Message Signalled Interrupts",
                "xhci" : true,
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing" 
              },
              "children" : [
                {
                  "id" : "usbhost:0",
                  "class" : "bus",
                  "claimed" : true,
                  "handle" : "USB:1:1",
                  "product" : "xHCI Host Controller",
                  "vendor" : "Linux 4.19.111-openslx+ xhci-hcd",
                  "physid" : "0",
                  "businfo" : "usb@1",
                  "logicalname" : "usb1",
                  "version" : "4.19",
                  "configuration" : {
                    "driver" : "hub",
                    "slots" : "16",
                    "speed" : "480Mbit/s" 
                  },
                  "capabilities" : {
                    "usb-2.00" : "USB 2.0" 
                  },
                  "children" : [
                    {
                      "id" : "usb:0",
                      "class" : "input",
                      "claimed" : true,
                      "handle" : "USB:1:2",
                      "description" : "Maus",
                      "product" : "USB Optical Mouse",
                      "vendor" : "PixArt",
                      "physid" : "5",
                      "businfo" : "usb@1:5",
                      "version" : "1.00",
                      "configuration" : {
                        "driver" : "usbhid",
                        "maxpower" : "100mA",
                        "speed" : "1Mbit/s" 
                      },
                      "capabilities" : {
                        "usb-2.00" : "USB 2.0" 
                      }
                    },
                    {
                      "id" : "usb:1",
                      "class" : "input",
                      "claimed" : true,
                      "handle" : "USB:1:3",
                      "description" : "Tastatur",
                      "product" : "Fujitsu Keyboard",
                      "vendor" : "Fujitsu",
                      "physid" : "6",
                      "businfo" : "usb@1:6",
                      "version" : "1.12",
                      "configuration" : {
                        "driver" : "usbhid",
                        "maxpower" : "100mA",
                        "speed" : "1Mbit/s" 
                      },
                      "capabilities" : {
                        "usb-1.10" : "USB 1.1" 
                      }
                    }
                  ]
                },
                {
                  "id" : "usbhost:1",
                  "class" : "bus",
                  "claimed" : true,
                  "handle" : "USB:2:1",
                  "product" : "xHCI Host Controller",
                  "vendor" : "Linux 4.19.111-openslx+ xhci-hcd",
                  "physid" : "1",
                  "businfo" : "usb@2",
                  "logicalname" : "usb2",
                  "version" : "4.19",
                  "configuration" : {
                    "driver" : "hub",
                    "slots" : "10",
                    "speed" : "10000Mbit/s" 
                  },
                  "capabilities" : {
                    "usb-3.10" : true
                  }
                }
              ]
            },
            {
              "id" : "memory",
              "class" : "memory",
              "handle" : "PCI:0000:00:14.2",
              "description" : "RAM memory",
              "product" : "Cannon Lake PCH Shared SRAM",
              "vendor" : "Intel Corporation",
              "physid" : "14.2",
              "businfo" : "pci@0000:00:14.2",
              "version" : "10",
              "width" : 64,
              "clock" : 33000000,
              "configuration" : {
                "latency" : "0" 
              },
              "capabilities" : {
                "pm" : "Power Management",
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing" 
              }
            },
            {
              "id" : "communication",
              "class" : "communication",
              "claimed" : true,
              "handle" : "PCI:0000:00:16.0",
              "description" : "Communication controller",
              "product" : "Cannon Lake PCH HECI Controller",
              "vendor" : "Intel Corporation",
              "physid" : "16",
              "businfo" : "pci@0000:00:16.0",
              "version" : "10",
              "width" : 64,
              "clock" : 33000000,
              "configuration" : {
                "driver" : "mei_me",
                "latency" : "0" 
              },
              "capabilities" : {
                "pm" : "Power Management",
                "msi" : "Message Signalled Interrupts",
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing" 
              }
            },
            {
              "id" : "storage",
              "class" : "storage",
              "claimed" : true,
              "handle" : "PCI:0000:00:17.0",
              "description" : "SATA controller",
              "product" : "Cannon Lake PCH SATA AHCI Controller",
              "vendor" : "Intel Corporation",
              "physid" : "17",
              "businfo" : "pci@0000:00:17.0",
              "version" : "10",
              "width" : 32,
              "clock" : 66000000,
              "configuration" : {
                "driver" : "ahci",
                "latency" : "0" 
              },
              "capabilities" : {
                "storage" : true,
                "msi" : "Message Signalled Interrupts",
                "pm" : "Power Management",
                "ahci_1.0" : true,
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing" 
              }
            },
            {
              "id" : "pci",
              "class" : "bridge",
              "claimed" : true,
              "handle" : "PCIBUS:0000:01",
              "description" : "PCI bridge",
              "product" : "Cannon Lake PCH PCI Express Root Port 9",
              "vendor" : "Intel Corporation",
              "physid" : "1d",
              "businfo" : "pci@0000:00:1d.0",
              "version" : "f0",
              "width" : 32,
              "clock" : 33000000,
              "configuration" : {
                "driver" : "pcieport" 
              },
              "capabilities" : {
                "pci" : true,
                "pciexpress" : "PCI Express",
                "msi" : "Message Signalled Interrupts",
                "pm" : "Power Management",
                "normal_decode" : true,
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing" 
              },
              "children" : [
                {
                  "id" : "storage",
                  "class" : "storage",
                  "claimed" : true,
                  "handle" : "PCI:0000:01:00.0",
                  "description" : "Non-Volatile memory controller",
                  "product" : "NVMe SSD Controller SM981/PM981",
                  "vendor" : "Samsung Electronics Co Ltd",
                  "physid" : "0",
                  "businfo" : "pci@0000:01:00.0",
                  "version" : "00",
                  "width" : 64,
                  "clock" : 33000000,
                  "configuration" : {
                    "driver" : "nvme",
                    "latency" : "0" 
                  },
                  "capabilities" : {
                    "storage" : true,
                    "pm" : "Power Management",
                    "msi" : "Message Signalled Interrupts",
                    "pciexpress" : "PCI Express",
                    "msix" : "MSI-X",
                    "nvm_express" : true,
                    "bus_master" : "bus mastering",
                    "cap_list" : "PCI capabilities listing" 
                  }
                }
              ]
            },
            {
              "id" : "isa",
              "class" : "bridge",
              "claimed" : true,
              "handle" : "PCI:0000:00:1f.0",
              "description" : "ISA bridge",
              "product" : "Intel Corporation",
              "vendor" : "Intel Corporation",
              "physid" : "1f",
              "businfo" : "pci@0000:00:1f.0",
              "version" : "10",
              "width" : 32,
              "clock" : 33000000,
              "configuration" : {
                "latency" : "0" 
              },
              "capabilities" : {
                "isa" : true,
                "bus_master" : "bus mastering" 
              }
            },
            {
              "id" : "multimedia",
              "class" : "multimedia",
              "claimed" : true,
              "handle" : "PCI:0000:00:1f.3",
              "description" : "Audio device",
              "product" : "Cannon Lake PCH cAVS",
              "vendor" : "Intel Corporation",
              "physid" : "1f.3",
              "businfo" : "pci@0000:00:1f.3",
              "version" : "10",
              "width" : 64,
              "clock" : 33000000,
              "configuration" : {
                "driver" : "snd_hda_intel",
                "latency" : "32" 
              },
              "capabilities" : {
                "pm" : "Power Management",
                "msi" : "Message Signalled Interrupts",
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing" 
              }
            },
            {
              "id" : "serial:0",
              "class" : "bus",
              "handle" : "PCI:0000:00:1f.4",
              "description" : "SMBus",
              "product" : "Cannon Lake PCH SMBus Controller",
              "vendor" : "Intel Corporation",
              "physid" : "1f.4",
              "businfo" : "pci@0000:00:1f.4",
              "version" : "10",
              "width" : 64,
              "clock" : 33000000,
              "configuration" : {
                "latency" : "0" 
              }
            },
            {
              "id" : "serial:1",
              "class" : "bus",
              "handle" : "PCI:0000:00:1f.5",
              "description" : "Serial bus controller",
              "product" : "Cannon Lake PCH SPI Controller",
              "vendor" : "Intel Corporation",
              "physid" : "1f.5",
              "businfo" : "pci@0000:00:1f.5",
              "version" : "10",
              "width" : 32,
              "clock" : 33000000,
              "configuration" : {
                "latency" : "0" 
              }
            },
            {
              "id" : "network",
              "class" : "network",
              "claimed" : true,
              "handle" : "PCI:0000:00:1f.6",
              "description" : "Ethernet interface",
              "product" : "Ethernet Connection (7) I219-LM",
              "vendor" : "Intel Corporation",
              "physid" : "1f.6",
              "businfo" : "pci@0000:00:1f.6",
              "logicalname" : "boot0",
              "version" : "10",
              "serial" : "4c:52:62:3d:32:ee",
              "units" : "bit/s",
              "size" : 1000000000,
              "capacity" : 1000000000,
              "width" : 32,
              "clock" : 33000000,
              "configuration" : {
                "autonegotiation" : "on",
                "broadcast" : "yes",
                "driver" : "e1000e",
                "driverversion" : "3.2.6-k",
                "duplex" : "full",
                "firmware" : "0.5-4",
                "latency" : "0",
                "link" : "yes",
                "multicast" : "yes",
                "port" : "twisted pair",
                "speed" : "1Gbit/s" 
              },
              "capabilities" : {
                "pm" : "Power Management",
                "msi" : "Message Signalled Interrupts",
                "bus_master" : "bus mastering",
                "cap_list" : "PCI capabilities listing",
                "ethernet" : true,
                "physical" : "Physische Schnittstelle",
                "tp" : "Verdrillte Zweidrahtleitung",
                "10bt" : "10Mbit/s",
                "10bt-fd" : "10Mbit/s (Vollduplex)",
                "100bt" : "100Mbit/s",
                "100bt-fd" : "100Mbit/s (Vollduplex)",
                "1000bt-fd" : "1Gbit/s (Vollduplex)",
                "autonegotiation" : "Auto-verhandeln" 
              }
            }
          ]
        }
      ]
    },
    {
      "id" : "power",
      "class" : "power",
      "physid" : "1",
      "units" : "mWh",
      "capacity" : 32768
    },
    {
      "id" : "network",
      "class" : "network",
      "claimed" : true,
      "description" : "Ethernet interface",
      "physid" : "2",
      "logicalname" : "br0",
      "serial" : "4c:52:62:3d:32:ee",
      "configuration" : {
        "broadcast" : "yes",
        "driver" : "bridge",
        "driverversion" : "2.3",
        "firmware" : "N/A",
        "ip" : "10.21.11.3",
        "link" : "yes",
        "multicast" : "yes" 
      },
      "capabilities" : {
        "ethernet" : true,
        "physical" : "Physische Schnittstelle" 
      }
    }
  ]
}
Actions #2

Updated by Dirk von Suchodoletz about 4 years ago

Jetzt wäre auch noch cool zu sehen, wie aufgerufen, da auf meiner SuSE (unknown, the latest version is B.02.18 - schaut der da irgendwo nach!?):

usage: lshw [-format] [-options ...]
       lshw -version

        -version        print program version (unknown)

format can be
        -html           output hardware tree as HTML
        -xml            output hardware tree as XML
        -short          output hardware paths
        -businfo        output bus information

Auf dem Orange Pi (B.02.18):

format can be
        -html           output hardware tree as HTML
        -xml            output hardware tree as XML
        -json           output hardware tree as a JSON object
        -short          output hardware paths
        -businfo        output bus information

Scheint also von der Version

Actions #3

Updated by Dirk von Suchodoletz about 4 years ago

Ausgabe vom ARM-Board:

{                           
  "id" : "retrorangepi",
  "class" : "system",
  "claimed" : true,
  "description" : "AArch64 Processor rev 4 (aarch64)",
  "product" : "Xunlong Orange Pi PC 2",
  "serial" : "82800001d82838b9",
  "width" : 64,
  "capabilities" : {
    "smp" : "Symmetric Multi-Processing" 
  },
  "children" : [
    {
      "id" : "core",
      "class" : "bus",
      "claimed" : true,
      "description" : "Motherboard",
      "physid" : "0",
      "children" : [
        {
          "id" : "cpu:0",
          "class" : "processor",
          "claimed" : true,
          "description" : "CPU",
          "product" : "cpu",
          "physid" : "0",
          "businfo" : "cpu@0",
          "units" : "Hz",
          "size" : 648000000,
          "capacity" : 1368000000,
          "capabilities" : {
            "fp" : "Floating point instructions",
            "asimd" : "Advanced SIMD",
            "evtstrm" : "Event stream",
            "aes" : "AES instructions",
            "pmull" : "PMULL instruction",
            "sha1" : "SHA1 instructions",
            "sha2" : "SHA2 instructions",
            "crc32" : "CRC extension",
            "cpuid" : true,
            "cpufreq" : "CPU Frequency scaling" 
          }
        },
...
       {
          "id" : "memory",
          "class" : "memory",
          "claimed" : true,
          "description" : "System memory",
          "physid" : "4",
          "units" : "bytes",
          "size" : 1005199360
        }
      ]
    },
    {
      "id" : "usbhost:0",
      "class" : "bus",
      "claimed" : true,
      "handle" : "USB:1:1",
      "product" : "EHCI Host Controller",
      "vendor" : "Linux 5.2.14-sunxi64 ehci_hcd",
      "physid" : "2",
      "businfo" : "usb@1",
      "logicalname" : "usb1",
      "version" : "5.02",
      "configuration" : {
        "driver" : "hub",
        "slots" : "1",
        "speed" : "480Mbit/s" 
      },
      "capabilities" : {
        "usb-2.00" : "USB 2.0" 
      }
    },
...
    {
      "id" : "network",
      "class" : "network",
      "claimed" : true,
      "description" : "Ethernet interface",
      "physid" : "a",
      "logicalname" : "eth0",
      "serial" : "02:01:d8:28:38:b9",
      "units" : "bit/s",
      "size" : 1000000000,
      "capacity" : 1000000000,
      "configuration" : {
        "autonegotiation" : "on",
        "broadcast" : "yes",
        "driver" : "st_mac100",
        "driverversion" : "Jan_2016",
        "duplex" : "full",
        "ip" : "192.168.2.252",
        "link" : "yes",
        "multicast" : "yes",
        "port" : "MII",
        "speed" : "1Gbit/s" 
      },
      "capabilities" : {
        "ethernet" : true,
        "physical" : "Physical interface",
        "tp" : "twisted pair",
        "mii" : "Media Independent Interface",
        "10bt" : "10Mbit/s",
        "10bt-fd" : "10Mbit/s (full duplex)",
        "100bt" : "100Mbit/s",
        "100bt-fd" : "100Mbit/s (full duplex)",
        "1000bt" : "1Gbit/s",
        "1000bt-fd" : "1Gbit/s (full duplex)",
        "autonegotiation" : "Auto-negotiation" 
      }
    }
  ]
}

Wiederholungen gekürzt ...

Actions #4

Updated by Jannik Schönartz about 4 years ago

Bei meinem Raspberry 3b+ ist noch so ein kleiner Bildschirm über den DSI Connector angeschlossen. Der taucht im lshw auch nirgends auf.

Actions #5

Updated by Dirk von Suchodoletz about 4 years ago

Auslesen auf dem Orange Pi dauerte 3sek, auf dem X86 unter einer ... Sollte akzeptabel sein. Interessant war aber, als ich ein "dd" auf einem USB-Stick laufen hatte, er nicht mehr zurück kam ...

Actions #6

Updated by Simon Rettberg about 4 years ago

Hat sich schon einer getraut zu gucken, in was das geschrieben ist und wie es funktioniert?

Mich macht das Mischmasch aus Deutsch und Englisch im ersten Dump stutzig. Geht das lshw evtl. selbst nur hin und parst den Output von dmidecode und co?

Das hier sah auch nicht übermäßig überzeugend aus:

"description" : "Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-05-30 08:16+0000Last-Translator: Hendrik Knackstedt <Unknown>Language-Team: German <de@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719)Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-05-30 08:16+0000Last-Translator: Hendrik Knackstedt <Unknown>Language-Team: German <de@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719) [leer]",

Hat sich das Tool das verparst?

Actions #7

Updated by Jannik Schönartz about 4 years ago

Laut deren Website ist es geschrieben in:
  • C++: 20824 (98.05%)
  • ANSI C: 414 (1.95%)

lshw Repo
Tatsächlich gibt es dort dmi.cc, die eine modifizierte Version vom DMI decoder 1.7 ist.

Dealbreaker?

Actions #8

Updated by Simon Rettberg about 4 years ago

Nein das passt, dann sollte das auch nur n MB oder so kosten. Aber der Output allgemein erscheint mir etwas dämlich, mal abgesehen vom das Rätsel um diesen kaputten description Eintrag. Das müsste dann ja der Struktur nach auf dem dmi-Teil kommen, aber in dem verlinkten sourcecode finde ich nichts von FULL-NAME oder ähnlich. Sieht man auf der gleichen Mühle im dmidecode Output etwas ähnlich kaputtes? Da da ja lshw drin vorkommt denke ich mal nicht. Aber was mich grad schon wieder aufregt: Da hat man extra einen JSON Output, also was, was einfach zu parsen sein soll, und dann müllen die Idioten da ernsthaft beim RAM alles in das description-Feld: "description" : "SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)"
währender dmidecode output so aussieht:

Handle 0x0007, DMI type 17, 34 bytes
Memory Device
    Array Handle: 0x0005
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: SODIMM
    Set: None
    Locator: ChannelB-DIMM0
    Bank Locator: BANK 2
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1600 MT/s
    Manufacturer: Hynix/Hyundai
    Serial Number: 2C540176
    Asset Tag: None
    Part Number: HMT351S6EFR8A-PB  
    Rank: Unknown
    Configured Memory Speed: 1600 MT/s
Speed (was der Riegel kann und mit was er läuft), Typ, Form-Factor schön als eigene Felder. Was zum Teufel... Soll man also am Ende doch wieder mit regexp und anderer Scheiße rummachen. Das kann doch nicht wahr sein dass da keiner mal sein Hirn einschaltet der so ein Tool baut.

Actions #9

Updated by Simon Rettberg about 4 years ago

Autsch, das Projekt scheint mir so gut wie tot zu sein, wenn man sich mal anguckt wie lange sowas hier schon offen ist: https://ezix.org/project/ticket/631

Ist die Frage ob man auf sowas setzen sollte.

Actions #10

Updated by Dirk von Suchodoletz about 4 years ago

Ich denke, das ist damit mal eher gestorben ... Wie auch schon in der Runde diskutiert.

Actions #11

Updated by Jannik Schönartz about 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #12

Updated by Dirk von Suchodoletz almost 4 years ago

  • Status changed from Closed to Rejected
Actions

Also available in: Atom PDF