GithubHelp home page GithubHelp logo

Comments (8)

jczmok-iag avatar jczmok-iag commented on August 30, 2024 1

issue fixed.

from netbox-agent.

jczmok-iag avatar jczmok-iag commented on August 30, 2024

Package: lshw
Version: 02.18.85-0.1
Installed-Size: 763

from netbox-agent.

jczmok-iag avatar jczmok-iag commented on August 30, 2024

lshw output according to script
[
{
"id" : "SOMENAME",
"class" : "system",
"claimed" : true,
"handle" : "DMI:0001",
"description" : "Desktop Computer",
"product" : "X9DRT-HF+ (To be filled by O.E.M.)",
"vendor" : "Supermicro",
"version" : "0123456789",
"serial" : "0123456789",
"width" : 64,
"configuration" : {
"boot" : "normal",
"chassis" : "desktop",
"family" : "To be filled by O.E.M.",
"sku" : "To be filled by O.E.M.",
"uuid" : "00000000-0000-0000-0000-AAAAAAAAAAA"
},
"capabilities" : {
"smbios-2.7" : "SMBIOS version 2.7",
"dmi-2.7" : "DMI version 2.7",
"smp" : "Symmetric Multi-Processing",
"vsyscall32" : "32-bit processes"
} {
"id" : "core",
"class" : "bus",
"claimed" : true,
"handle" : "DMI:0002",
"description" : "Motherboard",
"product" : "X9DRT-HF+",
"vendor" : "Supermicro",

from netbox-agent.

jczmok-iag avatar jczmok-iag commented on August 30, 2024

seems to be a lshw -json bug: when using JSONLint i get this:

Error: Parse error on line 24:
...-bit processes" } { "id": "core",
----------------------^
Expecting 'EOF', '}', ',', ']', got '{

from netbox-agent.

jczmok-iag avatar jczmok-iag commented on August 30, 2024

can't we do a scrap off the capabilities part before passing this to the json decoder ? we don't need this part

from netbox-agent.

Solvik avatar Solvik commented on August 30, 2024

what os/distro are you using ?
I don't have the problem on Ubuntu 12.04 -> 18.04 and Debian 10

from netbox-agent.

jczmok-iag avatar jczmok-iag commented on August 30, 2024

Found this:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929206

i have lots of servers, but this server is Debian 10 buster with lshw:

lshw:
Installed: 02.18.85-0.3
Candidate: 02.18.85-0.3
Versionstabelle:
*** 02.18.85-0.3 100
100 /var/lib/dpkg/status
02.18.85-0.1 500
500 http://debian.inet.de/debian buster/main amd64 Packages

from netbox-agent.

jczmok-iag avatar jczmok-iag commented on August 30, 2024

i did manually copy over lshw from another system where it works (debian9) - need to find the working version or just copy the file then i do a install script for the agent

from netbox-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.