Giter Site home page Giter Site logo

system-info's Introduction

system-info

A bash-script that answers the question: “where have I landed” when you as a sysadmin log in to a new computer!

The script presents basic information of the OS you are running. (A full report of everything is not the intention)

Main targets: OS X and Linux. It would be nice to cover other Unix systems, but that comes later.

The following information is presented:

  • OS Release
  • OS architecture & bit count
  • Virtual environment (if any)
  • Connection to Active Directory or LDAP
  • If the computer is managed by any of the major management tools
  • CPU
  • Memory
  • Disk info
  • Network info
  • Security information
  • Graphics info
  • Extra information (listing package managers and logged in users)

Tested Distributions:

  • OS X: 10.10, 10.11, 10.12
  • Linux: CentOS 6 & 7; Ubuntu 14 & 16; Mageia 5; Debian 8; Arch Linux

Options:

  • -i gives you information about commands that will allow you to dig deeper yourself :-)

Requirements:

  • Generally, the script is written using only standard bash tools available on both macOS and Linux
  • However, on Linux, dmidecode (http://savannah.nongnu.org/projects/dmidecode/) is used for many things. If you don't have it your distro, memory reporting will be omitted [on Linux]. Also, smartctlis used to detect SMART-information and hdparm for TRIM status
  • If you are not running the script as root, the following information will be detected:
    • (Linux): some details about virtual environment (i.e. dmidecode)
    • (Linux): memory type, speed and number of DIMMs (i.e. dmidecode)
    • (macOS): presence of firmware password
    • (macOS): status of the packetfiler firewall
    • (macOS): whether Profiles are enabled of not
    • (both): open LISTEN-ports belonging to processer other than your own

Screen shot for macOS:


Screen shot for Linux:

system-info's People

Contributors

peter-moller avatar pierremoreau avatar

Stargazers

Michael Jett avatar  avatar John Spindler avatar  avatar WangHe avatar Per-Philip Sollin avatar Pratheep kanati avatar Łaurent ʘ❢Ŧ Ŧough avatar Ulf Dahlén avatar Travis Clarke avatar eg avatar Sara F. avatar

Watchers

James Cloos avatar Łaurent ʘ❢Ŧ Ŧough avatar  avatar

system-info's Issues

[Linux:disk-info] Implement

Implement something similar to macOS. lsblk returns some amount of information regarding filesystems for example.

[Linux:graphics-info] Implement

Implement something similar to what is done on macOS.
For example, using lspci -v | awk '/VGA|3D/,/^$/' would list all GPUs as well as some extra information, such as current driver in use. It sadly does not contain the amount of VRAM, but some (most?) drivers output it either in dmesg or Xorg.0.log.

[General] Get intelligent error output

One may have some mechanism for getting useful info when something goes wrong instead of piping all stderr to /dev/null.

This needs to be looked into!

[Network]: TODO

On both Linux and macOS:

  • List all network interfaces (and not only the active ones)
  • List them in a more coherent fashion, i.e. use the table format from the macOS listing for Linux as well
  • List them in the order they are used!
  • List listening ports. The code for this can be more or less copied straight from open-ports (https://github.com/Peter-Moller/open-ports). This may be too much info, but worth looking into!

[General] Question: virtual?

Is it possible to detect weather a machine is a virtual one? Be it VMware, Xen or any other VM system?
It would be an interesting information to display!

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.