#ups #devices #nut #variables #networking #demo #clients

app rupsc

一个用于显示UPS变量的演示程序

13个版本

0.6.1 2023年8月15日
0.6.0 2023年7月1日
0.5.3 2022年8月20日
0.5.2 2021年8月1日
0.3.0 2021年7月31日

网络编程 中排名第1416位

每月下载量 45

GPL-3.0-or-later

145KB
3K SLoC

rupsc

crates.io Documentation GPL-3.0 or later CI

upsc的Rust克隆,upsc是upsc,是Network UPS Tools (NUT)的演示程序,用于显示UPS变量。

使用rups crate编写。

  • 使用TCP连接到upsd/nut-server
  • 列出UPS设备
  • 列出UPS设备的变量
  • 获取UPS设备的变量值
  • 列出连接到UPS设备的客户端
  • 使用SSL安全连接

安装

# Using cargo
cargo install rupsc

# Or, build for other targets
# (make sure you install the appropriate toolchain & gcc linker)
cargo build --release --target armv7-unknown-linux-gnueabihf
cargo build --release --target aarch64-unknown-linux-gnu
cargo build --release --target arm-unknown-linux-gnueabihf

使用方法

这是一个upsc的克隆,所以使用方法相同

# Show usage
rupsc -h

# List variables on UPS device "nutdev1" (assumes upsd running on localhost:3493)
rupsc nutdev1

# List variables on UPS device "nutdev1" (remote upsd)
rupsc [email protected]:3493

# List available UPS devices
rupsc -l

# List available UPS devices, with description
rupsc -L

# List clients connected to UPS device "nutdev1"
rupsc -c nutdev1

然而,还有一些对原始工具的补充

# Enable network debugging
rupsc -D

# Enable SSL (strict verification)
rupsc -S

# Enable SSL (no verification)
rupsc --insecure-ssl

发音

r-oopsie

依赖

~11MB
~268K SLoC