1enable(1)                        User Commands                       enable(1)
2
3
4

NAME

6       enable, disable - enable/disable LP printers
7

SYNOPSIS

9       /usr/bin/enable printer...
10
11
12       /usr/bin/disable [-c | -W] [-r [reason]] printer...
13
14

DESCRIPTION

16       The  enable command activates printers, enabling them to print requests
17       submitted by the lp command. enable must be run on the printer server.
18
19
20       The disable command deactivates printers, disabling them from  printing
21       requests submitted by the lp command. By default, any requests that are
22       currently printing on printer are reprinted in their entirety either on
23       printer  or  another  member of the same class of printers. The disable
24       command must be run on the print server.
25
26
27       Use lpstat -p to check the status of printers.
28
29
30       Generally, enable and disable are run on the print  server  to  control
31       local  print queues. Under some configurations, they can also be run on
32       client systems when IPP is being used to communicate between client and
33       server.
34

OPTIONS

36       The following options are supported for use with disable:
37
38       -c             Cancels  any  requests  that  are  currently printing on
39                      printer. This option cannot be used with the -W  option.
40                      If  the  printer  is  remote,  the -c option is silently
41                      ignored.
42
43
44       -W             Waits until the request currently being printed is  fin‐
45                      ished  before  disabling  printer. This option cannot be
46                      used with the -c option. If the printer is  remote,  the
47                      -W option is silently ignored.
48
49
50       -r [reason]    Assigns  a  reason  for the disabling of the printer(s).
51                      This reason applies to all printers specified. This rea‐
52                      son  is  reported by lpstat -p. Enclose reason in quotes
53                      if it contains blanks. The  default  reason  is  unknown
54                      reason for the existing printer, and "new printer" for a
55                      printer added to the system but not yet enabled.
56
57

OPERANDS

59       The following operand is supported for both enable and disable:
60
61       printer    The name of the printer to be enabled or  disabled.  Specify
62                  printer using atomic or URI-style (scheme://endpoint) names.
63                  See printers.conf(4) regarding the  naming  conventions  for
64                  destinations.
65
66

EXIT STATUS

68       The following exit values are returned:
69
70       0           Successful completion.
71
72
73       non-zero    An error occurred.
74
75

FILES

77       /etc/printers.conf      System printer configuration database
78
79
80       $HOME/.printers         User-configurable printer database
81
82
83       ou=printers             LDAP version of /etc/printers.conf
84
85
86       printers.conf.byname    NIS version of /etc/printers.conf
87
88
89       printers.org_dir        NIS+ version of /etc/printers.conf
90
91

ATTRIBUTES

93       See attributes(5) for descriptions of the following attributes:
94
95
96
97
98       ┌─────────────────────────────┬─────────────────────────────┐
99       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
100       ├─────────────────────────────┼─────────────────────────────┤
101       │Availability                 │SUNWlp-cmds                  │
102       ├─────────────────────────────┼─────────────────────────────┤
103       │Interface Stability          │Obsolete                     │
104       ├─────────────────────────────┼─────────────────────────────┤
105       │CSI                          │Enabled                      │
106       └─────────────────────────────┴─────────────────────────────┘
107

SEE ALSO

109       lp(1), lpstat(1), printers.conf(4), attributes(5)
110

NOTES

112       When  IPP  is  in  use,  the  user is prompted for a passphsrase if the
113       remote print service is configured to require authentication.
114
115
116
117SunOS 5.11                        5 Jun 2006                         enable(1)
Impressum