Oki B6100n Guide: Administration and Installation, B6100 UNIX Printing Softwar - Page 40

Shutting-down the Line Printer Scheduler, Creating a Print Queue Using the lpadmin Command

Page 40 highlights

Chapter 2: Installing and Configuring UNIX Printing Software on a HP/UX System Shutting-down the Line Printer Scheduler lpsched must be shut-down before running the lpadmin command; then turned back on once the lpadmin command process completes. To shut down lpsched, enter the following command at the command line. Press RETURN: # lpshut The following message will appear: scheduler stopped Creating a Print Queue Using the lpadmin Command Now that lpsched has been stopped, the lpadmin command will work. Instructions on how to create a print queue are as follows: 1. Enter the lpadmin command at the command line. Press RETURN. Example: # lpadmin -p40_test -M40 -v /dev/null where 40_test is the queue name and -M40 is the name of the script created by make_model. 2. Enter the lpstat command at the command line: Press RETURN. Example: # lpstat -p40_test The following message appears: state will be disabled since the time it was created 3. Enter the following command at the command line. Press RETURN. # enable Example: # enable 40_test The following message appears: printer "40_test" now enabled. 4. Enter the following command to reinstate lpsched. # lpsched The following prompt appears: 2-348/25/02 UNIX Printing Software Administration and Installation Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106

2-34
8/25/02
UNIX Printing Software Administration and Installation Guide
Chapter 2: Installing and Configuring UNIX Printing Software on a HP/UX System
Shutting-down the Line Printer Scheduler
lpsched must be shut-down before running the lpadmin command; then turned back
on once the lpadmin command process completes.
To shut down
lpsched
, enter the following command at the command line. Press
RETURN
:
#
lpshut
The following message will appear:
scheduler stopped
Creating a Print Queue Using the lpadmin Command
Now that
lpsched
has been stopped, the
lpadmin
command will work.
Instructions on how to create a print queue are as follows:
1.
Enter the
lpadmin
command at the command line. Press
RETURN
.
Example:
#
lpadmin -p40_test -M40 -v /dev/null
where
40_test
is the queue name and
-M40
is the name of the script created by
make_model.
2.
Enter the
lpstat
command at the command line: Press
RETURN
.
Example:
#
lpstat -p40_test
The following message appears:
state will be disabled since the time it was created
3.
Enter the following command at the command line. Press
RETURN
.
# enable <queue_name>
Example:
#
enable 40_test
The following message appears:
printer “40_test” now enabled.
4.
Enter the following command to reinstate lpsched.
#
lpsched
The following prompt appears: