Ipcs do not show MODE


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Ipcs do not show MODE
# 1  
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
# 2  
Old 10-08-2013
Try the command with following option.
Code:
ipcs -a

It supposed to show the output like following. Where perms is the numerical representation of modes.
777 is equivalent to RWXRWXRWX and
461 is equivalent to R_ _ RW_ _ _ X.
Code:
------ Shared Memory Segments --------
key             shmid       owner      perms      bytes      nattch     status
0x00000000 622604      alice        777        2804160    2           dest
0x00000000 61833230   bob         777        123840     2            dest

This User Gave Thanks to techmonk For This Post:
# 3  
Old 10-09-2013
Or
Code:
ipcs -qa

for message queues only
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Solaris

IPCS COUNT clear

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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question