Crates.io | acsrs |
lib.rs | acsrs |
version | 0.5.2 |
source | src |
created_at | 2023-03-28 19:09:43.576294 |
updated_at | 2024-08-15 17:16:24.734428 |
description | A simple ACS written in rust |
homepage | |
repository | https://github.com/guillaumepellegrino/acsrs |
max_upload_size | |
id | 823364 |
size | 220,518 |
A simple ACS written in Rust.
You can get or set datamodel from any CPE managed by this ACS with a simple curl command.
Supported features are:
Some limitations are:
The application can be installed directly from cargo
cargo install acsrs
Simply start the application without any arguments:
acsrs
It will auto-configure itself by generating new user, password, certificate and CA. Everything is available under $HOME/.acrs
directory and can be overrided. Some usefuls files are:
Note: The ACS Public Certificate Common Name (CN) is derived from your public IP Address by default. It can be overrided by editing $HOME/.acsrs/config.toml and setting your hostname there. You can also disable there the auto-generation certificate mechanism if you wish to install your own certificates.
acscli is an interactive UNIX cli for ACSRS
disconnect : Disconnect from the current CPE
ls [path]: List Parameters under current object
cd [path]: Change directory
get [path] | [path]? : Get object or parameter value
set [path]
add [path] | [path]+ : Add a new object to an object collection.
del [path] | [path]- : Delete object.
upgrade [filename] : Upgrade CPE to provided firmware
ACS Server is manageable by default on http://127.0.0.1:8000/api url with JSON APIs. JSON APIs are defined in https://github.com/guillaumepellegrino/acsrs/blob/master/src/api.rs