Giter Club home page Giter Club logo

terminus's Introduction

Terminus

Get facts about a Linux system. Parallel execution, structured output, remote API.

Install

wget https://github.com/kelseyhightower/terminus/releases/download/v0.0.1/terminus
chmod +x terminus

Usage

Terminus ships with a default set of facts that represent info about the system. Terminus also supports custom facts and a HTTP API.

Print a single fact

terminus --format '{{.System.BootID}}'
029b978a8d0b4ac48c5ca9c92956eeb6

Print all facts

terminus
{
   "System": {
     "Architecture": "x86_64",
     "BootID": "87c81966-9e09-4627-b949-6320ae09ecfa",
     "Date": {
       "Unix": 1430413811,
       "UTC": "2015-04-30 17:10:11.736735078 +0000 UTC"
     },
     "Domainname": "(none)",
     "Hostname": "etcd",
     "Network": {
       "Interfaces": {
         "eno16777736": {
           "Name": "eno16777736",
           "Index": 2,
           "HardwareAddr": "00:0c:29:d6:9c:9a",
           "IpAddresses": [
             "192.168.12.10/16",
             "fe80::20c:29ff:fed6:9c9a/64"
           ],
           "Ip4Addresses": [
             {
               "CIDR": "192.168.12.10/16",
               "Ip": "192.168.12.10",
               "Netmask": "255.255.0.0"
             }
           ],
           "Ip6Addresses": [
             {
               "CIDR": "fe80::20c:29ff:fed6:9c9a/64",
               "Ip": "fe80::20c:29ff:fed6:9c9a",
               "Prefix": 64
             }
           ]
         },
         "lo": {
           "Name": "lo",
           "Index": 1,
           "HardwareAddr": "",
           "IpAddresses": [
             "127.0.0.1/8",
             "::1/128"
           ],
           "Ip4Addresses": [
             {
               "CIDR": "127.0.0.1/8",
               "Ip": "127.0.0.1",
               "Netmask": "255.0.0.0"
             }
           ],
           "Ip6Addresses": [
             {
               "CIDR": "::1/128",
               "Ip": "::1",
               "Prefix": 128
             }
           ]
         }
       }
     },
     "Kernel": {
       "Name": "Linux",
       "Release": "4.0.0",
       "Version": "#2 SMP Wed Apr 22 23:43:22 UTC 2015"
     },
     "MachineID": "677f2a9b43c343aa993ef4a282ba2f05",
     "Memory": {
       "Total": 1029615616,
       "Free": 683864064,
       "Shared": 184950784,
       "Buffered": 23953408
     },
     "OSRelease": {
       "Name": "CoreOS",
       "ID": "coreos",
       "PrettyName": "CoreOS 660.0.0",
       "Version": "660.0.0",
       "VersionID": "660.0.0"
     },
     "Swap": {
       "Total": 0,
       "Free": 0
     },
     "Uptime": 4927
   }
 }

terminus's People

Contributors

kelseyhightower avatar kushalp avatar phobologic avatar mufasa71 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.