cancel
Showing results for 
Search instead for 
Did you mean: 

Spooler issue on new server

 

Spooler issue on new server

Here is the scenario:

printer lp1 is installed on server1 and works fine.  The spooler queue was transferred to server2 (in another DC) using the hpnpl transferqueue process.  The printer lp1 on server2 does not print and the jobs sit in the queue.

I have verified that the printer is accessible from server2.   If I print to lp1  (lp -d lp1 /etc/hosts) from server1 I see the following in the log file:

Start: lp1-101 Mon Apr 1 11:58:11 CDT 2019
End: lp1-101 Mon Apr 1 11:58:11 CDT 2019
/etc/lp/interface/model.orig/lp1 
/opt/hpnpl/bin/hpnpf -j lp1-101+root -a1 -x lp1

If I print from server2 (lp -d lp1 /etc/hosts), I see the following in the log file:

Start: lp1-170 Mon Apr 1 14:42:24 EDT 2019
Start: lp1-170 Mon Apr 1 14:42:44 EDT 2019
Start: lp1-170 Mon Apr 1 14:43:04 EDT 2019
Start: lp1-170 Mon Apr 1 14:43:24 EDT 2019
Start: lp1-170 Mon Apr 1 14:43:44 EDT 2019

If I print directly to the printer using the hpnpf command from server2 it works:

hpnpf -x lp1 -l /tmp/print.log /etc/hosts

cat /tmp/print.log

OpenLog: logging started (/tmp/print.log)
14:02:10 hpnpf[23587] Process: entered
14:02:10 hpnpf[23587] OpenSocket: entered
14:02:10 hpnpf[23587] OpenSocket: using 16K send buffer
14:02:10 hpnpf[23587] MakeConnection: 10.10.130.13, port 9100
14:02:10 hpnpf[23587] DoNonBlocking: non-blocking on
14:02:10 hpnpf[23587] Connection has been set up
14:02:10 hpnpf[23587] connected
14:02:13 hpnpf[23587] GET community name unknown, No SNMP status
14:02:13 hpnpf[23587] Process: sending file /etc/hosts
14:02:13 hpnpf[23587] SendFile: entered
14:02:13 hpnpf[23587] SendFile: 955 bytes read from host
14:02:13 hpnpf[23587] SendFile: 0 bytes read from host
14:02:13 hpnpf[23587] SendFile: 955 bytes written to socket
14:02:13 hpnpf[23587] SendFile: end, return succ
14:02:13 hpnpf[23587] DoNonBlocking: non-blocking off
14:02:13 hpnpf[23587] Process: read EOF on socket
14:02:13 hpnpf[23587] StopLog: logging stopped

 

Any suggestions on what to look at next?

1 REPLY 1
Saajan_d
Visitor

Re: Spooler issue on new server

1st of all let me inform that Jetdirect is not further supported by HPE.
We only Support Remote printer Technology.

However these are information I can provide you.

For migrating the Printer you can do the below :-

To save spooler state from the command line:

1. If the /var/sam/lp directory doesn't exist, create it with: mkdir /var/sam/lp
2. Save the spooler state with: /usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp
3. cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/

To restore spooler state from the command line:

1. Run : /sbin/init.d/lp stop
2. Copy the .tar file to the target system back to /var/sam/lp
3. Untar the file in /var/sam/lp directory: tar xvf lpqueues.tar

4. Run: /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp
5. Restart the scheduler after restoring the spooler state: /sbin/init.d/lp start

after this you should do the below steps :-

cd /opt/hpnpl

and read the 'TRANSFER.UNX' file. It will explain everything you need to do to transfer all your printers.

In breif these are the steps you'll have to take.

Stop the LP service.

/sbin/init.d/lp stop

# > /var/spool/lp/outputq

1) login to the source system.
cd /etc/lp/interface
rm *.old

2) cd /opt/hpnpl/bin
./transferqueue backup

3) ftp the file /tmp/queues.tar to the destination/target Machine /tmp/queues.tar

4) login to the target machine
cd /opt/hpnpl/bin
./transferqueue

5) tar -cvf /tmp/lp-interface-model.tar /etc/lp/interface/model.orig

6) ftp /tmp/lp-interface-model.tar to the destination/target Machine.

Untar it

This should transfer all your printers from one machine to the other.

I am a HPE Employee