


 



<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docwiki.cisco.com/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docwiki.cisco.com/w/index.php?title=Analyzing_UCCX_CLI_logs&amp;feed=atom&amp;action=history</id>
		<title>Analyzing UCCX CLI logs - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docwiki.cisco.com/w/index.php?title=Analyzing_UCCX_CLI_logs&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Analyzing_UCCX_CLI_logs&amp;action=history"/>
		<updated>2013-05-20T08:46:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Analyzing_UCCX_CLI_logs&amp;diff=28019&amp;oldid=prev</id>
		<title>Cchetty: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Analyzing_UCCX_CLI_logs&amp;diff=28019&amp;oldid=prev"/>
				<updated>2010-04-09T15:20:54Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:20, 9 April 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Cchetty</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Analyzing_UCCX_CLI_logs&amp;diff=28018&amp;oldid=prev</id>
		<title>Sakkumar at 09:40, 25 November 2009</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Analyzing_UCCX_CLI_logs&amp;diff=28018&amp;oldid=prev"/>
				<updated>2009-11-25T09:40:44Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Analyzing UCCX CLI logs ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! '''Problem Summary'''&lt;br /&gt;
| Analyzing UCCX CLI logs&lt;br /&gt;
|-&lt;br /&gt;
! '''Error Message'''&lt;br /&gt;
| NA&lt;br /&gt;
|-&lt;br /&gt;
! '''Possible Cause'''&lt;br /&gt;
| NA&lt;br /&gt;
|-&lt;br /&gt;
! '''Recommended Action'''&lt;br /&gt;
| To analyze issue with a specific CLI command follow the below mentioned steps after collecting the logs&lt;br /&gt;
* Find the point where the command was issued. For ex for a 'run uccx sql' command, the log statement would look like &lt;br /&gt;
: ''2009-11-23 18:36:03,129 INFO [main] - running command -&amp;gt; [run uccx sql db_cra select * from crsuser]''&lt;br /&gt;
* As part of the execution of the command, there would be messages such as the ones mentioned below. The important part to note here is the format of the log statement. The information which is mentioned in the log statement is as follows - Timestamp, Log level, Thread Id and then the log statement. After the command has been invoked the flow of the command can be traced using the ThreadId as the commands are executed in a single thread environment. Here the thread is is 'ClassExecutionThread'&lt;br /&gt;
: ''2009-11-23 18:36:03,202 DEBUG [ClassExecutionThread] - cmdUccxDbRunSql::executeCmd - with database = db_cra SQL=&amp;quot;select * from crsuser &amp;quot;''&lt;br /&gt;
: ''2009-11-23 18:36:03,233 DEBUG [ClassExecutionThread] - cmdUccxDbRunSql::executeCmd - Building SQL with array.length()=4, startIndex=0, endIndex=4''&lt;br /&gt;
: ''2009-11-23 18:36:03,233 DEBUG [ClassExecutionThread] - cmdUccxDbRunSql::executeCmd - Generated SQL='select * from crsuser' ''&lt;br /&gt;
* After the completion of the command as success message is displayed.&lt;br /&gt;
: ''2009-11-23 18:36:09,494 INFO [ClassExecutionThread] - cmdUtils: RESOURCEID	PROFILEID	RESOURCELOGINID	RESOURCEFIRSTNAME	RESOURCELASTNAME	EXTENSION	CAPABILITIES	PRIMARYEXTENSION	KEYPADMAPPING	RESOURCENAME	RESOURCEGROUPID	RESOURCETYPE	RESOURCESKILLMAPID	ASSIGNEDTEAMID	PRIVATEDATA	CREATEDATETIME	ACTIVE	DATEINACTIVE''&lt;br /&gt;
: ''2009-11-23 18:36:09,495 INFO [ClassExecutionThread] - cmdUccxDbRunSqlNo records found''&lt;br /&gt;
: ''2009-11-23 18:36:09,496 INFO [ClassExecutionThread] - cmdUccxDbRunSql Command successful.''&lt;br /&gt;
: ''2009-11-23 18:36:09,496 INFO [ClassExecutionThread] - The Command Status:  command successful.''&lt;br /&gt;
* If there is an error while executing the command the cause of the error and the details would be logged.&lt;br /&gt;
* Another command is being run&lt;br /&gt;
: ''2009-11-23 18:39:07,079 INFO [main] - running command -&amp;gt; [run uccx sql db_cra select sessionid,sessionseqno,startdatetype,enddatetime from ContactCallDetail order by startdatetime desc]''&lt;br /&gt;
: ''2009-11-23 18:39:07,139 DEBUG [ClassExecutionThread] - cmdUccxDbRunSql::executeCmd - with database = db_cra SQL=&amp;quot;select sessionid,sessionseqno,startdatetype,enddatetime from ContactCallDetail order by startdatetime desc &amp;quot; ''&lt;br /&gt;
: ''2009-11-23 18:39:07,139 DEBUG [ClassExecutionThread] - cmdUccxDbRunSql::executeCmd - Building SQL with array.length()=8, startIndex=0, endIndex=8 ''&lt;br /&gt;
: ''2009-11-23 18:39:07,139 DEBUG [ClassExecutionThread] - cmdUccxDbRunSql::executeCmd - Generated SQL='select sessionid,sessionseqno,startdatetype,enddatetime from ContactCallDetail order by startdatetime desc' ''&lt;br /&gt;
&lt;br /&gt;
* The command fails because of an invalid SQL statement (invalid column) which is clearly mentioned below.&lt;br /&gt;
: ''2009-11-23 18:39:07,156 ERROR [ClassExecutionThread] - SQL Exception while accessing DB. ''&lt;br /&gt;
:: ''java.sql.SQLException: Column (sessionseqno) not found in any table in the query (or SLV is undefined). ''&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3171) ''&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3484) ''&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2328)&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2244)&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1142)&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxPreparedStatement.e(IfxPreparedStatement.java:318)&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxPreparedStatement.a(IfxPreparedStatement.java:298)&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxPreparedStatement.&amp;lt;init&amp;gt;(IfxPreparedStatement.java:168)&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxSqliConnect.h(IfxSqliConnect.java:5939)&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxSqliConnect.prepareStatement(IfxSqliConnect.java:2020)&lt;br /&gt;
:::: ''	at com.cisco.iptplatform.cli.cmdUccxDbRunSql.runQueryAndGenerateResults(cmdUccxDbRunSql.java:315)&lt;br /&gt;
:::: ''	at com.cisco.iptplatform.cli.cmdUccxDbRunSql.executeCmd(cmdUccxDbRunSql.java:214)&lt;br /&gt;
:::: ''	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br /&gt;
:::: ''	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;br /&gt;
:::: ''	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;br /&gt;
:::: ''	at java.lang.reflect.Method.invoke(Method.java:597)&lt;br /&gt;
:::: ''	at com.cisco.iptplatform.cli.cmdClassThread.run(cmdClassThread.java:110)&lt;br /&gt;
:: ''Caused by: java.sql.SQLException&lt;br /&gt;
:::: ''	at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:395)&lt;br /&gt;
:::: ''	at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3489)&lt;br /&gt;
:::: ''	... 15 more&lt;br /&gt;
&lt;br /&gt;
* The message which is printed on the CLI console is displayed below. The investigation can also be started by searching for the error message which is displayed on the console.&lt;br /&gt;
: ''2009-11-23 18:39:07,158 INFO [ClassExecutionThread] - cmdUccxDbRunSqlInternal CLI Error: java.sql.SQLException: Column (sessionseqno) not found in any table in the query (or SLV is undefined). ''&lt;br /&gt;
&lt;br /&gt;
* The command fails&lt;br /&gt;
: ''2009-11-23 18:39:07,158 INFO [ClassExecutionThread] - cmdUccxDbRunSql Command failed. ''&lt;br /&gt;
: ''2009-11-23 18:39:07,158 INFO [ClassExecutionThread] - The Command Status:  command failed. ''&lt;br /&gt;
: ''2009-11-23 18:39:07,158 INFO [ClassExecutionThread] - message:  Command failed. ''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! '''Release'''&lt;br /&gt;
| Release 8.0(1) &lt;br /&gt;
|-&lt;br /&gt;
! '''Associated CDETS #'''&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Unified CCX, Release 8.0]]&lt;/div&gt;</summary>
		<author><name>Sakkumar</name></author>	</entry>

	</feed>