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...
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.
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
- /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 :
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:
edit by bakunin: Please use CODE-tags for code, terminal output and data. Thank you.
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"?
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 :
2:
I held jobs from the queue
and enabled it again with command
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)
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:
edit by bakunin: Please use CODE-tags for code, terminal output and data. Thank you.
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)