We can check the details of system V message queue with the help of
ipcscommand. Is there any command to check POSIX message queue in Linux?
migrated from serverfault.com Apr 2 '13 at 7:31
This question came from our site for professional system and network administrators.
There is no command I know of but there exists a libc function call which can get the statistics:
man 3 mq_getattr
If you're lucky enough to use HP-UX, the command
If you have
So the answer should be "mount the mqueue FS and use
(Mounting the mqueue FS is not a prerequisite for using the MQ API, it just lets you do some "everything is a file" stuff.)
If you really need to monitor queues, the book The Linux Programming Interface has the C source code for various CLI tools to create, inspect and use message queues. Happily chapter 52 of the book which covers this topic is currently available free to download. See
The canonical reference code from Stephen's Unix Network Programming (Vol 2) 2nd Ed. (1999) is available here, it provides amongst other things