Remote print from SLES (SAP) to AIX 7.1 04 sp2 virtual printer queue gets down


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Remote print from SLES (SAP) to AIX 7.1 04 sp2 virtual printer queue gets down
# 1  
Remote print from SLES (SAP) to AIX 7.1 04 sp2 virtual printer queue gets down

Hello Administrators.
I have a bit difficult problem.
I have local virtual printer that has backend defined in /etc/qconf to script which in turns sends the spool to the real device.
whenever I print locally (from sap) the print works as it should. The printer queue after the print is done remains in status ,,ready''.
However i've setup a remote SAP system on SLES12. The SAP can connect to the aix just fine (the lpd daemon is working), but whenever I try to print anything from it the jobs are send to the aix's virtual printer queue and then..the queue gets status down immediately.
Whatever I do I cannot enable the queue when those jobs are in status QUEUED.
To get the queue up, I need to put all jobs on hold with qhold -P command, and only then I can enable the queue.
However enabling any of held jobs , or trying to print anything from remote SAP puts the queue immediately again into DOWN status.

what am I missing ?
the remote SLES system was added to the /etc/hosts and /etc/hosts.lpd file. The AIX clearly accepts job requests since I can see them in the queue.
In my opinion it is not a sap problem but AIXes, which for some reason any remote print requests treats immediately as a reason to put down the whole queue...

thanks in advance for help !
Deneth
# 2  
Hi,

When you configure the Network Services through YaST can you see the printing services, also you may have to ensure that CUPS is correctly set up.

Regards

Gull04
This User Gave Thanks to gull04 For This Post:
# 3  
Quote:
Originally Posted by Deneth
The AIX clearly accepts job requests since I can see them in the queue.
In my opinion it is not a sap problem but AIXes, which for some reason any remote print requests treats immediately as a reason to put down the whole queue...
That could be all sorts of things. Post the stanza from /etc/qconfig from the AIX system. Also look in /var, it could be full, the user missig the necessary privileges, .....

Also, from the AIX system: try a telnet <printers-ip> 515 to see if the lpd daemon there is responding. If the queue is taken down by the OS then there is some reason for it (print jobs arriving are NOT a reason). In any case you can take the queue up again without removing any print job with the command qadm -U <printer> command on AIX.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 4  
Hello,
thank You all for Your replies.
so to answer most clearly :
-telnet on port 515 works fine
-qadm -U printer doesn't bring the queue up. Or maybe it does but then it immediately goes down because of queued remote jobs

-stanza for the virtual printer and printer is as follows from /etc/qconfig : the job goes to virtual printer, which invokes script that adds one line to the job, and then moves the spool to the real printer.
so it goes like this print request -> vBIOM -> script >BIOM

Code:
BIOM:
        device = @printBIOM
        up = TRUE
        host = printBIOM
        s_statfilter = /usr/lib/lpd/aixshort
        l_statfilter = /usr/lib/lpd/aixlong
        rq = BIOM
@printBIOM:
        backend = /usr/lib/lpd/rembak -T60
vBIOM:
        device = vBIOM
        up = TRUE
vBIOM:
        backend = /usr/scripts/backend/BIOM

- /var/ has 500 mb left so I doubt that some spool with 1 page is too much for it.

I 've set the /etc/hosts.lpd and /etc/hosts.equiv as follows :
Code:
/etc/hosts.lpd :
druk

Code:
/etc/hosts.equiv :
druk prdadm
druk root

in my opinion it should work. To which folder do You think I'd need to check privileges?


@Gull04 I don't really think SLES is the issue here. It doesn't do anything except for being a host for sap system (which works as a spool server itself, it doesn't need SLES help in that matter )

Moderator's Comments:
Mod Comment edit by bakunin: Please use CODE-tags for code, terminal output and data. Thank you.

Last edited by bakunin; 12-21-2018 at 06:36 PM..
# 5  
Hi Deneth,

It's been a long time since I've done much serious admin work on AIX, but I have done a fair bit of recent migration work both from and to AIX. From memory and it is a distant one, the LPD setup and the CUPS setup could cause issues as I've not actually got an AIX system to hand that I can test this with I'm going from some notes.

So the smit bit goes like this;

As root;

Check that the LPD daemon is running - must be if the system is printing. But if it's not, start the LPD daemon using SMIT, click Print Spooling → AIX Print Spooling → Manage Print Server → Start the Print Server Subsystem.

Add the host name or IP address of the systems that you want to allow to print to the /etc/hosts.lpd file.

In SMIT, click Print Spooling → AIX Print Spooling → Manage Print Server → Add Print Access for a remote client. Enter the host name or IP address of the system that you want to allow to send jobs to the print queue.

If you run enq -U -P "printerid" does the status change from "connect" to "sending"?

Regards

Gull04
This User Gave Thanks to gull04 For This Post:
# 6  
Dear all,
thank you all for Your answers. It stared to work. What did the trick ? The truth is...I don't really know.
It didn't work, but when I restarded spooler and editiet qconfig file (while the queue was ,,ready'') it started to work
so what I did :

1: the queue has staus down
I restared whole spooler with commands :

Code:
stopsrc -g spooler
startsrc -g spooler

2:
I held jobs from the queue

Code:
qhold -PvBIOM

and enabled it again with command

Code:
enable vBIOM

3:
Then I added parameter to the virtual printer definition in qconfig.
it looks like this now (the parameter does not do anything though, when I believed it was supposed to log)

Code:
vBIOM:
        backend = /usr/scripts/backend/BIOM -D /tmp/pst/log



and it worked.

First I released 1 job, then another one , and after that I released all of them and all of them got processed.
The prints are working now.

My guess is that either restarting the spooler did the trick, or editing the qconfig was made at the right time so the qconfig.bin was rebuilt.
I don't really believe that -D parameter helped.

Moderator's Comments:
Mod Comment edit by bakunin: Please use CODE-tags for code, terminal output and data. Thank you.

Last edited by bakunin; 12-21-2018 at 06:38 PM..
# 7  
First off: thank you for describing what led to a solution for you. This way others can build on your thread.

Second: please use CODE-tags for code, data and terminal output like the ones i edited into your posts. This preserves spacing (unlike the HTML your text is transformed into) and lets these parts of your posts stand out. You can also use ICODE-tags for commands like this: use ls to display a directories contents. Thank you for your consideration.

The point is moot now, but the directory i asked you to check the permissions was /var/spool and the hierarchy below it. Since i had no indication of what the problem might be i suggested whatever my mind could come up with as possible reason - privileges was one of them. I actually had this case once when somebody thought to make the systems "more secure" by flagging every directory to 700.We rolled that back (obviously) but somehow /var/spool slipped through and this had similar consequences as the ones you described.

I think your suspicion about rebuilding the /etc/qconfig.bin is right. This most probably was the culprit.

bakunin

Last edited by bakunin; 12-21-2018 at 06:48 PM..
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #934
Difficulty: Medium
The C standard library does not specify any specific resolution, epoch, range, or datatype for system time values.
True or False?

10 More Discussions You Might Find Interesting

1. High Performance Computing

Job Schedular for Suse Enterprise SLES 11 SP2

We have a server with 160 hyper-threaded cpu's threads and 2Tb of RAM. I need to implement command line job queue and parallel thread usage for multiple user environment kindly suggest necessary tools to be installed. I have understanding that sun grid engine like applications are available for... (0 Replies)
Discussion started by: vaibhavvsk
0 Replies

2. SuSE

Failure of Vmware Server 2 installation on SLES 11 SP2

Issue: I am trying to install Vmware Server 2(VMware-server-2.0.2-203138.x86_64) installation on SUSE Linux Enterprise Server 11 (x86_64) SP2 and it fails with error: None of the pre-built vmmon modules for VMware Server is suitable for your running kernel. Do you want this program to try... (3 Replies)
Discussion started by: rupeshkp728
3 Replies

3. AIX

Help with clear printer queue script in AIX 5.3

Good day UNIX forum, could you help me with my clear printer queue script, i have problems with the consistency of this function, sometimes it works sometimes it doesn't. Thanks in advance } preRemovePrintQ(){ clear; echo; echo... (1 Reply)
Discussion started by: beware187
1 Replies

4. HP-UX

[Solved] a way to tell printer used by configured print queue?

Hello; As the title says, am trying to find our which driver is used for the alraedy working print queues.. neither hpnpf nor hppi seems to give that info .. Any ideas ?? Thnx (2 Replies)
Discussion started by: delphys
2 Replies

5. SuSE

SLES 10 SP2 possible kernel problem, / slowly filling up

Hello Guys I first though about posting this to emergency but cause I fixed my issue with an reboot its not as important, more is important to me what caused this situation Some facts: OS: SLES 10 x64 SP2 (Virtualized Vmware ESX 3.5) / vmware tools status OK Soft: Oracle10g LVM... (1 Reply)
Discussion started by: kl1ngac1k
1 Replies

6. UNIX for Dummies Questions & Answers

Where are the repositories located in SUSE SLES 10 SP2

Hi, In SUSE SLES 10 SP2 where are the software repositories located? In CENTOS they are in /etc/yum.repositories or something like that. What does SLES use? (1 Reply)
Discussion started by: mojoman
1 Replies

7. UNIX for Dummies Questions & Answers

Solaris 8 setup remote printer queue help

I am trying to setup a remote printer (home users printer) through Solaris 8. The IP address is 172.16.17.10 and I can ping the printer, a local windows printer queue has been setup and works but now I am trying to setup a remote Unix printer queue. With this being a remote printer, do I need to... (2 Replies)
Discussion started by: miredale
2 Replies

8. UNIX for Advanced & Expert Users

Solaris 8 setting up a remote printer queue

I have a printer installed over ADSL to a router at a remote location. A Windows printer queue has been setup and working and I can ping the IP address from the Solaris server. I now want to add a printer queue for this printer under Solaris, but I am unsure how to setup a remote printer queue.... (0 Replies)
Discussion started by: miredale
0 Replies

9. AIX

Can you set up a networked printer as a local print queue?

Fairly simple question, I think. Still trying to get my head around AIX print queues. Most of our problems seem to stem from print queues going down. This generates help-desk calls when users call up to get their queues started or to get rid of the emails that qdaemon sends them. Looking at... (0 Replies)
Discussion started by: alexop
0 Replies

10. Programming

Solaris- print to a remote queue

Is it possible to send a print job to a print queue on a different machine? (3 Replies)
Discussion started by: dangral
3 Replies

Featured Tech Videos