Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man1 / ipcs.1
blobd029b52b529292743a9ba153be7c7130c3d430f6
1 '\" te
2 .\"  Copyright 1989 AT&T
3 .\" Copyright (c) 2008, Sun Microsystems, Inc.  All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH IPCS 1 "Jan 17, 2008"
8 .SH NAME
9 ipcs \- report inter-process communication facilities status
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBipcs\fR [\fB-aAbciJmopqstZ\fR] [\fB-D\fR \fImtype\fR] [\fB-z\fR \fIzone\fR]
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 The \fBipcs\fR utility prints information about active inter-process
20 communication facilities. The information that is displayed is controlled by
21 the options supplied. Without options, information is printed in short format
22 for message queues, shared memory, and semaphores that are currently active in
23 the system.
24 .SH OPTIONS
25 .sp
26 .LP
27 The following options are supported:
28 .sp
29 .ne 2
30 .na
31 \fB\fB-m\fR\fR
32 .ad
33 .RS 6n
34 Prints information about active shared memory segments.
35 .RE
37 .sp
38 .ne 2
39 .na
40 \fB\fB-q\fR\fR
41 .ad
42 .RS 6n
43 Prints information about active message queues.
44 .RE
46 .sp
47 .ne 2
48 .na
49 \fB\fB-s\fR\fR
50 .ad
51 .RS 6n
52 Prints information about active semaphores.
53 .RE
55 .sp
56 .LP
57 If \fB-m\fR, \fB-q\fR, or \fB-s\fR are specified, information about only those
58 indicated is printed. If none of these three is specified, information about
59 all three is printed subject to these options:
60 .sp
61 .ne 2
62 .na
63 \fB\fB-a\fR\fR
64 .ad
65 .RS 12n
66 Uses all XCU5 print options. (This is a shorthand notation for \fB-b\fR,
67 \fB-c\fR, \fB-o\fR, \fB-p\fR, and \fB-t\fR.)
68 .RE
70 .sp
71 .ne 2
72 .na
73 \fB\fB-A\fR\fR
74 .ad
75 .RS 12n
76 Uses all print options. (This is a shorthand notation for \fB-b\fR, \fB-c\fR,
77 \fB-i\fR, \fB-J\fR, \fB-o\fR, \fB-p\fR, and \fB-t\fR.)
78 .RE
80 .sp
81 .ne 2
82 .na
83 \fB\fB-b\fR\fR
84 .ad
85 .RS 12n
86 Prints information on biggest allowable size: maximum number of bytes in
87 messages on queue for message queues, size of segments for shared memory, and
88 number of semaphores in each set for semaphores. See below for meaning of
89 columns in a listing.
90 .RE
92 .sp
93 .ne 2
94 .na
95 \fB\fB-c\fR\fR
96 .ad
97 .RS 12n
98 Prints creator's login name and group name. See below.
99 .RE
102 .ne 2
104 \fB\fB-D\fR \fImtype\fR\fR
106 .RS 12n
107 Displays, in hexadecimal and \fBASCII\fR, the contents of all messages of type
108 \fImtype\fR found on any message queue that the user invoking \fBipcs\fR has
109 permission to read. If \fImtype\fR is \fB0\fR, all messages are displayed. If
110 \fImtype\fR is negative, all messages with type less than or equal to the
111 absolute value of \fImtype\fR are displayed. (See \fBmsgrcv\fR(2) and
112 \fBmsgsnap\fR(2)).
116 .ne 2
118 \fB\fB-i\fR\fR
120 .RS 12n
121 Prints number of \fBISM\fR attaches to shared memory segments.
125 .ne 2
127 \fB\fB-J\fR\fR
129 .RS 12n
130 Prints the creator's project.
134 .ne 2
136 \fB\fB-o\fR\fR
138 .RS 12n
139 Prints information on outstanding usage: number of messages on queue and total
140 number of bytes in messages on queue for message queues and number of processes
141 attached to shared memory segments.
145 .ne 2
147 \fB\fB-p\fR\fR
149 .RS 12n
150 Prints process number information: process \fBID\fR of last process to send a
151 message, process \fBID\fR of last process to receive a message on message
152 queues, process \fBID\fR of creating process, and process \fBID\fR of last
153 process to attach or detach on shared memory segments. See below.
157 .ne 2
159 \fB\fB-t\fR\fR
161 .RS 12n
162 Prints time information: time of the last control operation that changed the
163 access permissions for all facilities, time of last \fBmsgsnd\fR(2) and last
164 \fBmsgrcv\fR(2) on message queues, time of last \fBshmat\fR(2) and last
165 \fBshmdt\fR(2) on shared memory (see \fBshmop\fR(2)), time of last
166 \fBsemop\fR(2) on semaphores. See below.
170 .ne 2
172 \fB\fB-z\fR \fIzone\fR\fR
174 .RS 12n
175 Prints information about facilities associated with the specified zone (see
176 \fBzones\fR(5)). The zone can be specified as either a name or a numeric id.
177 The default is to display information about the zone in which the command is
178 executing. Notice that this option is only useful when executing in the global
179 zone.
183 .ne 2
185 \fB\fB-Z\fR\fR
187 .RS 12n
188 When executing in the global zone, prints information about all zones.
189 Otherwise, prints information about the zone in which the command is executing.
190 The output includes the zone associated with each facility.
195 The column headings and the meaning of the columns in an \fBipcs\fR listing are
196 given below. The letters in parentheses indicate the options that cause the
197 corresponding heading to appear and "all" means that the heading always
198 appears. \fBNote:\fR These options only determine what information is provided
199 for each facility; they do not determine which facilities are listed.
201 .ne 2
203 \fB\fBT\fR (all)\fR
205 .RS 19n
206 Type of the facility:
208 .ne 2
210 \fB\fBq\fR\fR
212 .RS 5n
213 message queue
217 .ne 2
219 \fB\fBm\fR\fR
221 .RS 5n
222 shared memory segment
226 .ne 2
228 \fB\fBs\fR\fR
230 .RS 5n
231 semaphore
237 .ne 2
239 \fB\fBID\fR (all)\fR
241 .RS 19n
242 The identifier for the facility entry.
246 .ne 2
248 \fB\fBKEY\fR (all)\fR
250 .RS 19n
251 The key used as an argument to \fBmsgget\fR(2), \fBsemget\fR(2), or
252 \fBshmget\fR(2) to create the facility entry. (\fBNote:\fR The  key of a shared
253 memory segment is changed to \fBIPC_PRIVATE\fR when the segment has been
254 removed until all processes attached to the segment detach it.)
258 .ne 2
260 \fB\fBMODE\fR (all)\fR
262 .RS 19n
263 The facility access modes and flags: The mode consists of 11 characters that
264 are interpreted as follows. The first two characters are:
266 .ne 2
268 \fB\fBR\fR\fR
270 .RS 5n
271 A process is waiting on a \fBmsgrcv\fR(2).
275 .ne 2
277 \fB\fBS\fR\fR
279 .RS 5n
280 A process is waiting on a \fBmsgsnd\fR(2).
284 .ne 2
286 \fB\fB-\fR\fR
288 .RS 5n
289 The corresponding special flag is not set.
292 The next nine characters are interpreted as three sets of three bits each. The
293 first set refers to the owner's permissions; the next to permissions of others
294 in the user-group of the facility entry; and the last to all others. Within
295 each set, the first character indicates permission to read, the second
296 character indicates permission to write or alter the facility entry, and the
297 last character is currently unused.
299 The permissions are indicated as follows:
301 .ne 2
303 \fB\fBr\fR\fR
305 .RS 8n
306 Read permission is granted.
310 .ne 2
312 \fB\fBw\fR\fR
314 .RS 8n
315 Write permission is granted.
319 .ne 2
321 \fB\fBa\fR\fR
323 .RS 8n
324 Alter permission is granted.
328 .ne 2
330 \fB\fB\(mi\fR\fR
332 .RS 8n
333 The indicated permission is not granted.
339 .ne 2
341 \fB\fBOWNER\fR (all)\fR
343 .RS 19n
344 The login name of the owner of the facility entry.
348 .ne 2
350 \fB\fBGROUP\fR (all)\fR
352 .RS 19n
353 The group name of the group of the owner of the facility entry.
357 .ne 2
359 \fB\fBCREATOR\fR (a,A,c)\fR
361 .RS 19n
362 The login name of the creator of the facility entry.
366 .ne 2
368 \fB\fBCGROUP\fR (a,A,c)\fR
370 .RS 19n
371 The group name of the group of the creator of the facility entry.
375 .ne 2
377 \fB\fBCBYTES\fR (a,A,o)\fR
379 .RS 19n
380 The number of bytes in messages currently outstanding on the associated message
381 queue.
385 .ne 2
387 \fB\fBQNUM\fR (a,A,o)\fR
389 .RS 19n
390 The number of messages currently outstanding on the associated message queue.
394 .ne 2
396 \fB\fBQBYTES\fR (a,A,b)\fR
398 .RS 19n
399 The maximum number of bytes allowed in messages outstanding on the associated
400 message queue.
404 .ne 2
406 \fB\fBLSPID\fR (a,A,p)\fR
408 .RS 19n
409 The process \fBID\fR of the last process to send a message to the associated
410 queue.
414 .ne 2
416 \fB\fBLRPID\fR (a,A,p)\fR
418 .RS 19n
419 The process \fBID\fR of the last process to receive a message from the
420 associated queue.
424 .ne 2
426 \fB\fBSTIME\fR (a,A,t)\fR
428 .RS 19n
429 The time the last message was sent to the associated queue.
433 .ne 2
435 \fB\fBRTIME\fR (a,A,t)\fR
437 .RS 19n
438 The time the last message was received from the associated queue.
442 .ne 2
444 \fB\fBCTIME\fR (a,A,t)\fR
446 .RS 19n
447 The time when the associated entry was created or changed.
451 .ne 2
453 \fB\fBISMATTCH\fR (a,i)\fR
455 .RS 19n
456 The number of \fBISM\fR attaches to the associated shared memory segments.
460 .ne 2
462 \fB\fBNATTCH\fR (a,A,o)\fR
464 .RS 19n
465 The number of processes attached to the associated shared memory segment.
469 .ne 2
471 \fB\fBSEGSZ\fR (a,A,b)\fR
473 .RS 19n
474 The size of the associated shared memory segment.
478 .ne 2
480 \fB\fBCPID\fR (a,A,p)\fR
482 .RS 19n
483 The process \fBID\fR of the creator of the shared memory entry.
487 .ne 2
489 \fB\fBLPID\fR (a,A,p)\fR
491 .RS 19n
492 The process \fBID\fR of the last process to attach or detach the shared memory
493 segment.
497 .ne 2
499 \fB\fBATIME\fR (a,A,t)\fR
501 .RS 19n
502 The time the last attach was completed to the associated shared memory segment.
506 .ne 2
508 \fB\fBDTIME\fR (a,A,t)\fR
510 .RS 19n
511 The time the last detach was completed on the associated shared memory segment.
515 .ne 2
517 \fB\fBNSEMS\fR (a,A,b)\fR
519 .RS 19n
520 The number of semaphores in the set associated with the semaphore entry.
524 .ne 2
526 \fB\fBOTIME\fR (a,A,t)\fR
528 .RS 19n
529 The time the last semaphore operation was completed on the set associated with
530 the semaphore entry.
534 .ne 2
536 \fB\fBPROJECT\fR (J,A)\fR
538 .RS 19n
539 The project name of the creator of the facility entry.
543 .ne 2
545 \fB\fBZONE\fR (Z)\fR
547 .RS 19n
548 The zone with which the facility is associated.
551 .SH ENVIRONMENT VARIABLES
554 See \fBenviron\fR(5) for descriptions of the following environment variables
555 that affect the execution of  \fBipcs\fR: \fBLANG\fR, \fBLC_ALL\fR,
556 \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
558 .ne 2
560 \fB\fBTZ\fR\fR
562 .RS 6n
563 Determine the timezone for the time strings written by \fBipcs\fR.
566 .SH FILES
568 .ne 2
570 \fB\fB/etc/group\fR\fR
572 .RS 15n
573 group names
577 .ne 2
579 \fB\fB/etc/passwd\fR\fR
581 .RS 15n
582 user names
585 .SH ATTRIBUTES
588 See \fBattributes\fR(5) for descriptions of the following attributes:
593 box;
594 c | c
595 l | l .
596 ATTRIBUTE TYPE  ATTRIBUTE VALUE
598 Interface Stability     Committed
600 Standard        See \fBstandards\fR(5).
603 .SH SEE ALSO
606 \fBipcrm\fR(1), \fBmsgget\fR(2), \fBmsgids\fR(2), \fBmsgrcv\fR(2),
607 \fBmsgsnap\fR(2), \fBmsgsnd\fR(2), \fBsemget\fR(2), \fBsemids\fR(2),
608 \fBsemop\fR(2), \fBshmctl\fR(2), \fBshmget\fR(2), \fBshmids\fR(2),
609 \fBshmop\fR(2), \fBattributes\fR(5), \fBenviron\fR(5), \fBstandards\fR(5),
610 \fBzones\fR(5)
611 .SH NOTES
614 Things can change while \fBipcs\fR is running. The information it gives is
615 guaranteed to be accurate only when it was retrieved.