I thought some of these might come in handy, based on recent requests... Use them at your own risk - always apply as READ ONLY - and [u]never[/u] use PL/SQL Scripts to UPDATE the cfg database:
List Agent Login ID's:
[color=blue]SELECT CFG_PERSON.FIRST_NAME,
CFG_PERSON.LAST_NAME,
CFG_PERSON.USER_NAME,
CFG_PERSON.EMPLOYEE_ID,
CFG_AGENT_LOGIN.LOGIN_CODE
FROM CFG_PERSON
INNER JOIN CFG_LOGIN_INFO
ON CFG_PERSON.DBID = CFG_LOGIN_INFO.PERSON_DBID
INNER JOIN CFG_AGENT_LOGIN
ON CFG_LOGIN_INFO.AGENT_LOGIN_DBID = CFG_AGENT_LOGIN.DBID
ORDER BY CFG_PERSON.USER_NAME[/color]
List Agent Skills and Skill Levels:
[color=blue]SELECT CFG_PERSON.FIRST_NAME,
CFG_PERSON.LAST_NAME,
CFG_PERSON.USER_NAME,
CFG_PERSON.EMPLOYEE_ID,
CFG_SKILL.NAME,
CFG_SKILL_LEVEL.LEVEL_
FROM CFG_PERSON
INNER JOIN CFG_SKILL_LEVEL
ON CFG_PERSON.DBID = CFG_SKILL_LEVEL.PERSON_DBID
INNER JOIN CFG_SKILL
ON CFG_SKILL_LEVEL.SKILL_DBID = CFG_SKILL.DBID
ORDER BY CFG_PERSON.USER_NAME[/color]
List Agent / Switch:
[color=blue]SELECT CFG_AGENT_LOGIN.LOGIN_CODE,
CFG_PERSON.FIRST_NAME,
CFG_PERSON.LAST_NAME,
CFG_PERSON.EMPLOYEE_ID,
CFG_PERSON.USER_NAME,
CFG_SWITCH.NAME AS "SWITCH NAME"
FROM CFG_AGENT_LOGIN
INNER JOIN CFG_LOGIN_INFO
ON CFG_LOGIN_INFO.AGENT_LOGIN_DBID = CFG_AGENT_LOGIN.DBID
INNER JOIN CFG_PERSON
ON CFG_LOGIN_INFO.PERSON_DBID = CFG_PERSON.DBID
INNER JOIN CFG_SWITCH
ON CFG_AGENT_LOGIN.SWITCH_DBID = CFG_SWITCH.DBID
ORDER BY "SWITCH NAME",
CFG_PERSON.USER_NAME[/color]
List Applications, Ports, Hosts and IP Address:
[color=blue]SELECT DISTINCT CFG_APPLICATION.NAME AS "APPLICATION NAME",
CFG_HOST.NAME AS "HOST NAME",
CFG_SERVER.PORT,
CFG_HOST.IP_ADDRESS
FROM CFG_APPLICATION
INNER JOIN CFG_SERVER
ON CFG_APPLICATION.DBID = CFG_SERVER.APP_DBID
INNER JOIN CFG_HOST
ON CFG_SERVER.HOST_DBID = CFG_HOST.DBID[/color]
List Applications, Port, Host, IP with all of the available Options that may be configured:
[color=blue]SELECT DISTINCT CFG_APPLICATION.NAME AS "APPLICATION NAME",
CFG_HOST.NAME AS "HOST NAME",
CFG_SERVER.PORT,
CFG_HOST.IP_ADDRESS,
CFG_APP_OPTION.OPT AS OPTIONS
FROM CFG_APPLICATION
INNER JOIN CFG_SERVER
ON CFG_APPLICATION.DBID = CFG_SERVER.APP_DBID
INNER JOIN CFG_HOST
ON CFG_SERVER.HOST_DBID = CFG_HOST.DBID
INNER JOIN CFG_APP_OPTION
ON CFG_APP_OPTION.OBJECT_DBID = CFG_APPLICATION.DBID[/color]
List the (SCI) Alarm Conditions:
[color=blue]SELECT DISTINCT CFG_ALARM_CONDTN.NAME AS "ALARM CONDITION NAME",
CFG_ALARM_CONDTN.DESCRIPTION,
CFG_ALARM_CONDTN.CATEGORY,
CFG_ALARM_CONDTN.CLEARANCE_TIMEOUT,
CFG_ALARM_CONDTN.STATE
FROM CFG_ALARM_CONDTN[/color]
Query the (Outbound) Calling Lists and associated Filters, Formats and Table Access:
[color=blue]SELECT DISTINCT *
FROM CFG_CALLING_LIST
INNER JOIN CFG_FILTER
ON CFG_CALLING_LIST.FILTER_DBID = CFG_FILTER.DBID
INNER JOIN CFG_FORMAT
ON CFG_FILTER.FORMAT_DBID = CFG_FORMAT.DBID
INNER JOIN CFG_TABLE_ACCESS
ON CFG_TABLE_ACCESS.FORMAT_DBID = CFG_FORMAT.DBID
WHERE 'xxxxxxxxxxxx' = 'XXXXXXXXXXX'[/color]