printerManage printers via CUPS on macOS (discover, add, print, queue, status, wake).
Install via ClawdBot CLI:
clawdbot install DhvanilPatel/printerRequires:
Control printers on macOS using built-in CUPS commands. No external CLI needed.
# Network printers (Bonjour/AirPrint)
dns-sd -B _ipp._tcp . 2>/dev/null & sleep 3; kill $! 2>/dev/null
# Get printer details (host, port, resource path)
dns-sd -L "Printer Name" _ipp._tcp . 2>/dev/null & sleep 3; kill $! 2>/dev/null
# CUPS-native discovery
lpstat -e # available network destinations
lpinfo --include-schemes dnssd -v # dnssd backends
# IPP discovery
ippfind --timeout 5
# Recommended: driverless queue
lpadmin -p MyPrinter -E -v "ipp://printer.local:631/ipp/print" -m everywhere
# Set as default
lpadmin -d MyPrinter
# Enable SNMP supply reporting (toner levels)
sudo lpadmin -p MyPrinter -o cupsSNMPSupplies=true
lp filename.pdf # to default printer
lp -d MyPrinter filename.pdf # specific printer
lp -d MyPrinter -n 2 file.pdf # 2 copies
lp -d MyPrinter -o sides=two-sided-long-edge file.pdf # duplex
lp -d MyPrinter -o media=letter file.pdf
lp -d MyPrinter -o ColorModel=Gray file.pdf # grayscale
# Print text directly
echo "Hello World" | lp -d MyPrinter
# Check status
lpstat -p MyPrinter # printer status
lpstat -o MyPrinter # queued jobs
lpstat -t # everything
lpq -P MyPrinter # BSD-style queue view
# Cancel jobs
cancel JOB_ID
cancel -a MyPrinter # cancel all
# Enable/disable
cupsenable MyPrinter # resume printing
cupsdisable MyPrinter # pause printer
cupsaccept MyPrinter # accept new jobs
cupsreject MyPrinter # reject new jobs
# List available options for a printer
lpoptions -p MyPrinter -l
# Set default options (per-user)
lpoptions -p MyPrinter -o sides=two-sided-long-edge
# Set server-side defaults
sudo lpadmin -p MyPrinter -o sides-default=two-sided-long-edge
# IPP status query (detailed)
ipptool -t ipp://PRINTER_IP/ipp/print get-printer-attributes.test
# Filter for key info
ipptool -t ipp://PRINTER_IP/ipp/print get-printer-attributes.test \
| grep -iE 'printer-state|marker|supply|media|error'
# IPP poke (usually wakes the printer)
ipptool -q -T 5 ipp://PRINTER_IP/ipp/print get-printer-attributes.test
# HTTP poke (wakes web UI stack)
curl -s -m 5 http://PRINTER_IP/ >/dev/null
# TCP connect test
nc -zw2 PRINTER_IP 631
# Poll every 5 minutes (runs in foreground)
ipptool -q -T 3 -i 300 ipp://PRINTER_IP/ipp/print get-printer-attributes.test
For persistent keep-alive, create a launchd agent.
Requires brew install net-snmp:
snmpwalk -v2c -c public PRINTER_IP 1.3.6.1.2.1.43.11.1.1
Note: SNMP may be disabled on the printer. Check Remote UI settings.
Most network printers expose a web UI at http://PRINTER_IP/ for:
# Printer stuck/disabled? Re-enable it
cupsenable MyPrinter
# Check device URI
lpstat -v MyPrinter
# Remove and re-add printer
lpadmin -x MyPrinter
lpadmin -p MyPrinter -E -v "ipp://..." -m everywhere
# CUPS error log
tail -f /var/log/cups/error_log
ipp:// or ipps:// URIs over raw 9100 or LPD-m everywhere auto-configures from printer's IPP capabilitieslpoptions -l to discoverGenerated Mar 1, 2026
A small business office uses this skill to manage a shared network printer for daily document printing. It helps employees discover the printer via Bonjour, set it as default, print PDFs and text files with options like duplex, and monitor toner levels via SNMP to avoid downtime.
A school or university IT department deploys this skill to configure multiple printers across campuses. They add driverless IPP printers for students and faculty, manage print queues to cancel jobs or pause printing during exams, and use status diagnostics to troubleshoot connectivity issues.
A remote worker uses this skill to automate printer tasks on their macOS home setup. They print documents directly from the command line, set default options like grayscale to save ink, and use keep-alive scripts to prevent the printer from entering deep sleep during work hours.
A print shop integrates this skill into their production workflow to handle batch printing jobs. They print multiple copies of files, manage printer queues to prioritize urgent orders, and use IPP status queries to monitor printer health and supplies for high-volume output.
IT support technicians use this skill to diagnose and resolve printer issues for clients on macOS. They check error logs, re-add printers with correct URIs, and wake unresponsive printers via IPP pokes, reducing downtime and improving service efficiency.
Offer subscription-based printer management for businesses, using this skill to automate monitoring, supply tracking, and troubleshooting. Revenue comes from monthly fees per printer, with upsells for advanced features like SNMP integration and keep-alive setups.
Provide on-demand IT consulting services for small offices or individuals, leveraging this skill to set up and maintain printers efficiently. Revenue is generated through hourly rates or fixed project fees for installation, configuration, and ongoing support.
Develop and sell software tools that integrate this skill into larger systems, such as document management platforms or enterprise resource planning (ERP) software. Revenue streams include licensing fees, custom development contracts, and maintenance support packages.
💬 Integration Tip
Integrate this skill with automation scripts or monitoring dashboards to streamline printer management; use the provided commands in cron jobs or launchd agents for scheduled tasks like keep-alive pings.
Google Maps Grounding Lite MCP for location search, weather, and routes via mcporter.
Monitor and control Snapmaker 3D printers (U1 with Moonraker/Klipper). Use when checking print status, temperatures, progress, or controlling prints (pause/resume/cancel). Triggers on "printer", "3D print", "Snapmaker", "print status", "nozzle temp", "bed temp".
Monitor DX clusters for rare station spots, track active DX expeditions, and get daily band activity digests for amateur radio operators.
Verify the bead daemon is alive and responsive
Auto-report fail2ban banned IPs to AbuseIPDB and notify via Telegram. Use when monitoring server security, reporting attackers, or checking banned IPs. Watches fail2ban for new bans, reports them to AbuseIPDB, and sends alerts.
Analyze local PCAP/PCAPNG files with tshark to generate detailed network forensics reports including talkers, ports, DNS, TLS, HTTP, and anomaly summaries.