GithubHelp home page GithubHelp logo

studygiraffe / kairos-smi_20240710 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kairos03/kairos-smi

0.0 0.0 0.0 427 KB

multi server gpu monitoring utils

License: MIT License

Shell 1.59% Python 98.41%

kairos-smi_20240710's Introduction

kairos-smi

Multi-server gpu monitoring program

PyPI version CircleCI

See change Log: change log

sample.png

usage: ksmi [-h] [-l] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -l, --loop            loop forever
  -c CONFIG, --config CONFIG
                        set config file location

quick start

1. install

Install with pip

$ pip install ksmi
or
$ pip3 install ksmi

2. Setup config file

Edit config.json. Add your gpu server address in config.json.

{
	"hosts": [
		"<username>@<host>[:port]",
		"<username>@<host>[:port]"
	]
}

3. Add rsa_id to server

create new rea_id and add to your server

$ python3 -m ksmi.copy_id -c config.json -n

4. Run It!

$ python3 -m ksmi -c config.json -l

kairos-smi

usage: kairos_smi.py [-h] [-l] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -l, --loop            loop forever
  -c CONFIG, --config CONFIG
                        set config file location

Simple usage

Run once

$ python3 -m ksmi -c config.json

Run forever

$ python3 -m ksmi -c config.json -l

utils

copy_id

usage: copy_id.py [-h] [-n] [-c CONFIG] [-s SERVER]

optional arguments:
  -h, --help            show this help message and exit
  -n, --new_id          generate new id_rsa key
  -c CONFIG, --config CONFIG
                        set config file to use host list
  -s SERVER, --server SERVER
                        set a server to copy id

copy id(rsa) to server

Use with config.json

$ python3 -m ksmi.copy_id -c config.json
or
$ python3 -m ksmi.copy_id --config config.json

Use with individual Server address

$ python3 -m ksmi.copy_id -s [username@]<IP>[:port]
or
$ python3 -m ksmi.copy_id --server [username@]<IP>[:port]

Make a new id_rsa

$ python3 -m ksmi.copy_id -n
or
$ python3 -m ksmi.copy_id --new_id

kairos-smi_20240710's People

Contributors

kairos03 avatar abdulmoqeet 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.