Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RaspeberryPi support - dmidecode crash #144

Open
strus38 opened this issue Jul 1, 2020 · 2 comments
Open

RaspeberryPi support - dmidecode crash #144

strus38 opened this issue Jul 1, 2020 · 2 comments
Labels
type:hardware Mostly new hardware

Comments

@strus38
Copy link
Contributor

strus38 commented Jul 1, 2020

running netbox_agent on a rapsberry PI makes the program crash:

# netbox_agent -c nbagent.yaml --register
Traceback (most recent call last):
  File "/usr/local/bin/netbox_agent", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/netbox_agent/cli.py", line 44, in main
    return run(config)
  File "/usr/local/lib/python3.7/dist-packages/netbox_agent/cli.py", line 22, in run
    dmi = dmidecode.parse()
  File "/usr/local/lib/python3.7/dist-packages/netbox_agent/dmidecode.py", line 74, in parse
    _data = _parse(buffer)
  File "/usr/local/lib/python3.7/dist-packages/netbox_agent/dmidecode.py", line 216, in _parse
    raise ParseError("Unable to parse 'dmidecode' output")
netbox_agent.dmidecode.ParseError: Unable to parse 'dmidecode' output

root@node05:/home/pi# dmidecode
# dmidecode 3.2
Scanning /dev/mem for entry point.
# No SMBIOS nor DMI entry point found, sorry.

where I guess we could use other info like:

$cat /proc/cpuinfo
...
$cat /proc/device-tree/model
Raspberry Pi 4 Model B Rev 1.1
$ inix -F
inxi -F
System:    Host: node05.home.lab Kernel: 4.19.97-v7l+ armv7l bits: 32 Console: tty 1
           Distro: Raspbian GNU/Linux 10 (buster)
Machine:   Type: ARM Device System: Raspberry Pi 4 Model B Rev 1.1 details: BCM2835 rev: c03111
           serial: 10000000256decd8
Argument "Raspberry Pi 4 Model B Rev 1.1" isn't numeric in sprintf at /usr/bin/inxi line 6969.
CPU:       Topology: Quad Core model: ARMv7 v7l variant: cortex-a72 bits: 32 type: MCP
           Speed: 1500 MHz min/max: 600/1500 MHz Core speeds (MHz): 1: 1500 2: 1500 3: 1500 4: 1500
Graphics:  Device-1: bcm2835-vc4 driver: vc4_drm v: N/A
           Device-2: bcm2835-hdmi driver: N/A
           Display: server: No display server data found. Headless machine? tty: 120x48
           Message: Advanced graphics data unavailable in console for root.
Audio:     Device-1: bcm2835-audio driver: bcm2835_audio
           Device-2: bcm2835-hdmi driver: N/A
           Sound Server: ALSA v: k4.19.97-v7l+
Network:   Message: No ARM data found for this feature.
           IF-ID-1: eth0 state: down mac: xxxx
          IF-ID-2: wlan0 state: up mac: xxx

or even all usefull commands in there: https://raw.githubusercontent.com/raspberrypi/utils/master/raspinfo/raspinfo

Any way it could be supported in some way?
Thanks

@Solvik
Copy link
Owner

Solvik commented Jul 2, 2020

It seems that Raspberry doesn't have dmidecode infos and the agent relies heavily on dmidecode informations.

I have it on arm64 servers.

It'd mean special development for Raspberry PI. Would you be able propose a PR ? I don't have a rasp on hand

@strus38
Copy link
Contributor Author

strus38 commented Jul 2, 2020 via email

@Solvik Solvik added the type:hardware Mostly new hardware label Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:hardware Mostly new hardware
Projects
None yet
Development

No branches or pull requests

2 participants