多服务器gpu监控工具

ksmi的Python项目详细描述


凯罗斯SMI

多服务器GPU监控程序

PyPI version

请参阅更改日志: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

快速启动

一。安装

使用pip安装

$ pip install ksmi
or
$ pip3 install ksmi

2.设置配置文件

编辑config.json。在config.json中添加GPU服务器地址。

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

三。将rsa\u id添加到服务器

创建新的rea_id并添加到您的服务器

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

四。快跑!

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

凯罗斯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

简单用法

运行一次

$ python3 -m ksmi -c config.json

永远运行

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

实用程序

复制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

将ID(RSA)复制到服务器

config.json

一起使用
$ 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]

创建新的ID rsa

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java文件分块,获取长度字节   java嵌入式Tomcat不执行jsf页面   java我的数据库中有2个实体,但hibernate返回其中6个。   java如何基于逗号拆分字符串   java取消已经运行的CompletableFutures的预期模式是什么   java如何在informix中从另一个数据库复制表ddl和数据   为什么图片是黑色的?   java根据字符串数组中的单词筛选列表   Java8的集合。平行流有效吗?   Kotlin中的java静态内部类   java如何在GUI中生成一列字符串   javafx如何正确使用高对比度主题?   带空格的javascript Httpurlconnection参数   java如何设置GridBagLayout的约束   java如何在一个线程可能尚未初始化时关闭另一个线程   java将简单时间格式转换为特殊时间格式(hhmmt)   安卓/java阵列重复过滤器的问题   java在队列的链接实现下,入队和出队是如何工作的   java更新sql外键约束