Operating System - HP-UX
1849261 Members
7185 Online
104042 Solutions
New Discussion

Remote Printer removal via SAM

 
Thomas Fung
New Member

Remote Printer removal via SAM

Hi,

We are having some problems with removing printers from SAM.

Firstly, we are trying to change the IP address of our REMOTE PRINTERS (not Network Printers). But from what I have read, the IP Address are in binary and can't be edited; the suggested solution is to remove and add again. This is ok. But when I try to delete from SAM, the spooler stops (normal), but the SAM session sits there and do nothing for like 30 minutes, until I ctrl-C to abort sam and start the spooler again.

*Any idea / suggestions would be greately appericated*
3 REPLIES 3
Thomas Fung
New Member

Re: Remote Printer removal via SAM

Sorry, forgot to mention that maybe I am missing the basics in what is required to have a printer removed - i.e. do the queues have to be empty? does the queue have to be 'ping' able? - does it need to do a timeout check?
Edward McCouch
Frequent Advisor

Re: Remote Printer removal via SAM

If you want to remove a printer, you can do the following:

lpshut
lpadmin -x
lpsched

That will work everytime and it doesn't matter if it is a network or remote.

Regards,
Ed
Bill Hassell
Honored Contributor

Re: Remote Printer removal via SAM

You probably have some hung lp jobs. Use lpshu then look for any processes owned by lp:

ps -f -u lp

If there are any, kill them with -15 and check again. If they are still there, use kill -9. This means that the processes were hung on I/O and SAM was just waiting for them to finish (might take a few years..) Once lpshiut is complete and all lp processes are gone, then SAM will allow lpadmin -x or SAM ot remove a printer.


Bill Hassell, sysadmin