# Troubleshooting # AES - TSAPI logging In the last entry we worked with AES, CM and TSAPI cti links, this entry will be short but we will show how to locate AES logs and how to enable TSAPI debugging. Logs can be seen using the web page navigate to **Status -> Logs -> Error Logs**:
![](https://whereismyvoicepacket.com/wp-content/uploads/2022/10/image-407.png)
They can be checked one by one or do a download to your PC, but logs can also be located in: ***/var/log/avaya/aes/***
![](https://whereismyvoicepacket.com/wp-content/uploads/2022/10/image-408.png)
Sometimes it’s useful enabling debugging for TSAPI, the best way to do it is: ***Status -> Log Manager -> Trace Logging Levels -> TSAPI Service -> Everything on***
![](https://whereismyvoicepacket.com/wp-content/uploads/2022/10/image-409.png)
When enabled a new folder is created in the path ***/var/log/avaya/aes/TSAPI*** lets make a TSAPI Test using the web page but typing the wrong password:
![](https://whereismyvoicepacket.com/wp-content/uploads/2022/10/image-410.png)
Now lets verify the logs (TSAPI Service log is set to disabled now): The first thing to notice is that there is a new folder
![](https://whereismyvoicepacket.com/wp-content/uploads/2022/10/image-411.png)
There are two types of logs generated one for the communication to the CM and a different one for the 3rd party application:
![](https://whereismyvoicepacket.com/wp-content/uploads/2022/10/image-412.png)
As the password was set incorrectly lets verify the csta\_trace.out log and look for that error:
![](https://whereismyvoicepacket.com/wp-content/uploads/2022/10/image-413.png)
[Source: https://whereismyvoicepacket.com/aes-logging/](https://whereismyvoicepacket.com/aes-logging/) # AES - useful commands Here is a list of useful commands in Avaya AES. **Checking services** ``` service aesvcsSpiritAgent status service subagent1 status service subagent2 status service snmpd status systemctl status aesvcsSpiritAgent systemctl status subagent1 systemctl status subagent2 systemctl status snmpd ``` **Information** ``` swversion cat /etc/os-release uname -r df -h hostname who reboot shutdown -r now ``` **Networking info** ``` ifconfig route -n iptables -L --line-numbers netstat -nao | grep 8443 netstat -plnt | grep 0.0.0.0 /opt/mvap/bin/netconfig ``` **Administration** ``` wget https://x.x.x.x:8443 cat /etc/hosts cat /etc/hosts.allow cat /etc/hosts.deny find / -iname sms_test.php ``` **Important file/folders** ``` ls /var/log/avaya/aes/ cat /var/lib/net-snmp/snmpd.conf vi /opt/mvap/conf/javaManager.properties ls /opt/coreservices/avaya/certs/ -ltr cat /opt/coreservices/certmgmt/conf/certmgmt.conf ``` **IP Table administration** ``` iptables -S | grep 8443 iptables -L --line-numbers iptables -D INPUT 1 sudo iptables -I INPUT 1 -p tcp -s 10.191.33.168 --dport 8443 -j ACCEPT ``` [Source: https://whereismyvoicepacket.com/avaya-aes-admin-task-useful-commands/](https://whereismyvoicepacket.com/avaya-aes-admin-task-useful-commands/) # Retrieve CTI desktop log from agent machine “Retrieve the CTI desktop log from agent machine.” There is a CTI log that gets saved on the Agent’s machine that dumps a trace of CTI activity. This log can help in determining login issues or connection issues and may explain why the agent either cannot login or does not see the CTI pop-up.
1. Search for the Command Prompt and select it.
![cid:image008.jpg@01D55E54.D80BE660](https://wiki.tinod.net/uploads/images/gallery/2023-10/0SY5HdkZ5JXWuX55-embedded-image-lpdv34st.jpeg)
2. When you get the black screen, enter “ECHO %TEMP%”. This will provide the path to the temporary folder where the CTI Log is located.
![cid:image001.jpg@01D5626D.95641860](https://wiki.tinod.net/uploads/images/gallery/2023-10/pA5iviZFWrMuAmnr-embedded-image-jal2asbz.jpeg)
3. Open Windows Explorer and follow the path shown in the black screen to find the file “JavaCTIClient.log”
![cid:image002.jpg@01D5626D.95641860](https://wiki.tinod.net/uploads/images/gallery/2023-10/m8Hl0nz0Kd2QVNBb-embedded-image-b220zbub.jpeg) NOTE: The App Data folder may be a hidden folder and the rep may not be able to see it. If they can’t see it, see instructions below. To view hidden files and folders in Windows 7 1. Select the Start button, then select Control Panel > Appearance and Personalization. 2. Select Folder Options, then select the View tab. 3. Under Advanced settings, select Show hidden files, folders, and drives, and then select OK. To view hidden files and folders in Windows 10 1. Open File Explorer from the taskbar. 2. Select View > Options > Change folder and search options. 3. Select the View tab and, in Advanced settings, select Show hidden files, folders, and drives and OK.