Thursday, February 20, 2014

How to enable TRACE32 for OAM



How to Enable the TRACE32 for OAM



To Enable the TRACE32 for OAM related errors, please follow the procedure:


a) clear all the files /tmp or /usr/tmp
b) $IAM_HOME or $OAM_HOME/common/bin
c) execute the script wlst.sh
            The above command will provide the prompt as

                 wls:/offline> 

Now type connect() and enter the weblogic username and Password along with the url to which the console will be connected:

wls:/offline> connect()
Please enter your username :weblogic
Please enter your password :

Please enter your server URL [t3://localhost:7001] :t3://erptest.xxxx.com:7002

Connecting to t3://erptest.xxxxx.com:7002 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'IDMDomain'.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.


wls:/IDMDomain/serverConfig> domainRuntime()

Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)

/* This will show the runtime logers and tracelevel)*/

wls:/IDMDomain/domainRuntime> listLoggers(pattern="oracle.oam.*",target="oam_server1")
------------------------------------------+-----------------
Logger                                    | Level
------------------------------------------+-----------------
oracle.oam                                | <Inherited>
oracle.oam.admin.foundation.configuration | <Inherited>
oracle.oam.agent-default                  | <Inherited>
oracle.oam.audit                          | <Inherited>
oracle.oam.binding                        | <Inherited>
oracle.oam.certvalidation.mbeans          | <Inherited>
oracle.oam.commonutil                     | <Inherited>
oracle.oam.config                         | <Inherited>
oracle.oam.controller                     | <Inherited>
oracle.oam.default                        | <Inherited>
oracle.oam.diagnostic                     | <Inherited>
oracle.oam.engine.authn                   | <Inherited>
oracle.oam.engine.authz                   | <Inherited>
oracle.oam.engine.policy                  | <Inherited>
oracle.oam.engine.session                 | <Inherited>
oracle.oam.engine.sso                     | <Inherited>
oracle.oam.engine.token                   | <Inherited>
oracle.oam.extensibility.lifecycle        | <Inherited>
oracle.oam.foundation.access              | <Inherited>
oracle.oam.idm                            | <Inherited>
oracle.oam.install                        | <Inherited>
oracle.oam.install.mbeans                 | <Inherited>
oracle.oam.plugin                         | <Inherited>
oracle.oam.proxy.oam                      | <Inherited>
oracle.oam.proxy.osso                     | <Inherited>
oracle.oam.user.identity.provider         | <Inherited>

wls:/IDMDomain/domainRuntime>setLogLevel(target='oam_server1',logger='oracle.oam',level='TRACE:32',persist="1",addLogger=1)

wls:/IDMDomain/domainRuntime> listLoggers(pattern="oracle.oam.*",target="oam_server1")
------------------------------------------+-----------------
Logger                                    | Level
------------------------------------------+-----------------
oracle.oam                                | TRACE:32
oracle.oam.admin.foundation.configuration | <Inherited>
oracle.oam.agent-default                  | <Inherited>
oracle.oam.audit                          | <Inherited>
oracle.oam.binding                        | <Inherited>
oracle.oam.certvalidation.mbeans          | <Inherited>
oracle.oam.commonutil                     | <Inherited>
oracle.oam.config                         | <Inherited>
oracle.oam.controller                     | <Inherited>
oracle.oam.default                        | <Inherited>
oracle.oam.diagnostic                     | <Inherited>
oracle.oam.engine.authn                   | <Inherited>
oracle.oam.engine.authz                   | <Inherited>
oracle.oam.engine.policy                  | <Inherited>
oracle.oam.engine.session                 | <Inherited>
oracle.oam.engine.sso                     | <Inherited>
oracle.oam.engine.token                   | <Inherited>
oracle.oam.extensibility.lifecycle        | <Inherited>
oracle.oam.foundation.access              | <Inherited>
oracle.oam.idm                            | <Inherited>
oracle.oam.install                        | <Inherited>
oracle.oam.install.mbeans                 | <Inherited>
oracle.oam.plugin                         | <Inherited>
oracle.oam.proxy.oam                      | <Inherited>
oracle.oam.proxy.osso                     | <Inherited>
oracle.oam.user.identity.provider         | <Inherited>
wls:/IDMDomain/domainRuntime>

wls:/IDMDomain/domainRuntime> exit()


Exiting WebLogic Scripting Tool.

TRACE entries written to the file $OAM_DOMAIN/servers/oam_server1/logs/oam_server1-diagnostic.log





No comments: