ChunYen-Chen / CheckNode

Check node status on eureka and spock

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Check node status on eureka and spock

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


Languages

Language:Shell 97.8%Language:Python 2.2%