How can we change the location of conc manager logfiles $APPLCSF/$APPLLOG?

How can we change the location of conc manager logfiles $APPLCSF/$APPLLOG?
1)Make sure service should not be runing.

[applmgr@sachin scripts]$ ps -fu applmgr
UID PID PPID C STIME TTY TIME CMD
applmgr 26816 26815 0 14:51 pts/1 00:00:01 -bash
applmgr 27723 26816 0 15:35 pts/1 00:00:00 ps -fu applmgr
[applmgr@sachin scripts]$

2)Take the backup of old xml file before you make changes to it.
cp -r PROD_sachin.xml PROD_sachin.xml_08mar2013

3) $APPLCSF existing location

[applmgr@sachin admin]$ echo $APPLCSF/$APPLLOG
/u02/inst/sachin/PROD_sachin/logs/appl/conc/log

(OR)

Also you can check with the below commands.

To extract one parameter from xml use grep
=========================================

[applmgr@sachin log]$ grep -i s_applcsf $CONTEXT_FILE
<APPLCSF oa_var=”s_applcsf”>/u02/inst/sachin/PROD_sachin/logs/appl/conc</APPLCSF>

To grep multiple parameter use egrep
=================================================
[applmgr@sachin log]$ egrep -i ‘s_applcsf|s_appllog|s_applout’ $CONTEXT_FILE
<APPLCSF oa_var=”s_applcsf”>/u02/inst/sachin/PROD_sachin/logs/appl/conc</APPLCSF>
<APPLLOG oa_var=”s_appllog”>log</APPLLOG>
<APPLOUT oa_var=”s_applout”>out</APPLOUT>
[applmgr@sachin log]$

4)change the location and run autoconfig

i have changed the value of $APPLCSF in xml file to /u02/inst,$APPLLOG to log and $APPLOUT to out only .once parameters are changed in the xml file
run autoconfig in order to reflect it.

When you grep it .It will show you modified value.
[applmgr@sachin admin]$ egrep -i ‘s_applcsf|s_appllog|s_applout’ $CONTEXT_FILE
<APPLCSF oa_var=”s_applcsf”>/u02/inst</APPLCSF>
<APPLLOG oa_var=”s_appllog”>log</APPLLOG>
<APPLOUT oa_var=”s_applout”>out</APPLOUT>
[applmgr@sachin admin]$

Still it will show you the old value as you have not run the autoconfig,just run autconfig to reflect it.

[applmgr@sachin admin]$ echo $APPLCSF/$APPLLOG
/u02/inst/sachin/PROD_sachin/logs/appl/conc/log

Now go to script location and run autoconfig.
===============================

[applmgr@sachin inst]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@sachin scripts]$ pwd
/u02/inst/sachin/PROD_sachin/admin/scripts
[applmgr@sachin scripts]$ ls -ltrh
total 168K
drwxr-xr-x 2 applmgr dba 4.0K Mar 1 19:17 msc
drwxr-xr-x 2 applmgr dba 4.0K Mar 1 19:17 ieo
-rwx—— 1 applmgr dba 5.6K Mar 1 19:21 adstpall.sh
-rwx—— 1 applmgr dba 5.7K Mar 1 19:21 adstrtal.sh
-rwx—— 1 applmgr dba 7.1K Mar 1 19:21 adalnctl.sh
-rwx—— 1 applmgr dba 17K Mar 1 19:21 adcmctl.sh
-rwx—— 1 applmgr dba 1.5K Mar 1 19:21 adautocfg.sh
-rwx—— 1 applmgr dba 15K Mar 1 19:21 adpreclone.pl
-rwx—— 1 applmgr dba 7.0K Mar 1 19:21 adexecsql.pl
-rwx—— 1 applmgr dba 2.1K Mar 1 19:22 java.sh
-rwx—— 1 applmgr dba 2.2K Mar 1 19:22 gsmstart.sh
-rwx—— 1 applmgr dba 8.5K Mar 1 19:22 adformsctl.sh
-rwx—— 1 applmgr dba 8.0K Mar 1 19:22 adapcctl.sh
-rwx—— 1 applmgr dba 7.1K Mar 1 19:22 adopmnctl.sh
-rwx—— 1 applmgr dba 7.8K Mar 1 19:22 adoafmctl.sh
-rwx—— 1 applmgr dba 7.7K Mar 1 19:22 adoacorectl.sh
-rwx—— 1 applmgr dba 10K Mar 1 19:22 adformsrvctl.sh
-rwx—— 1 applmgr dba 6.1K Mar 1 19:37 jtffmctl.sh
-rwxrwxr– 1 applmgr dba 6.5K Mar 1 19:38 mwactlwrpr.sh
-rwxrwxr– 1 applmgr dba 6.5K Mar 1 19:38 mwactl.sh
[applmgr@sachin scripts]$

Running autoconfig
============
[applmgr@sachin scripts]$ adautocfg.sh
Enter the sachin user password:

The log file for this session is located at: /u02/inst/sachin/PROD_sachin/admin/log/03081544/adconfig.log

AutoConfig is configuring the Applications environment…

AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u02/inst/sachin/PROD_sachin
Classpath : /u02/sachin/sachin_st/comn/java/lib/sachinborg2.zip:/u02/sachin/sachin_st/comn/java/classes

Using Context file : /u02/inst/sachin/PROD_sachin/appl/admin/PROD_sachin.xml

Context Value Management will now update the Context file

Updating Context file…COMPLETED

Attempting upload of Context file and templates to database…COMPLETED

Configuring templates from all of the product tops…
Configuring AD_TOP……..COMPLETED
Configuring FND_TOP…….COMPLETED
Configuring ICX_TOP…….COMPLETED
Configuring MSC_TOP…….COMPLETED
Configuring IEO_TOP…….COMPLETED
Configuring BIS_TOP…….COMPLETED
Configuring AMS_TOP…….COMPLETED
Configuring CCT_TOP…….COMPLETED
Configuring WSH_TOP…….COMPLETED
Configuring CLN_TOP…….COMPLETED
Configuring OKE_TOP…….COMPLETED
Configuring OKL_TOP…….COMPLETED
Configuring OKS_TOP…….COMPLETED
Configuring CSF_TOP…….COMPLETED
Configuring IGS_TOP…….COMPLETED
Configuring IBY_TOP…….COMPLETED
Configuring JTF_TOP…….COMPLETED
Configuring MWA_TOP…….COMPLETED
Configuring CN_TOP……..COMPLETED
Configuring CSI_TOP…….COMPLETED
Configuring WIP_TOP…….COMPLETED
Configuring CSE_TOP…….COMPLETED
Configuring EAM_TOP…….COMPLETED
Configuring FTE_TOP…….COMPLETED
Configuring ONT_TOP…….COMPLETED
Configuring AR_TOP……..COMPLETED
Configuring AHL_TOP…….COMPLETED
Configuring OZF_TOP…….COMPLETED
Configuring IES_TOP…….COMPLETED
Configuring CSD_TOP…….COMPLETED
Configuring IGC_TOP…….COMPLETED

AutoConfig completed successfully.
[applmgr@sachin scripts]$

once autoconfig completed successfully source the env file.

[applmgr@sachin appl]$ ls -ltrh *.env
-rw-r–r– 1 applmgr dba 16K Mar 8 15:46 PROD_sachin.env
-rw-r–r– 1 applmgr dba 999 Mar 8 15:46 sachinPROD_sachin.env
[applmgr@sachin appl]$ . ./PROD_sachin.env

[applmgr@sachin appl]$ echo $APPLCSF/$APPLLOG
/u02/inst/log
[applmgr@sachin appl]$

Concurrent manager logfile location successfully changed to /u02/inst/log .

Re cap
=====
1) Services should not be running
2)Take backup of old xml file
3)change location in xml file.
4)Run autoconfig.sh
5)source env and check location