ACR CSCM Restart & Postgres Vacuum

This should perform a vacuum of the database which can take up to 30 mins

Perform at root

#cd /sbin

# ./service cscm stop

# ./service cscm start


To manually vacuum database . . .

su – postgres

(takes you to -bash-2.05$ prompt

vacuumdb -f -a

It could take a while depends on size of database, I do not know a way of monitoring this.

When it finishes carry out the stop / start above **


ACR Debug Logs

To turn the ACR debug logs on and off in ACR


http://10.x.x.x:8080/log?level=DEBUG (turns debug on)

http://10.x.x.x:8080/log?level=INFO (turns debug off)


Logs are located in:

D:\Program Files\Avaya\ContactRecorder\logs



These commands can be run by sroot:

/sbin/service ntpd status
/sbin/service ntpd start
/sbin/service ntpd stop

These commands can be run by dadmin

/usr/sbin/ntpdate -d -q
/usr/sbin/ntpq -p

-rwxr-xr-x  1 root root  431048 Apr 20  2006 ntpd
-rwxr-xr-x  1 root root   45908 Apr 20  2006 ntpdate
-rwxr-xr-x  1 root root   86940 Apr 20  2006 ntpdc
-rwxr-xr-x  1 root root   76732 Apr 20  2006 ntpq
-rwxr-xr-x  1 root root   16276 Apr 20  2006 ntptime
-rwxr-xr-x  1 root root    1837 Apr 20  2006 ntptrace

-rwxr-xr-x  1 root root      6032 Apr 20  2006 ntpstat

Man pages in linux to explain options and usage:
man ntpd
man ntpdate
man ntpdc
man ntpq
man ntptime

man ntptrace

IQ Cannot Login

Cannot Login stop and start IQ services, you can follow below:
1.       Service wdinit stop
2.       Service wdinit start
3.     ( To check the progress of services. Make sure all the services are in STARTED state.) sh /opt/Avaya/CCR/bin/ -v -w all status
** Takes about 15mins downtime **
Also check Catalina.out file if it gets too large then you need to remove it (Avaya IQ 5.2.6 patch 10 resolves it)
cd /opt/Avaya/CCR/RTD/tomcat/apache-tomcat-7.0.52/logs (-7.0.52 bit depends on your version of tomcat)
 ls –ltr
List Services UID
cd /opt/coreservices/lifecycle/bin
./lc ls
Find RTDTomcat UID for next step
./lc stop UID
./lc status UID
Go to catalina.out directory
cd /opt/Avaya/CCR/RTD/tomcat/apache-tomcat-7.0.52/logs
cp catalina.out /backup
rm catalina.out
/opt/coreservices/lifecycle/bin/lc stop UID
/opt/coreservices/lifecycle/bin/lc start UID
or navigate to the directory /opt/coreservices/lifecycle/bin
and type the following
./lc start UID
.lc status UID


Following changes in the trace mask file to collect additional DEBUG level logs from AES.This setting will help us in displaying the AES raw messages at a level deeper.

1) To turn on the traces follow the procedure give below :

  1. Logon on the AES box as sroot.

  2. Go to the path /opt/mvap/conf

  3. and vi to this file:  vi tracemask

Add the following lines to the tracemask file.


2) We need to save the log file mentioned using the save_trace script. Please following procedure for the same.

  • Login to AES as root

  • Go to the path “ cd /opt/mvap/bin

run the command “nohup save_trace <trace file name> &” as sroot/root user.

You need to run this command for all the three trace files i.e. trace.out.old(/opt/mvap/logs/common), csta_trace.out.old(in /opt/mvap/logs/TSAPI folder) and g3trace.out.old(in /opt/mvap/logs/TSAPI folder)


[root@kona TSAPI]# nohup save_trace g3trace-kahunaPBX-3.trace.out.old &

Like this you have to run it for all the three files, this will create zip files for all the trace files with extension .out.old

  • Note the number you will get after running this command as it’s the pid of the command running.

  • Double check if the command has been running successfully by typing ps –ef|grep save_trace

  • This will start zipping all the files having extension as “.out.old” and there will be multiple files created for different instances.

  • Keep monitoring the system.

  • Once the issue has occurred please kill the command by typing kill -9 <pid> this is important to stop the background process.

VV IMP Note:- please keep checking the disk space by typing “df –h” and if you find that the disk space is less, start moving old, zipped trace files from common and trans_serv folder to somewhere out side the AE services as there will be multiple zip files formed and will not be deleted.

3) Turn off the tracing once the issue occurs

  1. Logon on the AES box as sroot.

  2. Go to the path /opt/mvap/conf

  3. and vi to this file:  vi tracemask

  4. Append # against all the entries in the file

Entries will look as shown below

# TSAPI=0x00000c3f

Once all the traces are turned off Pleas collect the logs from the following directory

  • files present in the /opt/mvap/logs/TSAPI/

  • trace.out files from the /opt/mvap/logs/common

We will require the above mentioned files in sync with the MST and sniffer for the time when the issue is reported


Alternative Putty Tunnel

Following on from my post The Putty Tunnel If you need to create an ssh tunnel on a browser that doesn’t have foxy proxy installed then here is an alternative way to do it. I favour Firefox but it should work similarly on less favourable browsers 🙂

Putty / Tutty

  • Create an ssh session to CM
  • select SSH / Tunnel
  • In source port put a number i.e. 9080 click dynamci and add.
  • Click Session and save to you CM connection
  • Open and login to CM once at the command line leave it open.

Firefox Browser

  • goto options / advance / network tab /settings
  • change from no proxy to manual proxy
  • add and your port you created earlier i.e 9080 then click ok

** Remember ot go back in the options / advanced / network / settings and click no proxy and ok to disable it again for normal browsing when finished. **

S8300 Problems Loading System Platform

Haven’t done this for a while and with a colleague we were having difficulties loading S8300 with system platform and expanding on a much earlier post S8300D CM6.x upgrade Windows 7 failure which has the avaya mentor video here are the steps along with what had to be done in this case to get it working finally.

While running ping -t and you are getting request timed out or no reply along with seeing general failure where it wont boot off DVD.

Open command prompt and run the commands in quotes.


“interface ipv4”

“show interface”

(need to determine the Idx number of th interface you are using generally be lableled Ethernet)

“show interface xx”

(xx being the Idx number identified above)

Look for dad transmits probably set to  = 3

“set interface xx dadtransmits=0”

“show interface xx”

dad transmits now should = 0 now reboot the gateway and try again.

If this still fails try the following:

Leave the Media Gateway powered on, pull out the S8300D server and reseat it, when you get ping responses to quickly telnet to and install the System Platform.