GithubHelp home page GithubHelp logo

labstat's Introduction

Labstat

Tools for getting information about computers on the Curtin network.

mac.sh

Usage: ./mac.sh

Use this tool to get the hostname, MAC address, IPv4 address and IPv6 scope of the local computer. An ISO 8601 (lexically sortable!) timestamp is included as the second field, so you can keep track of just how stale your information is.

Note that hostname and timestamp must remain the respective first two fields. Changing this will require updating cleanup.sh to reflect any such changes.

mac.ps1

Usage: .\mac.ps1

The Windows counterpart to mac.sh which writes to mac.ps1.out.txt in the same directory, then ejects the containing drive of the script, then logs out.

remote.sh

Usage: ./remote.sh [hostname-or-ip] ...

Use this tool to get the information provided by mac.sh from a remote computer. This tool uses ssh. The most convenient and intended way to use this is from a server or lab machine, with public key authentication set up so you don't need a password. Note that using ssh from one Curtin host to another means you need a complete private/public keypair in ~/.ssh, and the public key also listed in ~/.ssh/authorized_hosts.

lab.sh

Usage: ./lab.sh [lab#] [max_hosts]

Use this tool to get information about an entire lab room worth of machines. For example, running the tool with 219 18 will probe every computer from lab219-01 to lab219-18.

cleanup.sh

Usage: ./cleanup.sh [file-name]

Use this tool to clean a dump from the other tools. This tool takes in a file, and does a number of things:

  • Sorts the output by hostname ascending, then by timestamp descending
  • Prunes all entries for a particular hostname except the most recent

If you redirect the output to a file, don't use the same file name as the input because reading from and writing to the same file simultaneously is obviously a bad idea™.

labstat's People

Contributors

delan avatar

Stargazers

Ze'ev Gilovitz avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

zeevg

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.