System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

cannot remove remote printer in red hat

Yingxi
Occasional Visitor

cannot remove remote printer in red hat

Hi, all.
There is couple remote printer that installed wrongly as remote printer, and they don't work. I try to delete them. I tried "lpshut", response is command not found. I tried "lpsched" samething. There is no folder lp under spool, but has one lpd. but there is nothing there. either that I cannot find any log in spool.

The information of lpstat -t |more is as listed:
[root@ceres etc]# lpstat -t |more
scheduler is running
system default destination: ch457-hpclj4700
device for AdobePDF8: ///dev/null
device for ch422-hpclj4600: ipp://aitken.atmos.und.edu:631/printers/ch422-hpclj4600
device for ch457-hpclj4700: ipp://134.129.222.210:631/printers/ch457-hpclj4700
device for ch468-hplj4000: ipp://aitken.atmos.und.edu:631/printers/ch468-hplj4000
device for hp1200: ipp://aitken.atmos.und.edu:631/printers/hp1200
AdobePDF8 accepting requests since Fri 11 Sep 2009 03:51:23 AM CDT
ch422-hpclj4600 accepting requests since Fri 11 Sep 2009 03:35:22 PM CDT
ch457-hpclj4700 accepting requests since Fri 11 Sep 2009 03:34:48 PM CDT
ch468-hplj4000 accepting requests since Fri 11 Sep 2009 03:33:59 PM CDT
hp1200 accepting requests since Thu 10 Sep 2009 11:14:40 AM CDT
printer AdobePDF8 is idle. enabled since Fri 11 Sep 2009 03:51:23 AM CDT
printer ch422-hpclj4600 is idle. enabled since Fri 11 Sep 2009 03:35:22 PM CDT
printer ch457-hpclj4700 now printing ch457-hpclj4700-0. enabled since Fri 11 Sep 2009 03:34:48 PM CDT
printer ch468-hplj4000 is idle. enabled since Fri 11 Sep 2009 03:33:59 PM CDT
printer hp1200 is idle. enabled since Thu 10 Sep 2009 11:14:40 AM CDT



4600,4700 and 4000 are the three that i tried to delete. Thanks all for help.
6 REPLIES
skt_skt
Honored Contributor

Re: cannot remove remote printer in red hat

what version of LINUX are using?
Yingxi
Occasional Visitor

Re: cannot remove remote printer in red hat

Red Hat 5.0
skt_skt
Honored Contributor

Re: cannot remove remote printer in red hat

lpd has been replaced with cups in rhel 5. U could stop cups which will do same lpshut.

#service cups status

following can be used to get queue info.
#lpc status
#lpc status qname


Also you cold confgure cups GUI to manage queue including add/delete
=====
# diff /etc/cups/cupsd.conf cupsd.conf.default
0a1,7
> #
> # "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $"
> #
> # Sample configuration file for the Common UNIX Printing System (CUPS)
> # scheduler. See "man cupsd.conf" for a complete description of this
> # file.
> #
2c9,11
< # Show general information in error_log.
---
>
> # Log general information in error_log - change "info" to "debug" for
> # troubleshooting...
3a13,14
>
> # Administrator user group...
5,6c16,18
< # Allow remote access
< Port 631
---
>
> # Only listen for connections from the local machine.
> Listen localhost:631
7a20
>
11,12c24,27
< # (Change 'ALL' to 'ALL' if using directed broadcasts from another subnet.)
< BrowseAllow ALL
---
> # (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.)
> BrowseAllow @LOCAL
>
> # Default authentication type, when authentication is required...
13a29,30
>
> # Restrict access to the server...
15d31
< # Allow remote administration...
17c33
< Allow ALL
---
> Allow localhost
18a35,36
>
> # Restrict access to the admin pages...
21d38
< # Allow remote administration...
23c40
< Allow ALL
---
> Allow localhost
24a42,43
>
> # Restrict access to configuration files...
28d46
< # Allow remote access to the configuration files...
30c48
< Allow ALL
---
> Allow localhost
31a50,51
>
> # Set the default printer/job policies...
32a53
> # Job-related operations must be done by the owner or an adminstrator...
36a58,59
>
> # All administration operations require an adminstrator to authenticate...
42c65,67
<
---
>
> # Only the owner or an administrator can cancel or authenticate a job...
>
46,50c71
< # Only the owner or an administrator can cancel a job...
<
< Order deny,allow
< Require user @OWNER @SYSTEM
<

---
>
54a76,79
>
> #
> # End of "$Id: cupsd.conf.in 5454 2006-04-23 21:46:38Z mike $".
> #
Yingxi
Occasional Visitor

Re: cannot remove remote printer in red hat

Thank you for helping.
But when i use
#service cups status
#lpc status
#lpc status qname

all of them showed command not found.

I could open that default file, but i cannot find the printer I want to delete there.
skt_skt
Honored Contributor

Re: cannot remove remote printer in red hat

verify if the CUPS pacakge is installed and the service is started
Yingxi
Occasional Visitor

Re: cannot remove remote printer in red hat

Thanks a lot.