The zebra-serial-reader finds serial numbers and product names of Zebra printers on the network via IP addresses.
- Windows
- Linux
- MacOS
- Test if we can awake printer from sleep.
No installations, it's a single portable binary file. You can put in your binary path and use it from anywhere.
- Download or build the binary file.
- Create a
data.json
file next to the binary file following the template below. The first variable can be anything that identifies the printer. Second variable is printer's IP address.
{
"OFFICE_1": "127.0.0.1",
"OFFICE_2": "127.0.0.2",
"OFFICE_3": "127.0.0.3"
}
- Run the binary without any parameters. It will read the data.json file, print the result to the console, write the results to the
__printers.csv
file, and then exit.
.\zebra-serial-reader.exe
With task Task
task build
With go build
go build -v -ldflags="-s -w" -o ./__dist/zebra-serial-reader.exe ./cmd/.
== Zebra serial number extractor
[OK] Location: OFFICE_1, Serial number: D3Jxxxxxx, Product: ZD620, IP: 127.0.0.1
[OK] Location: OFFICE_2, Serial number: D3Jxxxxxx, Product: ZD620, IP: 127.0.0.2
[ERROR] Location: OFFICE_3, IP: 127.0.0.4
CSV file created successfully: __printers.csv
- ZD 620
- ZD 621
- GK 420d
Before contributing issues or pull requests, could you review the Contributing Guidelines first?
💙 If you like this project, give it a ⭐ and share it with friends!
This project is open-sourced software licensed under the MIT license.