GithubHelp home page GithubHelp logo

isabella232 / packet-hardware Goto Github PK

View Code? Open in Web Editor NEW

This project forked from packethost/packet-hardware

0.0 0.0 0.0 9.63 MB

This is a tool which is used within OSIE to audit hardware components to keep track of components that may need updating or components that may be missing.

Home Page: https://github.com/packethost/packet-hardware

License: Apache License 2.0

Python 90.96% Dockerfile 9.04%

packet-hardware's Introduction

Equinix Metal Hardware

Continuous Integration

This is a tool which is used within OSIE to audit hardware components to keep track of components that may need updating or components that may be missing.

This repository is Experimental meaning that it's based on untested ideas or techniques and not yet established or finalized or involves a radically new and innovative style! This means that support is best effort (at best!) and we strongly encourage you to NOT use this in production.

Requirements

  • python version 3.5 or higher
  • pip
  • dmidecode
  • hdparm
  • ipmitool
  • lsblk
  • lshw
  • smartctl

Reference the Dockerfile for other dependency requirements.

Installation

pip3 install git+https://github.com/packethost/packet-hardware.git@master

Running inventory (docker)

The below command will run the script without posting the results.

# Build image
docker build -t packet-hardware:latest .

# Run tool
docker run --rm --privileged \
    -v /dev:/dev \
    -v /sys:/sys \
    -v /tmp:/tmp \
    --network host \
    packet-hardware inventory -u localhost --dry --cache-file /tmp/hardware.json

Here I've specified a cache file so I may look at the json pickled results.

Usage (inventory)

# packet-hardware inventory --help
Usage: packet-hardware inventory [OPTIONS]

Options:
  -t, --component-type TEXT  Component type(s) to check
  -u, --tinkerbell TEXT      Tinkerbell uri  [required]
  -v, --verbose              Turn on verbose messages for debugging
  -d, --dry                  Don't actually post anything to API
  -c, --cache-file TEXT      Path to local json component store
  --help                     Show this message and exit.

Usage (update)

# packet-hardware update --help
Usage: packet-hardware update [OPTIONS]

Options:
  -t, --component-type TEXT  Component type(s) to check
  -u, --tinkerbell TEXT      Tinkerbell uri  [required]
  -v, --verbose              Turn on verbose messages for debugging
  -d, --dry                  Don't actually post anything to API
  -c, --cache-file TEXT      Path to local json component store
  --help                     Show this message and exit.

packet-hardware's People

Contributors

dustinmiller avatar mikemrm avatar scottgarman avatar rainleander avatar dlaube avatar jacobweinstock avatar nrhtr avatar joelrebel avatar tstromberg avatar renovate[bot] avatar stephen-fox avatar

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.