1825764 Members
2097 Online
109687 Solutions
New Discussion

Can not delete a printer

 
Norman Heyen
Occasional Contributor

Can not delete a printer

I'm trying to run a remote printer on an HPUX J5000 box running 10.20.

I used SAM to setup the printer last week and it worked fine for a few days. Then we eitehr had a network crash or a server go down (never did hear the whole story).

The upshot is now I can not start the spooler on the J-box, and I can't delete this printer using SAM.

It appears the network is back. I can print to the printer from this location (but not the remote location), I can ping the printer from the remote site and can telnet with JetAdmin from both the local and remote sites.

Is there a different way to remove a printer? I'm leary of just deleting files in the /var/spool tree without a little guidance. Or is there something someone knows about that will get me out of this trouble?

Thanks!
Norman
8 REPLIES 8
Steve Steel
Honored Contributor

Re: Can not delete a printer

Hi


lpadmin -xprinter



Steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Corthouts Carlo
Valued Contributor

Re: Can not delete a printer

Hello,

man lpadmin

the -x option followed by the destination should remove the destination from the LP system.

Helen French
Honored Contributor

Re: Can not delete a printer

Hi,

Check the printer status with 'lpstat -t' first. If there is any job queues waiting, you can delete thos requests with 'cancel -e' command. For deleting a printer, use 'lpadmin -xprintername'. The scheduler can be start and stop by lpsched and lpshut commands.

Check man pages of lpadmin, cancel, lpstat etc.

HTH,
Shiju
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: Can not delete a printer

Steps to remove the printer ..
# lpshut
# lpadmin -xprinter_name
# lpsched
Check /var/spool/lp/request and you should not see the printer_name directory there.
Norman Heyen
Occasional Contributor

Re: Can not delete a printer

OK, I tried these suggestions.

The 'lpstat -t' command looks right until the very bottom where I get this:

cannot examine spooling area
cannot find the printer 1055p2

Trying to remove this printer with 'lpadmin -xm_c1055p2' gives this:

tx95j1# /usr/sbin/lpadmin -x1055p2
/usr/sbin/lpadmin: destination "1055p2" non-existent

The printers are this:
1055p2 is the name given to the printer at this site (IL)
c1055p2 is the name of this same printer in the remote location (TX)

About the only odd thing is that the directories in /var/spool/lp/request are links to another disk on the remote machine. I've done this for all the printers on this machine and not had a problem. Just this remote printer is the problem.

Any other thoughts?

Thanks for the help so far!
Norman
Helen French
Honored Contributor

Re: Can not delete a printer

Norman,

Check whether the daemon - 'rlpdaemon' is running on the location where the printer is connected. This should be running on the server in order to receive the requests.

If it is not, then you have to enable this option in /etc/inetd.conf file and then restart the inetd daemon (-c option).

HTH,
Shiju
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: Can not delete a printer

The "cannot examine spooler area" error can be cause by permissions setting in /var/spool/lp. Can you check if these are your permission setting ..

/var/spool/lp directory (example)
644 lp:sys outputq
644 lp:bin pstatus
644 lp:bin qstatus

Also check /usr/sbin ..
-r-sr-xr-- root:lp rlp
-r-sr-xr-x root:bin rlpdaemon
-r-sr-xr-x root:bin rlpstat
Norman Heyen
Occasional Contributor

Re: Can not delete a printer

Thanks for all the help. The problem is fixed. It turns out that at some point, the link from the request directory to the otehr disk had been removed or corrupted. Hence the problems with trying to remove it.

I appreciate all the time and effort, and learning a bit more about the ins and outs of printing on HP-UX.

Norman