8980 BIOS clock is sometimes one hour fast
[unleashed.git] / usr / src / man / man1m / consadm.1m
blob6a173559c5af4bcd920e79922d133a0de5b300a3
1 '\" te
2 .\" Copyright (c) 2004 Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CONSADM 1M "Oct 27, 2004"
7 .SH NAME
8 consadm \- select or display devices used as auxiliary console devices
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/consadm\fR
13 .fi
15 .LP
16 .nf
17 \fB/usr/sbin/consadm\fR [\fB-a\fR \fIdevice\fR.\|.\|.] [\fB-p\fR]
18 .fi
20 .LP
21 .nf
22 \fB/usr/sbin/consadm\fR [\fB-d\fR \fIdevice\fR.\|.\|.] [\fB-p\fR]
23 .fi
25 .LP
26 .nf
27 \fB/usr/sbin/consadm\fR [\fB-p\fR]
28 .fi
30 .SH DESCRIPTION
31 .sp
32 .LP
33 \fBconsadm\fR selects the hardware \fIdevice\fR or devices to be used as
34 auxiliary console devices, or displays the current device. Only superusers are
35 allowed to make or display auxiliary console device selections.
36 .sp
37 .LP
38 Auxiliary console devices receive copies of \fBconsole\fR messages, and can be
39 used as the console during \fBsingle user\fR mode. In particular, they receive
40 kernel messages and messages directed to \fB/dev/sysmsg\fR. On Solaris x86
41 based systems they can also be used for interaction with the bootstrap.
42 .sp
43 .LP
44 By default, selecting a display device to be used as an auxiliary console
45 device selects that device for the duration the system remains up. If the
46 administrator needs the selection to persist across reboots the \fB-p\fR option
47 can be specified.
48 .sp
49 .LP
50 \fBconsadm\fR runs a daemon in the background, monitoring auxiliary console
51 devices. Any devices that are disconnected (hang up, lose carrier) are removed
52 from the auxiliary console device list, though not from the persistent list.
53 While auxiliary console devices may have been removed from the device list
54 receiving copies of \fBconsole\fR messages, those messages will always continue
55 to be displayed by the default console device.
56 .sp
57 .LP
58 The daemon will not run if it finds there are not any auxiliary devices
59 configured to monitor. Likewise, after the last auxiliary console is removed,
60 the daemon will shut itself down. Therefore the daemon persists for only as
61 long as auxiliary console devices remain active.
62 .sp
63 .LP
64 See \fBeeprom\fR(1M) for instructions on assigning an auxiliary console device
65 as the system console.
66 .SH OPTIONS
67 .sp
68 .LP
69 The following options are supported:
70 .sp
71 .ne 2
72 .na
73 \fB\fB-a\fR \fIdevice\fR\fR
74 .ad
75 .RS 13n
76 Adds \fIdevice\fR to the list of auxiliary console devices. Specify
77 \fIdevice\fR as the path name to the device or devices to be added to the
78 auxiliary console device list.
79 .RE
81 .sp
82 .ne 2
83 .na
84 \fB\fB-d\fR \fIdevice\fR\fR
85 .ad
86 .RS 13n
87 Removes \fIdevice\fR from the list of auxiliary console devices. Specify
88 \fIdevice\fR as the path name to the device or devices to be removed from the
89 auxiliary console device list.
90 .RE
92 .sp
93 .ne 2
94 .na
95 \fB\fB-p\fR\fR
96 .ad
97 .RS 13n
98 Prints the list of auxiliary consoles that will be auxiliary across reboots.
99 .sp
100 When invoked with the \fB-a\fR or \fB-d\fR options , tells the application to
101 make the change persist across reboot.
104 .SH EXAMPLES
106 \fBExample 1 \fRAdding to the list of devices that will receive console
107 messages
110 The following command adds \fB/dev/term/a\fR to the list of devices that will
111 receive console messages.
114 .in +2
116 example# \fBconsadm -a /dev/term/a\fR
118 .in -2
122 \fBExample 2 \fRRemoving from the list of devices that will receive console
123 messages
126 The following command removes \fB/dev/term/a\fR from the list of devices that
127 will receive console messages. This includes removal from the persistent list.
130 .in +2
132 example# \fBconsadm -d -p /dev/term/a\fR
134 .in -2
138 \fBExample 3 \fRPrinting the list of devices selected as auxiliary console
139 devices
142 The following command prints the name or names of the device or devices
143 currently selected as auxiliary console devices.
146 .in +2
148 example# \fBconsadm\fR
150 .in -2
153 .SH ENVIRONMENT VARIABLES
156 See \fBenviron\fR(5) for descriptions of the following environment variables
157 that affect the execution of \fBconsadm\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR,
158 and \fBNLSPATH\fR.
159 .SH EXIT STATUS
162 The following exit values are returned:
164 .ne 2
166 \fB\fB0\fR\fR
168 .RS 6n
169 Successful completion.
173 .ne 2
175 \fB>\fB0\fR\fR
177 .RS 6n
178 An error occurred.
181 .SH ATTRIBUTES
184 See \fBattributes\fR(5) for descriptions of the following attributes:
189 box;
190 c | c
191 l | l .
192 ATTRIBUTE TYPE  ATTRIBUTE VALUE
194 Stability Level Evolving
197 .SH SEE ALSO
200 \fBsvcs\fR(1), \fBeeprom\fR(1M), \fBsvcadm\fR(1M), \fBsyslogd\fR(1M),
201 \fBkadb\fR(1M), \fBenviron\fR(5), \fBattributes\fR(5), \fBsmf\fR(5),
202 \fBsysmsg\fR(7d), \fBconsole\fR(7d)
203 .SH NOTES
206 Auxiliary console devices are not usable for \fBkadb\fR or firmware \fBI/O\fR,
207 do not receive panic messages, and do not receive output directed to
208 \fB/dev/console\fR.
211 The \fBconsadm\fR service is managed by the service management facility,
212 \fBsmf\fR(5), under the service identifier:
214 .in +2
216 svc:/system/consadm
218 .in -2
223 Administrative actions on this service, such as enabling, disabling, or
224 requesting restart, can be performed using \fBsvcadm\fR(1M). The service's
225 status can be queried using the \fBsvcs\fR(1) command.