" /> Question on Config DB - Genesys CTI User Forum

Author Topic: Question on Config DB  (Read 3473 times)

Offline genesysnoob

  • Full Member
  • ***
  • Posts: 103
  • Karma: -1
Question on Config DB
« on: January 22, 2015, 07:42:57 PM »
Advertisement
I always wondered Where do Config Db saves connections and other attributes related to the Application object.

In Detail, If we add a object like a person in the CME, i see a table for person in the config DB and all the details about a person are present. By running a simple query any one can get those details. When it comes to agentinfo tab details, where do i find those values, example, an agent login will be associated to agent.

Same goes with Host object, i was able to find the host table and ran a query and i got all the host machines. But how do i find what apps are installed on the hosts?

I would like to know any chance we can find out thru Config DB?



Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Question on Config DB
« Reply #1 on: January 23, 2015, 08:00:49 AM »
Yes, of course you can find out these information within CFG database. All what you can see within CME, is saved within database.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Question on Config DB
« Reply #2 on: January 23, 2015, 09:34:22 AM »
Hehe his question was more the "where" rater than "if" ;)
I have no idea, no need so far to dig it on Cfg DB, usually get it via PSDK

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Question on Config DB
« Reply #3 on: January 23, 2015, 11:41:26 AM »
I know - just joke :))

From my point of view, that is thing which can be easily founded by yourself.

Offline mduran22

  • Full Member
  • ***
  • Posts: 108
  • Karma: 5
Re: Question on Config DB
« Reply #4 on: January 23, 2015, 05:24:54 PM »
I have found it handy to run some queries in SQL vs using config manager. For example we have information on the annex tab for every single agent, so it is a bit of a pain to go through them one by one and check the annex tab (i.e. does it have the info, is it correct, etc) and a query allows that process to be expedited.

There are lots of joins throughout the database that you need to do on two or more tables sometimes to get the results you mentioned above. There is also enumerations in the locale table for different objects to turn an integer into a word.

Genesys does not support direct access into the config database so there is no formal documentation on it. As Cav mentioned the config SDK can be used and there is some documentation on that gives some insight to the objects and tables. Other then that you just have to go through each table an piece it together if you have the time and the patients.

Adam G

  • Guest
Re: Question on Config DB
« Reply #5 on: January 23, 2015, 08:26:11 PM »
You can "Read" the cfg db tables, without penalty.  You cannot "Write" to them directly (without PSDK, etc.) without invalidating warranty of their stability.

To get the Agent Login Code of an Agent:

1. JOIN [i]cfg_person.dbid[/i] -to- [i] cfg_login_info.person_dbid[/i]
2. JOIN [i] cfg_login_info.agent_login_dbid [/i] -to- [i]cfg_agent_login.dbid[/i]

Select the "Person" details you need and include [i]cfg_agent_login.login_code[/i] in your Select/Results.

Additionally;

3. JOIN [i]cfg_agent_login.switch_dbid[/i] -to- [i]cfg_switch.dbid[/i] and include [i]cfg_switch.name[/i] in your results, to enable you to select a particular (Switch) Name.

HTH?

« Last Edit: January 27, 2015, 09:36:33 PM by adamgill »

Adam G

  • Guest
Re: Question on Config DB
« Reply #6 on: January 23, 2015, 08:55:13 PM »
Part II: Hosts/Applications:

1. JOIN [i]cfg_application.dbid[/i] -to- [i]cfg_server.app_dbid[/i]
2. JOIN [i]cfg_server.host_dbid[/i] -to- [i]cfg_host.dbid[/i]

Select from [i]cfg_application.name[/i] and include [i]cfg_host.name[/i] in your Results

HTH?
« Last Edit: January 27, 2015, 09:36:56 PM by adamgill »