cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3395
Views
11
Helpful
3
Replies

UCCX SQL Query to get list of applications and their associated scripts

Gilbert.Allard
Level 1
Level 1

Looking for help in building an SQL query to return a list of UCCX applications and their associated scripts.

 

So far, all my attempts have resulted in the following error:

 

Internal CLI Error:  java.sql.SQLException: com.informix.asf.IfxASFException

 

Thanks.

 

3 Replies 3

Graham Old
Level 7
Level 7

This will get you the list of applications

run uccx sql db_cra select applicationName from crsapplication where active = 't'

This will get the list of triggers

run uccx sql db_cra select APPLICATIONNAME,TRIGGERNAME,misc1 from crstrigger where active = 't'

This will get the list of scripts

run uccx sql db_cra_repository select filename from scriptsfiletbl

Note that scripts live in the db_cra_repository and not db_cra

What I don't know is how to map the application to the script name.

Can you use the api as that will give you the application name and the script name

Graham

Thanks Graham.

 

The mapping between each application and its script(s) is really what I'm looking for.  From other posts on the web, it looks that it might resides in the CrsApplication table, in a field called privateData.  However, this field contains data that Cisco doesn't expose to customers.

 

Any other idea would be appreciated.

 

The privatedata is a binary field, if you extract it and convert it to ASCII then it looks like this

Capture.PNGIn there you can see SCRIPT[PromptRecord4.aef] which is correct

If you can get that out then your SQL skills are much better than mine

Graham