Search This Blog

Friday, July 06, 2018

How to set weblogic Server Debug flags using WLST Scripts

How to set weblogic Server Debug flags using WLST Scripts
How to set weblogic Server Debug flags using WLST Scripts


-- Get List of Debug Flags available with Weblogic Server

connect('weblogic','Welcome1','t3://localhost:7001')
cd('/Servers/AdminServer/ServerDebug/AdminServer')
ls()
exit()


To set the Debug Flags for example DebugJDBCSQL , DebugJTAXA abd DebugJTAJDBC

connect('weblogic','Welcome1','t3://localhost:7001')
edit()
startEdit()
cd('/Servers/AdminServer/ServerDebug/AdminServer')
cmo.setDebugJDBCSQL(true)
cmo.setDebugJTAXA(true)
cmo.setDebugJTAJDBC(true)
save()
activate()
exit()

To unset the Debug Flags for example DebugJDBCSQL , DebugJTAXA abd DebugJTAJDBC

connect('weblogic','Welcome1','t3://localhost:7001')
edit()
startEdit()
cd('/Servers/AdminServer/ServerDebug/AdminServer')
cmo.unSet('DebugJDBCSQL')
cmo.unSet('DebugJTAXA')
cmo.unSet('DebugJTAJDBC')
save()
activate()
exit()


Lif of WLS Server Debug Flags

wls:/soa_domain/serverConfig> cd('/Servers/AdminServer/ServerDebug/AdminServer')
wls:/soa_domain/serverConfig/Servers/AdminServer/ServerDebug/AdminServer> ls()
dr--   Server

-r--   ApplicationContainer                         false
-r--   ClassChangeNotifier                          false
-r--   ClassFinder                                  false
-r--   ClassLoader                                  false
-r--   ClassLoaderVerbose                           false
-r--   ClassloaderWebApp                            false
-r--   ClasspathServlet                             false
-r--   DebugAbbreviation                            false
-r--   DebugAppContainer                            false
-r--   DebugAsyncQueue                              false
-r--   DebugBootstrapServlet                        false
-r--   DebugCertRevocCheck                          false
-r--   DebugClassRedef                              false
-r--   DebugClassSize                               false
-r--   DebugCluster                                 false
-r--   DebugClusterAnnouncements                    false
-r--   DebugClusterFragments                        false
-r--   DebugClusterHeartbeats                       false
-r--   DebugConfigurationEdit                       false
-r--   DebugConfigurationRuntime                    false
-r--   DebugConnection                              false
-r--   DebugConnectorService                        false
-r--   DebugConsensusLeasing                        false
-r--   DebugDGCEnrollment                           false
-r--   DebugDRSCalls                                false
-r--   DebugDRSHeartbeats                           false
-r--   DebugDRSMessages                             false
-r--   DebugDRSQueues                               false
-r--   DebugDRSStateTransitions                     false
-r--   DebugDRSUpdateStatus                         false
-r--   DebugDeploy                                  false
-r--   DebugDeployment                              false
-r--   DebugDeploymentPlan                          false
-r--   DebugDeploymentService                       false
-r--   DebugDeploymentServiceInternal               false
-r--   DebugDeploymentServiceStatusUpdates          false
-r--   DebugDeploymentServiceTransport              false
-r--   DebugDeploymentServiceTransportHttp          false
-r--   DebugDescriptor                              false
-r--   DebugDiagnosticAccessor                      false
-r--   DebugDiagnosticArchive                       false
-r--   DebugDiagnosticArchiveRetirement             false
-r--   DebugDiagnosticCollections                   false
-r--   DebugDiagnosticContext                       false
-r--   DebugDiagnosticDataGathering                 false
-r--   DebugDiagnosticFileArchive                   false
-r--   DebugDiagnosticImage                         false
-r--   DebugDiagnosticInstrumentation               false
-r--   DebugDiagnosticInstrumentationActions        false
-r--   DebugDiagnosticInstrumentationConfig         false
-r--   DebugDiagnosticInstrumentationEvents         false
-r--   DebugDiagnosticInstrumentationWeaving        false
-r--   DebugDiagnosticInstrumentationWeavingMatches false
-r--   DebugDiagnosticJdbcArchive                   false
-r--   DebugDiagnosticLifecycleHandlers             false
-r--   DebugDiagnosticQuery                         false
-r--   DebugDiagnosticWatch                         false
-r--   DebugDiagnosticWlstoreArchive                false
-r--   DebugDiagnosticsHarvester                    false
-r--   DebugDiagnosticsHarvesterData                false
-r--   DebugDiagnosticsHarvesterMBeanPlugin         false
-r--   DebugDiagnosticsHarvesterTreeBeanPlugin      false
-r--   DebugDiagnosticsModule                       false
-r--   DebugDomainLogHandler                        false
-r--   DebugEjbCaching                              false
-r--   DebugEjbCmpDeployment                        false
-r--   DebugEjbCmpRuntime                           false
-r--   DebugEjbCompilation                          false
-r--   DebugEjbDeployment                           false
-r--   DebugEjbInvoke                               false
-r--   DebugEjbLocking                              false
-r--   DebugEjbMdbConnection                        false
-r--   DebugEjbPooling                              false
-r--   DebugEjbSecurity                             false
-r--   DebugEjbSwapping                             false
-r--   DebugEjbTimers                               false
-r--   DebugEmbeddedLDAP                            false
-r--   DebugEmbeddedLDAPLogLevel                    0
-r--   DebugEmbeddedLDAPLogToConsole                false
-r--   DebugEmbeddedLDAPWriteOverrideProps          false
-r--   DebugEventManager                            false
-r--   DebugFailOver                                false
-r--   DebugFileDistributionServlet                 false
-r--   DebugHttp                                    false
-r--   DebugHttpLogging                             false
-r--   DebugHttpSessions                            false
-r--   DebugIIOP                                    false
-r--   DebugIIOPConnection                          false
-r--   DebugIIOPMarshal                             false
-r--   DebugIIOPNaming                              false
-r--   DebugIIOPOTS                                 false
-r--   DebugIIOPReplacer                            false
-r--   DebugIIOPSecurity                            false
-r--   DebugIIOPStartup                             false
-r--   DebugIIOPTransport                           false
-r--   DebugIIOPTunneling                           false
-r--   DebugJ2EEManagement                          false
-r--   DebugJAXPDebugLevel                          0
-r--   DebugJAXPDebugName                           null
-r--   DebugJAXPIncludeClass                        false
-r--   DebugJAXPIncludeLocation                     false
-r--   DebugJAXPIncludeName                         false
-r--   DebugJAXPIncludeTime                         false
-r--   DebugJAXPOutputStream                        null
-r--   DebugJAXPUseShortClass                       false
-r--   DebugJDBCConn                                false
-r--   DebugJDBCDriverLogging                       false
-r--   DebugJDBCInternal                            false
-r--   DebugJDBCONS                                 false
-r--   DebugJDBCRAC                                 false
-r--   DebugJDBCREPLAY                              false
-r--   DebugJDBCRMI                                 false
-r--   DebugJDBCSQL                                 true
-r--   DebugJDBCUCP                                 false
-r--   DebugJMSAME                                  false
-r--   DebugJMSBackEnd                              false
-r--   DebugJMSBoot                                 false
-r--   DebugJMSCDS                                  false
-r--   DebugJMSCommon                               false
-r--   DebugJMSConfig                               false
-r--   DebugJMSDispatcher                           false
-r--   DebugJMSDistTopic                            false
-r--   DebugJMSDurableSubscribers                   false
-r--   DebugJMSFrontEnd                             false
-r--   DebugJMSJDBCScavengeOnFlush                  false
-r--   DebugJMSLocking                              false
-r--   DebugJMSMessagePath                          false
-r--   DebugJMSModule                               false
-r--   DebugJMSPauseResume                          false
-r--   DebugJMSSAF                                  false
-r--   DebugJMSStore                                false
-r--   DebugJMST3Server                             false
-r--   DebugJMSWrappers                             false
-r--   DebugJMSXA                                   false
-r--   DebugJMX                                     false
-r--   DebugJMXCompatibility                        false
-r--   DebugJMXCore                                 false
-r--   DebugJMXDomain                               false
-r--   DebugJMXEdit                                 false
-r--   DebugJMXRuntime                              false
-r--   DebugJNDI                                    false
-r--   DebugJNDIFactories                           false
-r--   DebugJNDIResolution                          false
-r--   DebugJTA2PC                                  false
-r--   DebugJTA2PCStackTrace                        false
-r--   DebugJTAAPI                                  false
-r--   DebugJTAGateway                              false
-r--   DebugJTAGatewayStackTrace                    false
-r--   DebugJTAHealth                               false
-r--   DebugJTAJDBC                                 false
-r--   DebugJTALLR                                  false
-r--   DebugJTALifecycle                            false
-r--   DebugJTAMigration                            false
-r--   DebugJTANaming                               false
-r--   DebugJTANamingStackTrace                     false
-r--   DebugJTANonXA                                false
-r--   DebugJTAPropagate                            false
-r--   DebugJTARMI                                  false
-r--   DebugJTARecovery                             false
-r--   DebugJTARecoveryStackTrace                   false
-r--   DebugJTAResourceHealth                       false
-r--   DebugJTAResourceName                         null
-r--   DebugJTATLOG                                 false
-r--   DebugJTATransactionName                      null
-r--   DebugJTAXA                                   true
-r--   DebugJTAXAStackTrace                         false
-r--   DebugJpaDataCache                            false
-r--   DebugJpaEnhance                              false
-r--   DebugJpaJdbcJdbc                             false
-r--   DebugJpaJdbcSchema                           false
-r--   DebugJpaJdbcSql                              false
-r--   DebugJpaManage                               false
-r--   DebugJpaMetaData                             false
-r--   DebugJpaProfile                              false
-r--   DebugJpaQuery                                false
-r--   DebugJpaRuntime                              false
-r--   DebugJpaTool                                 false
-r--   DebugLeaderElection                          false
-r--   DebugLibraries                               false
-r--   DebugLoadBalancing                           false
-r--   DebugLoggingConfiguration                    false
-r--   DebugManagementServicesResource              false
-r--   DebugMaskCriterias                           null
-r--   DebugMessaging                               false
-r--   DebugMessagingBridgeRuntime                  false
-r--   DebugMessagingBridgeRuntimeVerbose           false
-r--   DebugMessagingBridgeStartup                  false
-r--   DebugMessagingKernel                         false
-r--   DebugMessagingKernelBoot                     false
-r--   DebugMuxer                                   false
-r--   DebugMuxerConnection                         false
-r--   DebugMuxerDetail                             false
-r--   DebugMuxerException                          false
-r--   DebugMuxerTimeout                            false
-r--   DebugPathSvc                                 false
-r--   DebugPathSvcVerbose                          false
-r--   DebugRA                                      false
-r--   DebugRAClassloader                           false
-r--   DebugRAConnEvents                            false
-r--   DebugRAConnections                           false
-r--   DebugRADeployment                            false
-r--   DebugRALifecycle                             false
-r--   DebugRALocalOut                              false
-r--   DebugRAParsing                               false
-r--   DebugRAPoolVerbose                           false
-r--   DebugRAPooling                               false
-r--   DebugRASecurityCtx                           false
-r--   DebugRAWork                                  false
-r--   DebugRAWorkEvents                            false
-r--   DebugRAXAin                                  false
-r--   DebugRAXAout                                 false
-r--   DebugRAXAwork                                false
-r--   DebugRC4                                     false
-r--   DebugRSA                                     false
-r--   DebugReplication                             false
-r--   DebugReplicationDetails                      false
-r--   DebugRouting                                 false
-r--   DebugSAFAdmin                                false
-r--   DebugSAFLifeCycle                            false
-r--   DebugSAFManager                              false
-r--   DebugSAFMessagePath                          false
-r--   DebugSAFReceivingAgent                       false
-r--   DebugSAFSendingAgent                         false
-r--   DebugSAFStore                                false
-r--   DebugSAFTransport                            false
-r--   DebugSAFVerbose                              false
-r--   DebugSNMPAgent                               false
-r--   DebugSNMPExtensionProvider                   false
-r--   DebugSNMPProtocolTCP                         false
-r--   DebugSNMPToolkit                             false
-r--   DebugSSL                                     false
-r--   DebugScaContainer                            false
-r--   DebugSecurityAdjudicator                     false
-r--   DebugSecurityAtn                             false
-r--   DebugSecurityAtz                             false
-r--   DebugSecurityAuditor                         false
-r--   DebugSecurityCertPath                        false
-r--   DebugSecurityCredMap                         false
-r--   DebugSecurityEEngine                         false
-r--   DebugSecurityEncryptionService               false
-r--   DebugSecurityJACC                            false
-r--   DebugSecurityJACCNonPolicy                   false
-r--   DebugSecurityJACCPolicy                      false
-r--   DebugSecurityKeyStore                        false
-r--   DebugSecurityPasswordPolicy                  false
-r--   DebugSecurityPredicate                       false
-r--   DebugSecurityRealm                           false
-r--   DebugSecurityRoleMap                         false
-r--   DebugSecuritySAML2Atn                        false
-r--   DebugSecuritySAML2CredMap                    false
-r--   DebugSecuritySAML2Lib                        false
-r--   DebugSecuritySAML2Service                    false
-r--   DebugSecuritySAMLAtn                         false
-r--   DebugSecuritySAMLCredMap                     false
-r--   DebugSecuritySAMLLib                         false
-r--   DebugSecuritySAMLService                     false
-r--   DebugSecuritySSL                             false
-r--   DebugSecuritySSLEaten                        false
-r--   DebugSecurityService                         false
-r--   DebugSecurityUserLockout                     false
-r--   DebugSelfTuning                              false
-r--   DebugServerLifeCycle                         false
-r--   DebugServerMigration                         false
-r--   DebugServerStartStatistics                   false
-r--   DebugStoreAdmin                              false
-r--   DebugStoreIOLogical                          false
-r--   DebugStoreIOLogicalBoot                      false
-r--   DebugStoreIOPhysical                         false
-r--   DebugStoreIOPhysicalVerbose                  false
-r--   DebugStoreXA                                 false
-r--   DebugStoreXAVerbose                          false
-r--   DebugTunnelingConnection                     false
-r--   DebugTunnelingConnectionTimeout              false
-r--   DebugURLResolution                           false
-r--   DebugWANReplicationDetails                   false
-r--   DebugWTCConfig                               false
-r--   DebugWTCCorbaEx                              false
-r--   DebugWTCGwtEx                                false
-r--   DebugWTCJatmiEx                              false
-r--   DebugWTCTDomPdu                              false
-r--   DebugWTCUData                                false
-r--   DebugWTCtBridgeEx                            false
-r--   DebugWebAppIdentityAssertion                 false
-r--   DebugWebAppModule                            false
-r--   DebugWebAppSecurity                          false
-r--   DebugWorkContext                             false
-r--   DebugXMLEntityCacheDebugLevel                0
-r--   DebugXMLEntityCacheDebugName                 null
-r--   DebugXMLEntityCacheIncludeClass              false
-r--   DebugXMLEntityCacheIncludeLocation           false
-r--   DebugXMLEntityCacheIncludeName               false
-r--   DebugXMLEntityCacheIncludeTime               false
-r--   DebugXMLEntityCacheOutputStream              null
-r--   DebugXMLEntityCacheUseShortClass             false
-r--   DebugXMLRegistryDebugLevel                   0
-r--   DebugXMLRegistryDebugName                    null
-r--   DebugXMLRegistryIncludeClass                 false
-r--   DebugXMLRegistryIncludeLocation              false
-r--   DebugXMLRegistryIncludeName                  false
-r--   DebugXMLRegistryIncludeTime                  false
-r--   DebugXMLRegistryOutputStream                 null
-r--   DebugXMLRegistryUseShortClass                false
-r--   DefaultStore                                 false
-r--   DiagnosticContextDebugMode                   Off
-r--   ForceGCEachDGCPeriod                         false
-r--   ListenThreadDebug                            false
-r--   LogDGCStatistics                             false
-r--   MasterDeployer                               false
-r--   Name                                         AdminServer
-r--   Notes                                        null
-r--   RedefiningClassLoader                        false
-r--   Server                                       null
-r--   SlaveDeployer                                false
-r--   Type                                         ServerDebug
-r--   WebModule                                    false

-r-x   freezeCurrentValue                           Void : String(attributeName)
-r-x   isSet                                        Boolean : String(propertyName)
-r-x   unSet                                        Void : String(propertyName)

wls:/soa_domain/serverConfig/Servers/AdminServer/ServerDebug/AdminServer>



Tags: Publish
July 07, 2018 at 10:22AM
Open in Evernote

No comments: