8 character limit for ipcs command , any way to increase # of chars ?
Hello All,
We have a working script which identifies and kills ipcs resources which havent been correctly killed during normal shutdowns.
It is working fine and dandy however there are some issues now.
Environment:
Problem :
Our target search string has increased by 1 character from 8 chars to 9. What I am observing @ this point is the ipcs -a | grep (9 char string) is returning blank results. The increase in characters is due to new naming conventions. So while it may be easy to say , "simply use an 8 char database", in practicality it is over my head.
Desired Solution:
I need to find a way to get ipcs to be able to identify resources associated with a 9 char search string. From what I have read so far I havent dug up an environment var or quick fix for this issue. I have also dug through a few posts here in the forum in the hopes of finding a solution.
Code Example:
a) Working:
b) Not working
Anything you can offer is appreciated!
There are logic tweaks I can make to the script however out of curiosity I would like to learn more about ipcs on solaris. Constantly hungry for skills!
Thank you!
Last edited by Scott; 08-29-2013 at 08:00 PM..
Reason: Code tags
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)
Is there a limit of 512Mb when doing a "chfs -a size=XXXXX /myfs" ?
I managed to increase /var to 512MB fine, no issues, then i wanted to increase /usr to 2Gb, but when i enter:
# chfs -a size=2260992 /usr
chfs: 0506-908 Cannot reduce size... (5 Replies)
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)
Hi
I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line?
My problem is that I have a really long line of text from a file (300+ bytes) which i have to "echo" and process by adding commands like "sed" to the end of the line, like... (5 Replies)
:wall:Dear Solaris 10 Specialists,
I am having difficulty trying to increase the soft stack limit to 16384 for user george on this Solaris 10 SunFire Sparc server as follows:
$ uname -a
SunOS galactica 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220
% id -p ... (3 Replies)
Discussion started by: gjackson123
3 Replies
LEARN ABOUT XFREE86
ipcs
IPCS(1) User Commands IPCS(1)NAME
ipcs - show information on IPC facilities
SYNOPSIS
ipcs [options]
DESCRIPTION
ipcs shows information on the inter-process communication facilities for which the calling process has read access. By default it shows
information about all three resources: shared memory segments, message queues, and semaphore arrays.
OPTIONS -i, --id id
Show full details on just the one resource element identified by id. This option needs to be combined with one of the three
resource options: -m, -q or -s.
-h, --help
Display help text and exit.
-V, --version
Display version information and exit.
Resource options
-m, --shmems
Write information about active shared memory segments.
-q, --queues
Write information about active message queues.
-s, --semaphores
Write information about active semaphore sets.
-a, --all
Write information about all three resources (default).
Output formats
Of these options only one takes effect: the last one specified.
-c, --creator
Show creator and owner.
-l, --limits
Show resource limits.
-p, --pid
Show PIDs of creator and last operator.
-t, --time
Write time information. The time of the last control operation that changed the access permissions for all facilities, the time of
the last msgsnd(2) and msgrcv(2) operations on message queues, the time of the last shmat(2) and shmdt(2) operations on shared mem-
ory, and the time of the last semop(2) operation on semaphores.
-u, --summary
Show status summary.
Representation
These affect only the -l (--limits) option.
-b, --bytes
Print sizes in bytes.
--human
Print sizes in human-readable format.
SEE ALSO ipcmk(1), ipcrm(1), msgrcv(2), msgsnd(2), semget(2), semop(2), shmat(2), shmdt(2), shmget(2)CONFORMING TO
The Linux ipcs utility is not fully compatible to the POSIX ipcs utility. The Linux version does not support the POSIX -a, -b and -o
options, but does support the -l and -u options not defined by POSIX. A portable application shall not use the -a, -b, -o, -l, and -u
options.
AUTHOR
Krishna Balasubramanian <balasub@cis.ohio-state.edu>
AVAILABILITY
The ipcs command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-
linux/>.
util-linux July 2014 IPCS(1)