Sponsored Content
Full Discussion: Ipcs do not show MODE
Top Forums UNIX for Advanced & Expert Users Ipcs do not show MODE Post 302851705 by migurus on Monday 9th of September 2013 01:31:31 PM
Old 09-09-2013
Ipcs do not show MODE

The ipcs -q command output includes a MODE column which tells user if the process is waiting on read or write on the queue. I used this in scripts on many systems (Solaris, AIX, SCO)

a snippet from man
Code:
 
MODE (all)
       The facility access modes and flags: The mode consists of
       11 characters that are interpreted as follows:
       The first two characters are:
     R
            if a process is waiting on a msgrcv;
     S
            if a process is waiting on a msgsnd;

output example
Code:
 
T     ID     KEY        MODE       OWNER    GROUP
Message Queues:
q      0 0x012a9fc2 -Rrw-rw-rw-     root     root

I run ipcs -q on Ubuntu 12.04 and the mode information is missing.

Is this peculiarity of Ubuntu, or all Linux distros are the same?

Note to administrators - I am not sure where to post this question, please move as you feel it best fit.

Last edited by migurus; 09-09-2013 at 03:00 PM.. Reason: typo
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ipcs command

Does anyone know how to set the variables with the ipcs command? I need to set the following variables: Shared memory segments message queues semaphore arrays all of these (1 Reply)
Discussion started by: Deuce
1 Replies

2. Programming

System V and POSIX IPCs

I am using SUN 0S 5.7. My application has a dozen programs running in this machine, each instance of a program having 2 POSIX message queues for itself. Totally around 90 POSIX message queues. Another small application uses a SYSTEM V shared memory and a message queue. We face a problem... (1 Reply)
Discussion started by: Deepa
1 Replies

3. Programming

ipcs shows no result in cygwin

Hi, With reference to the thread below: https://www.unix.com/showthread.php?s=&threadid=13247 I have the same program on Cygwin ( unfortuantely win ;( ) My program runs ( offcourse with undesired output) The semget does not give any error, tho I have trapped in case if there is one.... (0 Replies)
Discussion started by: linuxpenguin
0 Replies

4. AIX

ipcs command with out output

hello i'm running on aix 5300-08-02-0822 hacmp 4 when i run ipcs command there is nio output. some one got this problem? best regards ariec (1 Reply)
Discussion started by: ariec
1 Replies

5. Solaris

ipcs Help

hi, I need help with ipcs command on Solaris. What does it do and what are options b,m,o,q does. Here is the sample output of ipcs -oq and ipcs -bm IPC status from <running system> as of Sun Sep 7 23:07:59 GMT 2008 T ID KEY MODE OWNER GROUP CBYTES QNUM... (4 Replies)
Discussion started by: krabu
4 Replies

6. Solaris

Non-Root mode ... luxadm to show path(s) for Disks

Hi Gurus out there... I am pondering over a situation where I have non-root access (user account), where I am trying to determine paths (including multipaths) on a host. "luxadm display" seems very appropriate, but requires root access. Is there anyway I can get the FC path information? ... (1 Reply)
Discussion started by: verisund
1 Replies

7. AIX

ipcs -m displaying empty

I am trying to run myApplication which allocates Some amount of shared memory at startup. It failed because not available shared memory are available. But when i ran, ipcs -m it is displaying empty(i.e no shared memory allocated in system.) Why "ipcs -m" is displaying empty ? ... (5 Replies)
Discussion started by: ashokd001
5 Replies

8. UNIX for Advanced & Expert Users

Question on output of ipcs command

Hi, I read the ipcs man page and am still very confused. Basically, I just want to know whether the output from the ipcs command below means these are the current "TOTAL" memory usage in bytes on the server? Is this correct? Thanks in advance. ipcs command output below: # ipcs... (2 Replies)
Discussion started by: newbie_01
2 Replies

9. Solaris

IPCS COUNT clear

How to clear IPCS queue count in server? (2 Replies)
Discussion started by: Arasu123
2 Replies

10. UNIX for Advanced & Expert Users

How to relate ipcs id or cpid to process?

Hi, we have multiple database instances running on solaris server like db1, db2 and db3. Below shown ipcs -pmb shared memory segment output. Using cpid value I want to relate to the database instances db1, db2 and db3. Please let me know how to do this? $ ipcs -pmb IPC status from <running... (9 Replies)
Discussion started by: baladelaware73
9 Replies
ipcs(1) 							   User Commands							   ipcs(1)

NAME
ipcs - report inter-process communication facilities status SYNOPSIS
ipcs [-aAbciJmopqstZ] [-D mtype] [-z zone] DESCRIPTION
The ipcs utility prints information about active inter-process communication facilities. The information that is displayed is controlled by the options supplied. Without options, information is printed in short format for message queues, shared memory, and semaphores that are currently active in the system. OPTIONS
The following options are supported: -m Prints information about active shared memory segments. -q Prints information about active message queues. -s Prints information about active semaphores. If -m, -q, or -s are specified, information about only those indicated is printed. If none of these three is specified, information about all three is printed subject to these options: -a Uses all XCU5 print options. (This is a shorthand notation for -b, -c, -o, -p, and -t.) -A Uses all print options. (This is a shorthand notation for -b, -c, -i, -J, -o, -p, and -t.) -b Prints information on biggest allowable size: maximum number of bytes in messages on queue for message queues, size of segments for shared memory, and number of semaphores in each set for semaphores. See below for meaning of columns in a listing. -c Prints creator's login name and group name. See below. -D mtype Displays, in hexadecimal and ASCII, the contents of all messages of type mtype found on any message queue that the user invok- ing ipcs has permission to read. If mtype is 0, all messages are displayed. If mtype is negative, all messages with type less than or equal to the absolute value of mtype are displayed. (See msgrcv(2) and msgsnap(2)). -i Prints number of ISM attaches to shared memory segments. -J Prints the creator's project. -o Prints information on outstanding usage: number of messages on queue and total number of bytes in messages on queue for message queues and number of processes attached to shared memory segments. -p Prints process number information: process ID of last process to send a message, process ID of last process to receive a mes- sage on message queues, process ID of creating process, and process ID of last process to attach or detach on shared memory segments. See below. -t Prints time information: time of the last control operation that changed the access permissions for all facilities, time of last msgsnd(2) and last msgrcv(2) on message queues, time of last shmat(2) and last shmdt(2) on shared memory (see shmop(2)), time of last semop(2) on semaphores. See below. -z zone Prints information about facilities associated with the specified zone (see zones(5)). The zone can be specified as either a name or a numeric id. The default is to display information about the zone in which the command is executing. Notice that this option is only useful when executing in the global zone. -Z When executing in the global zone, prints information about all zones. Otherwise, prints information about the zone in which the command is executing. The output includes the zone associated with each facility. The column headings and the meaning of the columns in an ipcs listing are given below. The letters in parentheses indicate the options that cause the corresponding heading to appear and "all" means that the heading always appears. Note: These options only determine what informa- tion is provided for each facility; they do not determine which facilities are listed. T (all) Type of the facility: q message queue m shared memory segment s semaphore ID (all) The identifier for the facility entry. KEY (all) The key used as an argument to msgget(2), semget(2), or shmget(2) to create the facility entry. (Note: The key of a shared memory segment is changed to IPC_PRIVATE when the segment has been removed until all processes attached to the segment detach it.) MODE (all) The facility access modes and flags: The mode consists of 11 characters that are interpreted as follows. The first two characters are: R A process is waiting on a msgrcv(2). S A process is waiting on a msgsnd(2). - The corresponding special flag is not set. The next nine characters are interpreted as three sets of three bits each. The first set refers to the owner's permis- sions; the next to permissions of others in the user-group of the facility entry; and the last to all others. Within each set, the first character indicates permission to read, the second character indicates permission to write or alter the facility entry, and the last character is currently unused. The permissions are indicated as follows: r Read permission is granted. w Write permission is granted. a Alter permission is granted. - The indicated permission is not granted. OWNER (all) The login name of the owner of the facility entry. GROUP (all) The group name of the group of the owner of the facility entry. CREATOR (a,A,c) The login name of the creator of the facility entry. CGROUP (a,A,c) The group name of the group of the creator of the facility entry. CBYTES (a,A,o) The number of bytes in messages currently outstanding on the associated message queue. QNUM (a,A,o) The number of messages currently outstanding on the associated message queue. QBYTES (a,A,b) The maximum number of bytes allowed in messages outstanding on the associated message queue. LSPID (a,A,p) The process ID of the last process to send a message to the associated queue. LRPID (a,A,p) The process ID of the last process to receive a message from the associated queue. STIME (a,A,t) The time the last message was sent to the associated queue. RTIME (a,A,t) The time the last message was received from the associated queue. CTIME (a,A,t) The time when the associated entry was created or changed. ISMATTCH (a,i) The number of ISM attaches to the associated shared memory segments. NATTCH (a,A,o) The number of processes attached to the associated shared memory segment. SEGSZ (a,A,b) The size of the associated shared memory segment. CPID (a,A,p) The process ID of the creator of the shared memory entry. LPID (a,A,p) The process ID of the last process to attach or detach the shared memory segment. ATIME (a,A,t) The time the last attach was completed to the associated shared memory segment. DTIME (a,A,t) The time the last detach was completed on the associated shared memory segment. NSEMS (a,A,b) The number of semaphores in the set associated with the semaphore entry. OTIME (a,A,t) The time the last semaphore operation was completed on the set associated with the semaphore entry. PROJECT (J,A) The project name of the creator of the facility entry. ZONE (Z) The zone with which the facility is associated. ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of ipcs: LANG, LC_ALL, LC_CTYPE, LC_MES- SAGES, and NLSPATH. TZ Determine the timezone for the time strings written by ipcs. FILES
/etc/group group names /etc/passwd user names ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWipc | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |Standard |See standards(5). | +-----------------------------+-----------------------------+ SEE ALSO
ipcrm(1), msgget(2), msgids(2), msgrcv(2), msgsnap(2), msgsnd(2), semget(2), semids(2), semop(2), shmctl(2), shmget(2), shmids(2), shmop(2), attributes(5), environ(5), standards(5), zones(5) NOTES
Things can change while ipcs is running. The information it gives is guaranteed to be accurate only when it was retrieved. SunOS 5.11 17 Jan 2008 ipcs(1)
All times are GMT -4. The time now is 10:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy