Giter Site home page Giter Site logo

chunyen-chen / checknode Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 106 KB

Check node status on eureka and spock

Home Page: https://github.com/ChunYen-Chen/CheckNode/wiki/CheckNode-usage

Shell 97.80% Python 2.20%
cluster system-monitoring bash-script shell shell-script

checknode's Introduction

First time

  1. Setup the code
    sh setup.sh
  2. Source .bashrc
    source ~/.bashrc

Usage

sh checknode.sh [-h|v|a|d|f|o|i|b|j|t|q|u] [-s user] [-l label]

Examples

  1. Show the free nodes
    sh checknode.sh -f
  2. Show the idle user, job ID, and job user of each node
    sh checknode.sh -ij

Options

  • -h : Display the help messages.
  • -v : Display the version.
  • -f : Only list the free nodes.
  • -d : Only list the down nodes.
  • -o : Only list the offline nodes.
  • -s <jobId> : Only display the specific job id.

The followings can only work on login node.

  • -b : List the blocked users.
  • -i : List the idle users.
  • -j : List the job ID and job user of each node.
  • -t : List the start time of each job.
  • -a : List the content with option b, i, j, and t.
  • -q : List the "showq" content.
  • -u <user> : Only display the specific user.
  • -l <label> : Only display the specific user.

Note

  1. The option q does not work with other options.
  2. The default .bashrc file location is under ~/ or /home/<USER>/.
  3. The order of the options does not matter. e.g. -ij is equivalent to -ji.

checknode's People

Contributors

chunyen-chen avatar actions-user avatar hsinhaohhuang avatar

Stargazers

vivi235711 avatar

Watchers

 avatar

checknode's Issues

Some setup issues

  1. When I reinstalled, it doesn't source .bashrc after running setup.sh.

  2. When running node outside the CheckNode/, there is a error:
    sed: can't read config: No such file or directory

  3. Also, it will create now_* in the current directory, not in CheckNode/

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.