Informix

nested-group-icon.png

DB2

Expand all | Collapse all

A bit of reverse engineering on oncmsm

  • 1.  A bit of reverse engineering on oncmsm

    Posted Tue February 18, 2020 06:25 PM
    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
    ------------------------------


  • 2.  RE: A bit of reverse engineering on oncmsm

    Posted Tue February 18, 2020 11:46 PM
    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
    ------------------------------



  • 3.  RE: A bit of reverse engineering on oncmsm

    Posted Sat June 06, 2020 08:26 PM


    Perhaps use lsof and see if the connection manager still has the configuration file open?

    Regards,
    David.



    ------------------------------
    David Williams
    ------------------------------



  • 4.  RE: A bit of reverse engineering on oncmsm

    Posted 15 days ago
    Edited by Kirit Rana 15 days ago
    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
    ------------------------------



  • 5.  RE: A bit of reverse engineering on oncmsm

    Posted 5 days ago

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



  • 6.  RE: A bit of reverse engineering on oncmsm

    Posted 5 days ago
    Doh! Yes, forgot the "-ef".


    ------------------------------
    Kirit Rana
    ------------------------------



  • 7.  RE: A bit of reverse engineering on oncmsm

    Posted 15 hours ago
    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
    ------------------------------