Friday, July 12, 2013

adchkcfg.sh utility

This script is useful to run the autoconfig in test mode for knowing changes that will effect after next autoconfig run.It generates both html and text reports for viewing the current and changed information once you run this utility. These files are divided into two parts and each one contains the following information.

Cfgcheck report contains,

AutoConfig Context File Changes
  • It shows current AutoConfig Context File, the changed AutoConfig Context File, and a difference report
Service Group Status
  • it shows Status of the Service Groups and corresponding Services. Eg: Root service, Web Application Services.
Changed Configuration Files
  • It shows list of files which will be changed in the next normal AutoConfig execution and the difference report for each file
New Configuration Files
  • It shows list of new files which will be created in the next normal AutoConfig execution
 Legend
  •  It shows Legend and syntax translations

Run Check Config Utility on the Application Tier:


1> Run adchkcfg.sh

[ebspas@igrexandc002cn05 appl]$ adchkcfg.sh
Enter the full path to the Applications Context file:
/ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1/appl/admin/IREBSPAS_ebspasportal1.xml
Enter the APPS password:

The log file for this session is located at: /ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1/admin/log/04171603/adconfig.log

AutoConfig is running in test mode and building diffs...

AutoConfig will consider the custom templates if present.
        Using CONFIG_HOME location     : /ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1
        Classpath                   : /ebspas/app/applmgr/IREBSPAS/comn/java/lib/appsborg2.zip:/ebspas/app/applmgr/IREBSPAS/comn/java/classes

        Using Context file          : /ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1/admin/out/04171603/IREBSPAS_ebspasportal1.xml

Context Value Management will now update the test Context file

        Updating test Context file...COMPLETED

        [ Test mode ]
        No uploading of Context File and its templates to database.

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

Differences text report is located at: /ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1/admin/out/04171603/cfgcheck.txt

        Generating Profile Option differences report...COMPLETED

Differences text report for the Database is located at: /ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1/admin/out/04171603/ProfileReport.txt

        Generating File System differences report......COMPLETED

Differences html report is located at: /ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1/admin/out/04171603/cfgcheck.html

Differences Zip report is located at: /ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1/admin/out/04171603/ADXcfgcheck.zip


2> Go To Location $INST_TOP/admin/out/<Output Directory for the adchkcfg run>

Example for Above case :/ebspas/app/applmgr/IREBSPAS/inst/apps/IREBSPAS_ebspasportal1/admin/out/04171603

3> Look for Difference files
Differences file gets created with x_* . Example : x_httpd.conf

Difference Files in Internal
=============================

[ebspas@igrexandc002cn05 04171558]$ ls -lrt x_*
-rw-r--r-- 1 ebspas dba  8532 Apr 17 15:59 x_server.xml
-rw-r--r-- 1 ebspas dba 12170 Apr 17 15:59 x_oracle-webservices.xml
[ebspas@igrexandc002cn05 04171558]$


Difference Files in External
============================
[ebspas@igrexandc002cn05 04171603]$ ls -lrt x_*
-rw-r--r-- 1 ebspas dba  2392 Apr 17 16:03 x_adovars.env
-rw-r--r-- 1 ebspas dba   429 Apr 17 16:03 x_adconfig.txt
-rw-r--r-- 1 ebspas dba   836 Apr 17 16:03 x_adalldefaults.txt
-rw-r--r-- 1 ebspas dba  7817 Apr 17 16:03 x_url_fw.conf
-rw-r--r-- 1 ebspas dba  8515 Apr 17 16:03 x_server.xml
-rw-r--r-- 1 ebspas dba 12161 Apr 17 16:03 x_oracle-webservices.xml
-rw-r--r-- 1 ebspas dba  1235 Apr 17 16:03 x_httpd.conf

4> Check the differences in the difference file and resolve it.


Thank you,
Manish

No comments:

Post a Comment