Network Printer บางครั้ง Offline เอง ค้างคิว Print Server (Windows Server) แก้โดยไม่ต้อง Reinstall/Restart Print Server
ตรวจสอบพื้นฐาน
- Print Management Console → Printer Queue Status = Offline → Properties → ไม่ติ๊ก Use Printer Offline
- Printer เปิดอยู่ Ping IP ได้ เข้า Web Interface ได้
SNMP Status Monitoring
Win 7+ ใช้ SNMP Poll Printer Status Default: Print Server ส่ง SNMP Request → ไม่ตอบ = Offline
- Printer Web Interface → Networking → SNMP → Enable SNMP Read-only (Community: public)
- Print Management → Printer Properties → Ports → Standard TCP/IP Port → Configure Port → SNMP Status Enabled + Community Name: public
Printer ไม่รองรับ SNMP → Disable SNMP ใน Port Settings → Windows หยุด Poll
เช็ค State → Ready
PowerShell หา Printer SNMP Settings
Printer ที่ Disable SNMP:
get-printerport |where {$_.snmpenabled -ne $True}|select name,protocol,description,printerhostaddress
Printer ที่ SNMP Community ไม่ใช่ Public:
get-printerport |where {$_.SNMPCommunity -ne 'Public' -and $_.snmpenabled -eq $True }|select name,protocol,description,printerhostaddress, snmpenabled, SNMPCommunity
ตรวจสอบเพิ่มเติมถ้ายัง Offline
- IP Address ใน Port ถูกต้อง?
- Port Type = Standard TCP/IP Port (ไม่ใช่ WSD Port)
- Firewall บล็อก SNMP (UDP 161/162)?
- ลบ Printer + Port → สร้างใหม่ Reinstall Driver
- Restart Spooler:
Restart-Service "Spooler" - Disable SNMP ทั้ง Server: Registry
HKLM\SYSTEM\CurrentControlSet\Control\Print\SNMPLegacy= 1 (DWORD)