IBM Support

Writer for HP Printer Ends with Message CPD337C and CPD337F

Troubleshooting


Problem

Writer for HP® printer ends with message CPD337C:  Session with device ended abnormally after the firmware is upgraded on the printer or for newer HP printer models.  Also seen in the writer message queue is message CPD337F:  Remote device rejected an attempt by the writer to open a connection.
If the Printer Error Message (PRTERRMSG) parameter in the LAN printer device description is set to *INQ for an Inquiry message instead of *INFO for an Informational message, message CPA403D:  Operator action required on device (C R), will be seen in the message queue.

Symptom

Writer for an HP printer ends abnormally, shortly after it is started.

Cause

Recently HP has made some changes, which disabled PJL.  Refer to the following document from HP for more detail:  http://h10032.www1.hp.com/ctg/Manual/c05818654

Environment

IBM i OS using LAN attached HP printer configured to use *HPPJLDRV or *IBMPJLDRV system driver program.

Diagnosing The Problem

If the writer ends shortly after it is started, review the writer job log for message CPD337C and the writer's message queue for  CPD337F:  Remote device rejected an attempt by the writer to open a connection.

Resolving The Problem

To resolve the issue, change the system driver program from *HPPJLDRV or *IBMPJLDRV to *IBMSNMPDRV.
VRYCFG CFGOBJ(PrinterDeviceName) CFGTYPE(*DEV) STATUS(*OFF)
CHGDEVPRT DEVD(PrinterDeviceName) USRDFNOPT(*IBMSHRCNN) SYSDRVPGM(*IBMSNMPDRV)
VRYCFG CFGOBJ(PrinterDeviceName) CFGTYPE(*DEV) STATUS(*ON)
STRPRTWTR DEV(PrinterDeviceName)

Related Information

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]

Product Synonym

IBM i 7.1; IBM i 7.2; IBM i 7.3; IBM i 7.4

Document Information

Modified date:
28 June 2021

UID

ibm16189825