GithubHelp home page GithubHelp logo

gohai's Introduction

Gohai

license

Gohai is a tool which collects an inventory of system information. It aims to implement some parts of features from facter and ohai. It's forked from Kentaro Kuribayashi's verity.

Usage

Gohai will build and install with go get. We require at least Go 1.7.

go get github.com/DataDog/gohai

Running it will dump json formatted output:

gohai
{"cpu":{"cpu_cores":"2","family":"6","mhz":"2600","model":"58","model_name":"Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz","stepping":"9","vendor_id":"GenuineIntel"},"filesystem":[{"kb_size":"244277768","mounted_on":"/","name":"/dev/disk0s2"}],"memory":{"swap_total":"4096.00M","total":"8589934592"},"network":{"ipaddress":"192.168.1.6","ipaddressv6":"fe80::5626:96ff:fed3:5811","macaddress":"54:26:96:d3:58:11"},"platform":{"GOOARCH":"amd64","GOOS":"darwin","goV":"1.2.1","hostname":"new-host.home","kernel_name":"Darwin","kernel_release":"12.5.0","kernel_version":"Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64","machine":"x86_64","os":"Darwin","processor":"i386","pythonV":"2.7.2"}}

Pipe it through eg. python -m json.tool for pretty output.

How to build

Just run go build!

Build with version info

To build Gohai with version information, use make.go:

go run make.go

It will build gohai using the go build command, with the version info passed through -ldflags.

See Also

Author

License

gohai's People

Contributors

albertvaka avatar arbll avatar davidnewman avatar degemer avatar derekwbrown avatar djmitche avatar gmmeyer avatar ian28223 avatar jmoiron avatar johnlzeller avatar kentaro avatar kitak avatar miketheman avatar mizzy avatar mx-psi avatar olivielpeau avatar remh avatar talwai avatar tariq1890 avatar tmichelet avatar truthbk avatar zippolyte 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.