1833356 Members
3570 Online
110051 Solutions
New Discussion

removing a printer

 
Jay Cantwell
Regular Advisor

removing a printer

I am trying to remove a printer from the system using SAM. I am getting the following errors (printed from sam log):

===== Thu Oct 25 09:32:52 2007 Entering SAM area "Printer and Plotters
(kbshp)".
* Starting:
lpmgr -l -xcols=1
* lpmgr done, exit value is 0.
----- Performing task "Remove Printer": Removing "mca45b"
* Executing the following command:
lpmgr -r -xlocalname=mca45b
* Starting:
lpmgr -r -xlocalname=mca45b
* Stopping the lp scheduler.
* Executing:
/usr/sbin/lpshut
* Command succeeded.
* Cancelling print requests for printer "mca45b".
* Executing:
/usr/bin/cancel mca45b -e
* Command succeeded.
* Removing printer "mca45b" from the lp spooler.
* Executing:
/usr/sbin/lpadmin -xmca45b
ERROR A problem occurred doing "lpadmin -xmca45b". Stderr from this command is
"rm: directory /var/spool/lp/request/mca45b not removed. Cannot remove
mountable directory
/usr/sbin/lpadmin: can't remove request directory".
ERROR Unable to remove printer "mca45b" because of above error(s).
* Starting the lp scheduler with logging turned off.
* Executing:
/usr/sbin/lpsched
* Command succeeded.
* lpmgr done, exit value is 4.
* Command completed with exit status 4.
ERROR Removing "mca45b" failed.

Can someone tell me what needs to be done to get this printer deleted please?

thanks...Jay
6 REPLIES 6
Bill Hassell
Honored Contributor

Re: removing a printer

> rm: directory /var/spool/lp/request/mca45b not removed. Cannot remove mountable directory

Looks like this a remote filesystem. Run the command: bdf -t nfs or possibly bdf -t cifs to verify. Also run the command ll -d /var/spool/lp/request/mca45b to see the directory.



Bill Hassell, sysadmin
Jay Cantwell
Regular Advisor

Re: removing a printer

Bill....on the 2 bdf commands nothing was found....here is the result of the ll command:

ll -d /var/spool/lp/request/mca45b
drwxr-xr-x 2 lp lp 8192 Oct 25 09:33 /var/spool/lp/request/mca45b
Geoff Wild
Honored Contributor

Re: removing a printer

Can you try from the command line?

lpshut
lpadmin -xmca45b
lpsched -v

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
john korterman
Honored Contributor

Re: removing a printer

Hi Jay,

if you are running 11.11, take a look at patch PHCO_36661.


regards,
John K.
it would be nice if you always got a second chance
Jay Cantwell
Regular Advisor

Re: removing a printer

John....I am running 11.23 on an IA64...

Geoff...this is going to have to wait til morning...I have several print jobs that are scheduled to begin running between now and 4pm eastern time....I will try when I get in at 6am in the morning....

thanks
john korterman
Honored Contributor

Re: removing a printer

Hi again,

in that case, take a look at PHCO_36662


regards,
John K.
it would be nice if you always got a second chance