1819803 Members
3121 Online
109607 Solutions
New Discussion юеВ

stop start spooler

 
SOLVED
Go to solution
lawrenzo
Trusted Contributor

stop start spooler

I have one printer where I need to stop and start the spooler, can this be done without stopping all other printers within jetadmin


Thanks
hello
7 REPLIES 7
Jose Mosquera
Honored Contributor
Solution

Re: stop start spooler

Hi,

To start/stop a printer:
#enable
#disable

To start/stop whole spooling service:
#lpsched
#lpshut

Rgds.
harry d brown jr
Honored Contributor

Re: stop start spooler

can you use disable/enable on the printer to get the desired results? If you lpshut you shut down the spooler, thus stopping all print jobs.

live free or die
harry
Live Free or Die
lawrenzo
Trusted Contributor

Re: stop start spooler

ok thanks a million - is there anyway to reset / stop spooling to 1 single printer?

cheers
hello
Jose Mosquera
Honored Contributor

Re: stop start spooler

Hi again,

If you need reset all printing jobs queued in a printer:
#cancel -e

If you need cancel a specific job queued:
#lpstat
- root priority 0 Jun 22 15:05
myfile.txt 370 bytes

#cancel -

Rgds.
Manish Srivastava
Trusted Contributor

Re: stop start spooler

Hi,

If youmena that you want to stop the printer from getting any request then you can do reject/accept of the printer.

stop printer from accepting any request:

reject < printer >

start accepting request

accept < printer >

manish
Geoff Wild
Honored Contributor

Re: stop start spooler

Here's some more info on the lp spooler:

LP Spooler Commands:

lpstat - report line printer status information
enable - enable LP printers
disable - disable LP printers
accept - allow LP printer queuing requests
reject - prevent LP printer queuing requests
lpadmin - configure the LP spooling system
lpsched - start the LP request scheduler
lpshut - stop the LP request scheduler
cancel - cancel requests
lpmove - move requests
lpfence - define the minimum priority for printing
addqueue - add a queue to the LP spooling system

There are 4 main directories on the HP Spooler:

/etc/lp Directory of spooler configuration data
/var/sam/lp Backup directory of spooler configuration
/var/spool/lp Directory of LP spooling files and directories
/var/adm/lp Directory of spooler log files


You can get further details on a printer with a HP Jet DIrect card by using the hpnpadmin command:

hpnpadmin -v (where is the printer name):

hpnpadmin -v RF02

Or, too get just relevant info, use the lpinfo script:

lpinfo W052



idle-timeout - specifies a timeout after which to close a connection if no
data is being sent

To change the value of "idle-timeout" on the jetdirect card:-

- telnet
- at the ">" prompt press [return] TWICE
- type "/" to show current parameter settings
- note "Idle Timeout" value (eg 30 seconds)
- type "?"
- type "idle-timeout: 270 (to increase to 270 seconds).
- type "quit" to save and exit with these settings.

NOTE: The maximum number for the JetDirect card timeout is 1 hour (3600
seconds). Be careful if you use high values, you might block the port for other
users.

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.
Bill Hassell
Honored Contributor

Re: stop start spooler

enabler and disable for printers simply stops the printing but not the collecting of print jobs. Left in the disable state for a long time, there may dozems or huindreds of jobs sent there by users that just keep on printing even though nothing comes out.

Instead, use the reject command to not only stop the printer but to prevent the lp command from completing any requests for the printer. That way, users get immediate feedback that the printer is not working.


Bill Hassell, sysadmin