Skip to main content

Expose hardware info through HTTP

Project description


Expose hardware info through HTTP.


Here are the instructions for a manual install on CentOS 7.

sudo groupadd dmidecode
sudo useradd -M -G dmidecode peekaboo
sudo tee -a /etc/sudoers.d/dmidecode << EOF >/dev/null
%dmidecode ALL=(ALL) NOPASSWD:/usr/sbin/dmidecode
sudo yum install -y libselinux-utils redhat-lsb python-devel python-pip gcc
sudo pip install peekaboo
sudo cp /usr/share/peekaboo/contrib/peekaboo.service /usr/lib/systemd/system/peekaboo.service
sudo systemctl enable peekaboo
sudo systemctl start peekaboo

You can also install it using:

curl | sudo bash

Run using Docker

You can quickly test it by running it inside a Docker container:

Build docker image

docker build -t peekaboo:latest .

Run docker image

docker run -d -p 5050:5050 --name=peekaboo peekaboo:latest

Stop container

docker stop peekaboo


Query using YAML:

curl -i http://<host>:5050/info
curl -i http://<host>:5050/info/tree
curl -i http://<host>:5050/status
curl -i http://<host>:5050/status/tree

Query using JSON:

curl -i -H "Accept: application/json" http://<host>:5050/info
curl -i -H "Accept: application/json" http://<host>:5050/info/tree
curl -i -H "Accept: application/json" http://<host>:5050/status
curl -i -H "Accept: application/json" http://<host>:5050/status/tree

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
peekaboo-0.8.5.tar.gz (8.5 kB) Copy SHA256 hash SHA256 Source None Aug 5, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page