Multi-server gpu monitoring program
See change Log: change log
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
Install with pip
$ pip install ksmi
or
$ pip3 install ksmi
Edit config.json
. Add your gpu server address in config.json
.
{
"hosts": [
"<username>@<host>[:port]",
"<username>@<host>[:port]"
]
}
create new rea_id and add to your server
$ python3 -m ksmi.copy_id -c config.json -n
$ python3 -m ksmi -c config.json -l
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
Run once
$ python3 -m ksmi -c config.json
Run forever
$ python3 -m ksmi -c config.json -l
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
$ python3 -m ksmi.copy_id -c config.json
or
$ python3 -m ksmi.copy_id --config config.json
$ python3 -m ksmi.copy_id -s [username@]<IP>[:port]
or
$ python3 -m ksmi.copy_id --server [username@]<IP>[:port]
$ python3 -m ksmi.copy_id -n
or
$ python3 -m ksmi.copy_id --new_id