Crates.io | rupsc |
lib.rs | rupsc |
version | 0.6.1 |
source | src |
created_at | 2021-07-31 08:29:16.967959 |
updated_at | 2023-08-15 03:46:17.140035 |
description | A demo program to display UPS variables |
homepage | |
repository | https://github.com/aramperes/nut-rs |
max_upload_size | |
id | 429631 |
size | 53,007 |
A Rust clone of upsc, the Network UPS Tools (NUT) demo program to display UPS variables.
Written using the rups crate.
upsd
/nut-server
using TCP# 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
This is a clone of upsc
, so the usage is the same:
# 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 nutdev1@upsd.remote: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
However, there are also some additions to the original tool:
# Enable network debugging
rupsc -D
# Enable SSL (strict verification)
rupsc -S
# Enable SSL (no verification)
rupsc --insecure-ssl
r-oopsie