https://github.com/allansomensi/inkcheck
A CLI tool to quickly check printer supplies status via SNMP. Made with Rust.
https://github.com/allansomensi/inkcheck
cli printer-management rust snmp
Last synced: 10 months ago
JSON representation
A CLI tool to quickly check printer supplies status via SNMP. Made with Rust.
- Host: GitHub
- URL: https://github.com/allansomensi/inkcheck
- Owner: allansomensi
- License: mit
- Created: 2025-02-03T14:18:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-27T15:10:28.000Z (12 months ago)
- Last Synced: 2025-06-27T15:44:54.147Z (12 months ago)
- Topics: cli, printer-management, rust, snmp
- Language: Rust
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# InkCheck 🖨️
**InkCheck** is a CLI tool built in Rust that checks printer supply levels via `SNMP`. It provides a fast and efficient way to monitor the status of **toner**, **drum**, **fuser** and other consumables for both **color** and **monochrome** printers directly from the command line.

## 🚀 Getting Started
### Prerequisites
- **Rust** (latest stable version).
### Cloning the Repository
```bash
git clone https://github.com/allansomensi/inkcheck.git
cd inkcheck
```
### Development Setup
To use the development scripts, install `just`:
```elixir
cargo install just
```
## 📦 Installation
To install from the source:
```elixir
cargo install --path .
```
## 🔧 Usage
Run with the following command:
```elixir
inkcheck [IP] [OPTIONS]
```
### Options:
- `-p, --port [PORT]` - SNMP service port **(default: 161)**
- `-s, --snmp-version [VERSION]` - SNMP version **(default: v2c)**
- `-c, --community [COMMUNITY]` - SNMP community **(default: public)**
- `-t, --timeout [TIMEOUT]` - Timeout in seconds **(default: 5)**
- `-d, --data-dir [DIR]` - Data directory
- `--theme [THEME]` - CLI theme **(default: solid)**
- `-e, --extra_supplies` - Show extra supplies informations
- `-h, --help` - Display help information
- `-V, --version` - Display version information
### Example:
To check the supply levels of a printer at `192.168.1.10`, using the `moon` theme, displaying `extra supplies`, and setting a `timeout` of 10 seconds:
```elixir
inkcheck 192.168.1.10 --theme moon -e -t 10
```
## 🎨 Themes
Supports multiple visual themes for better readability and personalization. Below are the available themes:
- Solid
- Shades
- Moon
- Circles
- Stars
- Vintage
- Diamonds
- Blocks
- Emoji
---
## 🖨️ Tested Printers
Below is a list of printers that have been tested:
- Brother MFC-L6702DW
- Brother DCP-8157DN
- Brother DCP-8152DN
- Brother MFC-7460DN
- Brother MFC-L8900CDW
- Brother DCP-L5652DN
- Brother MFC-J6935DW
- Brother HL-L2360DW
- Brother HL-5350DN
- Brother L2540
- OKI B431
- Xerox C8030
If you've tested with another printer model, feel free to contribute by adding it to the list!
---
## 📬 Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.