Zebra ~HS host status decoder
Every Zebra printer answers ~HS with three
dense lines of comma-separated flags: paper out, pause, head temperature, jobs stuck in the buffer.
Paste the response below and get every field decoded, per Zebra's documented positions.
How do I get this from my printer?
Linux / macOS: send ~HS to the
printer's raw port and print the reply (^B/^C markers are fine, paste them as-is):
printf '~HS' | nc -w 3 YOUR-PRINTER-IP 9100 | cat -v
Windows PowerShell:
$c=New-Object Net.Sockets.TcpClient('YOUR-PRINTER-IP',9100);$s=$c.GetStream()
$b=[Text.Encoding]::ASCII.GetBytes('~HS');$s.Write($b,0,$b.Length);Start-Sleep 1
$r=New-Object byte[] 4096;$n=$s.Read($r,0,4096);[Text.Encoding]::ASCII.GetString($r,0,$n)
No printer handy? Ask our public virtual printer; it answers like real firmware:
printf '~HS' | nc -w 3 print.stripyhorse.io 9101 | cat -v
The same, from PowerShell:
$c=New-Object Net.Sockets.TcpClient('print.stripyhorse.io',9101);$s=$c.GetStream()
$b=[Text.Encoding]::ASCII.GetBytes('~HS');$s.Write($b,0,$b.Length);Start-Sleep 1
$r=New-Object byte[] 4096;$n=$s.Read($r,0,4096);[Text.Encoding]::ASCII.GetString($r,0,$n)
| Field | Raw | Meaning |
|---|
Polling a fleet? The
virtual printer answers ~HS and SGD queries exactly like hardware;
point your monitoring script at it in CI.