Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Jacob Salomon asked how to find which config file a running Connection Manager was started with. SangGyu Jeong suggested ps, or the CM log after a reload; Kirit Rana named three sysmaster CM tables. Jon Ritson noted lsof does not work and that ps -ef shows the command line, or /proc/<pid>/cmdline as root.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Jacob Salomon — source: IBM Community (ConnectedCommunity.org) Informix forum
Hi Folks.
A simple question:
I know you have to start the connection manager using the command using
omcmsm -c <config file>
. But once it's running, how do I locate the config file that was used to start it in the first place? I have not found a oncmsm --status option and onstat -g cmsm does not tell me this.
Have I missed something or is there a hack that will give me this info? A sysmaster table, perhaps?
Thanks much.
------------------------------
Jacob Salomon
---
Nobody goes there anymore, it's too crowded. --Attr: Yogi Berra
------------------------------
#Informix
↪ replying to Jacob Salomon
SangGyu Jeong — source: IBM Community (ConnectedCommunity.org) Informix forum
Hello Jacob,
I'm not sure if there is an option to check the connection manager's configuration file with oncmsm or onstat command.
If you started with the oncmsm -c option, you can check the configuration file with the ps command as shown below.
If you reloaded the configuration file with the oncmsm -r -c option, you should look in the connection manager's log file.
I would like to know if there is another way.
------------------------------
SangGyu Jeong
Software Engineer
Infrasoft
Seoul Korea, Republic of
------------------------------
↪ replying to SangGyu Jeong
David Williams — source: IBM Community (ConnectedCommunity.org) Informix forum
Perhaps use lsof and see if the connection manager still has the configuration file open?
Regards,
David.
------------------------------
David Williams
------------------------------
↪ replying to Jacob Salomon
Kirit Rana — source: IBM Community (ConnectedCommunity.org) Informix forum
Hi Jacob
If running 'ps | grep oncmsm' doesn't answer your question, then there are 3 sysmaster tables that relate to Connection Manager:
syscmsmsla
, syscmsmtab, syscmsmunit; the first of which contains the SLA details you have defined. Taking the
sla_name
column value and then doing some reverse engineering by grep'ing for that name in your Connection Manager *.cfg files may get the information that you want.
Bst Rgds
------------------------------
Kirit Rana
------------------------------
↪ replying to Kirit Rana
Jon Ritson — source: IBM Community (ConnectedCommunity.org) Informix forum
Hi.
"Perhaps use lsof and see if the connection manager still has the configuration file open?"
Although some interesting output it doesn't keep the $CMCONFIG open.
"ps | grep oncmsm" will most likely return ... nothing.
"ps -ef | grep oncmsm" will most likely return ... the command line used to start the CM.
JJ
------------------------------
Jon Ritson
------------------------------
↪ replying to Jon Ritson
Kirit Rana — source: IBM Community (ConnectedCommunity.org) Informix forum
Doh! Yes, forgot the "-ef".
------------------------------
Kirit Rana
------------------------------
↪ replying to Kirit Rana
Jon Ritson — source: IBM Community (ConnectedCommunity.org) Informix forum
An alternative to:
$ ps -ef | grep oncmsm
informix 103736 2023 0 11:36 ? 00:00:00 oncmsm -c /products/14.10.FC3/etc/cma.cfg
informix 104079 3367 0 12:09 pts/1 00:00:00 grep --color=auto oncmsm
$ su
Password:
# cat /proc/103736/cmdline
oncmsm-c/products/14.10.FC3/etc/cma.cfg#
------------------------------Jon Ritson
------------------------------
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.