Linux command
hp-query 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Query printer status
hp-query -p [printer-name]
Query by device URI
hp-query -d [device-uri]
Query specific parameter
hp-query -p [printer] -s [status]
List available queries
hp-query -l
说明
hp-query retrieves status information from HP printers. It sends queries and returns printer responses for various parameters. The tool accesses internal printer status and configuration. It's useful for scripting and monitoring.
参数
- -p _PRINTER_
- Printer name.
- -d _DEVICE_
- Device URI.
- -s _QUERY_
- Specific query string.
- -l
- List available queries.
- -b _BUS_
- Bus type (usb, net).
- --help
- Display help information.
FAQ
What is the hp-query command used for?
hp-query retrieves status information from HP printers. It sends queries and returns printer responses for various parameters. The tool accesses internal printer status and configuration. It's useful for scripting and monitoring.
How do I run a basic hp-query example?
Run `hp-query -p [printer-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p _PRINTER_ do in hp-query?
Printer name.