Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant create a print queue

Status
Not open for further replies.

cjackson

Technical User
Dec 1, 2000
44
US
Hello everyone, I hope someone can help with this problem.

I am trying to setup a print queue for a printer I have just created but get the following errors after adding a new name for the new print queue: -

digest: 0781-017 error in config file /etc/qadm.config, line 75.
digest: (FATAL ERROR): 0781-012 No device line in queue stanza.
mkque: (FATAL ERROR): 0781-277 Error from digester /usr/lib/lpd/digest, status =
-1024, rv = 59154.

I have made some changes to the qadm.config file but the error always comes back at line 75?

Any help or suggestions greatly appreciated.

Cheers

Chris


 
cjackson,


When renaming a print queue I tend to look at /etc/qconfig and make a note of the print queue characteristics, then remove and re-add it with the new name. If you have just hacked /etc/qconfig then it will not work.

Cheers PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
Can you put it back the way it was...without your editing? And then delete any new printers (through smit) and recreate? And see if it fixes it?
------------------
It appears You have corrupted the /etc/qconfig file and possible there are errors as well in the qadmin file.... Perhaps in the /etc/qconfig file you have a stanza that does not match...have the correct number of lines etc. Hopefuly you have a copy of the old before you made changes and can put it back....and do it through smit.

0781-017

Error in config file /etc/qadm.config
Occurs when trying to add queues when /etc/qconfig is corrupted
Often caused when queues are removed while job's still queued
Look for dummy queues in /etc/qconfig and remove if they are present.
If lpstat doesn't show any dummies or errors, you may have to rebuild /etc/qconfig.
This can cause qdaemon to go down.

0781-012

This message comes from the digest command that is used to convert the /etc/qconfig file to binary form.

0781-277

Occurred when adding a queue with mkque
/etc/qconfig file corrupted
Fixed /etc/qconfig problems and could add a queue
Look for dummy queue stanzas in /etc/qconfig
 
I have not edited the qconfig file, however I noticed the following:-

lp0:
device = dummy
up = TRUE
host = snowwhite.amc.com
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
rq = LPT0F40
dummy:
backend = dummy

This particular host no longer exists, how can I get rid of it without hacking qconfig? I can not see how to do it through smit (I should have said earlier that I am an Aix virgin!).

I have a copy of the qadm.config file, so that is back in place, but also noted the following: -

lp0:
up = TRUE
host = snowwhite.amc.com
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
rq = LPT0F40

Again this host does not exist and I think there is a line missing?

Thnaks for everyones help so far.

Cheers

Chris
 
Ok, as I had backups of the files I decided to go the whole hog and remove the bits I thought to be out of date.

I have now progressed, well at least I now have a new set of errors: -

mkque: 0781-188 Problem with /etc/qconfig:
rLPT2:
mkque: (FATAL ERROR): 0781-177 Device stanzas do not match "device =" clause.

here is a sample of the file: -

rLPT2:
device = @dopey
up = TRUE
host = dopey.abc.com
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
rq = LPT2
@dopey:
backend = /usr/lib/lpd/rembak

The rest go through to rLPT7.

Stuck now, can anyone improve my error count?

Cheers

Chris
 
0781-188
Device stanza does not match
Remove dummy entries from /etc/qconfig

0781-177
Device stanza does not match
Remove dummy entries from /etc/qconfig

I don't think the device entry can be @ maybe myprinter@dopey but not just @
Check out this redbook that you can download and will assist you with all kinds of
printing stuff.
You will need to remove that printer and recreate it.



 
FYI, a working remote queue:

iedroc02:
device = @iedroc02
up = TRUE
host = iedroc02.eur.ko.com
s_statfilter = /usr/lib/lpd/bsdshort
l_statfilter = /usr/lib/lpd/bsdlong
rq = jfsrvrsap
@iedroc02:
backend = /usr/lib/lpd/rembak

The best thing to do, in my opinion, is to completely remove any reference to the questionable print queues. Recompile the qconfig.bin just to make sure:

enq -d

Check to see what the machine sees:

enq -AW

After that you should make the queue again. Sometimes it borks and you get "dummy^J" entries in /etc/qconfig, those must be removed manually. Otherwise you should avoid any manual editing of /etc/qconfig, do queue manipulation through smit instead. Sometimes it just breaks, though, and makes the dummy entries.
 
Might want to put:

stopsrc -s qdaemon
startsrc -s qdaemon

in there, too. After recompiling qconfig.bin, probably.
 
Thanks for the help everyone, looks like I have managed to set up the print queue!

In the end I restored the qconfig file from tape and used that (I can see no change between the backup file and the one causing the problem?), and then did a enq -d.

This allowed me to create a queue and a printer to go with it, but I now have:

(FATAL ERROR) 0781-233 Unknown host snowwhite.amc.com

I can live with this for the time being, at least I can print now, but I still can not see how to remove the queue from smit (snowwhite.amc.com does not exist anymore). I dont want to edit qconfig to remove the duff lines now that I have something working.

Any advice to wrap this up greatly appreciated, and once again thanks everyone.

Chris
 
Are you able to ping snowwhite.amc.com by name? If not, there's your problem. A "feature" of the qdaemon is that it reads names from /etc/hosts first before checking DNS. I have actually used this feature in my documented process to redirect print queues to different servers simply by adding some lines to /etc/hosts to give the queue's hostname a different IP.

It won't hurt to edit /etc/qconfig as long as you just remove the pair of "dummy" stanzas. You won't be able to remove them any other way (as far as I know).
 

0781-233
Unknown host & ipaddress
Added address in /etc/hosts and printed fine

Try adding the IP address to the /etc/hosts file....or if you are doing DNS make sure it is resolved....
------------------------------------
Deleting a Remote Host

1.At the system prompt, type:
wsm printers

2.In the Web-based System Manager Printer Queues container, select the host you want to delete.

3.Use the menus or provide additional information as prompted to complete the
steps for deleting a remote host.

You can also perform this task with the following commands:

smit rmhostslpd

OR

ruser -d -p HostName
----------------------
Deleting a Print Queue
smit rmpq
Prerequisites

For local print queues, the printer must be physically attached to your system.
For remote print queues, your system must be configured to communicate with
the remote print server.
To delete a queue or queue device, you must have root authority.

Note: If the selected queue has only one printer, the queue and its printer are
removed. If the queue has more than one printer, only the selected printer
is removed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top