Professional Documents
Culture Documents
Wls Basic Measurement
Wls Basic Measurement
# Version: 20
# [ verbose ]
# [ output <file> ]
# [ username <name> ]
# [ password <pwd> ]
# [ url <url> ]
# Output from the script will be sent to the output file, if specified.
import java
import javax.management.Query
import javax.management.QueryExp
import weblogic.management.configuration
outputFile=None
verbose=false
sepString=""
totalErrors=0
domainObject=None
customerApplicationNameSet=None
oracleApplicationNameSet=None
oracleWLDFNameSet=None
customerAppDeploymentObjectNameSet=None
customerApplicationRuntimeObjectNameSet=None
nameToNonVersionedName=None
nameToVersion=None
CONNECTION_ERROR="Connection error"
COLON=": "
COLON_1=": "
QUOTE="'"
NAME="name"
TYPE="type"
DOMAIN="Domain"
DOMAIN_INFO="Domain Info"
DOMAIN_NAME="Domain name"
DOMAIN_VERSION="Domain version"
ARE_ENABLED="are enabled"
IS_ENABLED="is enabled"
SERVER="Server "
SERVER_INFO="Server Info"
SERVER_NAME="Server name"
SERVER_MACHINE="Server machine"
STARTUP_MODE="startup mode"
INCORRECT_STARTUP_MODE="has an incorrect startup mode"
CLUSTER="Cluster "
CLUSTER_INFO="Cluster Info"
CLUSTER_NAME="Cluster name"
CLUSTER_TYPE="cluster type"
MIGRATION_BASIS="migration basis"
SINGLETON="Singleton "
SINGLETON_NAME="Singleton name"
CLASS_NAME="class name"
HOSTING_SERVER="hosting server"
CANDIDATE_SERVER="candidate server"
MIGRATION_POLICY="migration policy"
SELF_TUNING="self tuning"
WORK_MANAGER="Work Manager"
APPLICATION="Application"
APPLICATION_NAME="Application name"
NUMBER_OF="number of "
WORK_MANAGERS="work managers"
DEPLOYMENT_INFO="Deployment Info"
USES_VERSION="uses version"
USES_FAST_SWAP="uses FastSwap"
JMS_INFO="JMS Info"
RESOURCE="Resource"
HAS_UNIT_OF_ORDER="has a Unit-of-Order"
SAF_AGENT="Store-and-Forward agent"
SAF_TARGET="Store-and-Forward target"
TUXEDO_CONNECTOR="Tuxedo Connector"
SNMP_INFO="SNMP Info"
SNMP_AGENT="SNMP agent"
LIBRARY="library"
VERSION="version"
USES_ACTIVE_GRIDLINK_DATASOURCE="Datasource "
SUMMARY="Summary"
LICENSE_SERVER_MODE="The series of states through which a WebLogic Server instance can transition
is called the server life cycle. At any time, a WebLogic Server instance is in a particular operating state.
Two states with which WebLogic Server can be started include the following:\n*\tADMIN - WebLogic
Server is up and running, but available only for administration operations, allowing you to perform
server and application-level administration tasks.\n*\tSTANDBY - WebLogic Server does not process any
request; its regular Listen Port is closed. The Administration Port is open and accepts life cycle
commands that transition the server instance to either the RUNNING or the SHUTDOWN state. Other
Administration requests are not accepted.\nStarting a server instance in standby is a method of keeping
it available as a \"hot\" backup, a useful capability in high-availability environments.\nIn the license for
WebLogic Server Basic, starting a WebLogic Server instance in either ADMIN or STANDBY state is not
permitted."
URL_SERVER_MIGRATION="http://download.oracle.com/docs/cd/E12839_01/e13709/migration.htm"
URL_SERVICE_MIGRATION="http://download.oracle.com/docs/cd/E12839_01/e13709/service_migratio
n.htm"
URL_SELF_TUNED="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13701/self_tuned.ht
m#CNFGD114"
URL_DEPLOYMENT_MANAGING="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13702/
managing.htm#DEPGD305"
URL_SERVER_LIFE="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13708/server_life.ht
m"
URL_OVERLOAD="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13701/overload.htm"
URL_FAILOVER="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13709/failover.htm#CLU
ST224"
URL_REDEPLOY="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13702/redeploy.htm#D
EPGD281"
URL_DEPLOYUNITS="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13702/deployunits.h
tm#DEPGD153"
URL_JMS_UOW="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13727/uow.htm"
URL_JMS_UOO="http://download.oracle.com/docs/cd/E12839_01/web.1111/web.1111/e13727/uoo.ht
m"
URL_JMS_SAF_ADMIN_CONFIG="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13742/c
onfig_jms.htm"
URL_WTC_ADMIN="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13744/toc.htm"
URL_SNMPMAN="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13743/toc.htm"
URL_DEPLOYMENT_UNDERSTANDING="http://download.oracle.com/docs/cd/E12839_01/web.1111/e1
3702/understanding.htm#DEPGD121"
URL_DEPLOYMENT_DEPLOY="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13702/depl
oy.htm#DEPGD228"
URL_PUBSUB="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13712/pubsub.htm"
URL_WLDF="http://download.oracle.com/docs/cd/E12839_01/web.1111/e13714/intro.htm#WLDFC108
"
URL_ACTIVE_GRIDLINK="http://docs.oracle.com/cd/E17904_01/web.1111/e13737/gridlink_datasource
s.htm#JDBCA373"
def doPrint(txt):
global outputFile
if outputFile == None:
print txt
else:
# format a string containing the separator char the same number of times
sepString=""
for c in msg:
sepString=sepString+ch
# print a header, which is a separator line before and after the value arg.
def header(value=""):
sep(value, "=")
doPrint(sepString)
doPrint(value)
doPrint(sepString)
# print the summary, which is the number of errors that were detected
def summary():
header(SUMMARY)
if totalErrors == 0:
doPrint(NO_ERRORS)
else:
def timestamp(date=None):
doPrint(DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(date))
if license != None:
doPrint(license)
if url != None:
# print the relevant text from the license and the URL to the documentation.
global totalErrors
doPrint(LICENSE_COMPLIANCE_FAILURE + txt)
totalErrors = totalErrors + 1
licenseDoc(license, url)
def printExceptionInfo(ex):
msg = ""
if (ex.getMessage() != None):
msg = ex.getMessage()
break
ex = ex.getCause()
doPrint(msg)
# format an application name from an object name into the real name & version
def applicationNameVersion(name):
realName = nameToNonVersionedName.get(name)
version = nameToVersion.get(name)
if version != None:
def customerApps():
global oracleApplications
global oracleApplicationNameSet
oracleApplicationNameSet = HashSet()
oracleApplicationNameSet.add(oracleApplication)
global oracleWLDFs
global oracleWLDFNameSet
oracleWLDFNameSet = HashSet()
oracleWLDFNameSet.add(oracleWLDF)
global customerApplicationNameSet
global customerAppDeploymentObjectNameSet
global customerApplicationRuntimeObjectNameSet
global nameToNonVersionedName
global nameToVersion
customerApplicationNameSet = HashSet()
customerAppDeploymentObjectNameSet = HashSet()
customerApplicationRuntimeObjectNameSet = HashSet()
nameToNonVersionedName = HashMap()
nameToVersion = HashMap()
applicationDeploymentNamePattern = ObjectName("com.bea:Type=AppDeployment,*")
applicationDeploymentName = applicationDeployment.getKeyProperty("Name")
versionIdentifier = mbs.getAttribute(applicationDeployment, "VersionIdentifier")
realName = applicationDeploymentName
versionIndex = applicationDeploymentName.find(versionIdentifier)
realName = applicationDeploymentName[0:versionIndex-1]
if not isInternalApp:
if not oracleApplicationNameSet.contains(realName):
if not customerApplicationNameSet.contains(realName):
customerApplicationNameSet.add(realName)
if not customerAppDeploymentObjectNameSet.contains(applicationDeployment):
customerAppDeploymentObjectNameSet.add(applicationDeployment)
if not nameToNonVersionedName.containsKey(applicationDeploymentName):
nameToNonVersionedName.put(applicationDeploymentName, realName)
if not nameToVersion.containsKey(applicationDeploymentName):
nameToVersion.put(applicationDeploymentName, versionIdentifier)
applicationRuntimeNamePattern = ObjectName("com.bea:Type=ApplicationRuntime,*")
applicationRuntimeName = applicationRuntime.getKeyProperty("Name")
realName = applicationRuntimeName
versionIndex = applicationRuntimeName.find(version)
realName = applicationRuntimeName[0:versionIndex-1]
if customerApplicationNameSet.contains(realName):
if not customerApplicationRuntimeObjectNameSet.contains(applicationRuntime):
customerApplicationRuntimeObjectNameSet.add(applicationRuntime)
if not nameToNonVersionedName.containsKey(applicationRuntimeName):
nameToNonVersionedName.put(applicationRuntimeName, realName)
if not nameToVersion.containsKey(applicationRuntimeName):
nameToVersion.put(applicationRuntimeName, version)
def tryTest(test=None):
if test != None:
curErrors = totalErrors
try:
test()
printExceptionInfo(ex)
if totalErrors == curErrors:
doPrint(NO_ERRORS)
else:
# Test for potential incorrect server state by expecting the value of the
def domainInfo():
header(DOMAIN_INFO)
domainObjectNamePattern = ObjectName("com.bea:Type=Domain,*")
domains=mbs.queryNames(domainObjectNamePattern, None)
if domains.size() > 0:
domain = domains[0]
global domainObject
domainObject = domain
if verbose:
if (mbs.getAttribute(domain, "InternalAppsDeployOnDemandEnabled")):
doPrint(DOMAIN_DEPLOY_INTERNAL_APPS_ON_DEMAND + IS_ENABLED)
else:
doPrint(DOMAIN_DEPLOY_INTERNAL_APPS_ON_DEMAND + IS_NOT_ENABLED)
doPrint(CHECKING_FOR_ADMINISTRATION_PORT_ENABLED + COLON)
if administrationPortEnabled:
doPrint(CHECKING_FOR_SERVICE_MIGRATION + COLON)
if verbose:
if clusterConstraintsEnabled:
doPrint(DOMAIN_CLUSTER_CONSTRAINTS + ARE_ENABLED)
else:
doPrint(DOMAIN_CLUSTER_CONSTRAINTS + ARE_NOT_ENABLED)
if clusterConstraintsEnabled:
def serverInfo():
header(SERVER_INFO)
doPrint(CHECKING_SERVER_MODE_AND_OVERLOAD_ACTIONS + COLON)
noAutoMigrationErrors = 0
noServerModeErrors = 0
noOverloadErrors = 0
serverObjectNamePattern = ObjectName("com.bea:Type=Server,*")
servers=mbs.queryNames(serverObjectNamePattern, None)
serverName = server.getKeyProperty("Name")
if verbose:
if verbose:
if autoMigrationEnabled:
else:
if machine != None:
if verbose:
if verbose:
if autoMigrationEnabled:
noAutoMigrationErrors = noAutoMigrationErrors + 1
if administrationPortEnabled:
noServerModeErrors = noServerModeErrors + 1
noServerModeErrors = noServerModeErrors + 1
if (overloadProtection != None):
if verbose:
if failureAction != "no-action":
noOverloadErrors = noOverloadErrors + 1
if panicAction != "no-action":
noOverloadErrors = noOverloadErrors + 1
serverObjectNamePattern = ObjectName("com.bea:Type=ServerRuntime,*")
servers=mbs.queryNames(serverObjectNamePattern, None)
serverName = server.getKeyProperty("Name")
if verbose:
noServerModeErrors = noServerModeErrors + 1
if noAutoMigrationErrors > 0:
licenseDoc(LICENSE_WHOLE_SERVER_MIGRATION, URL_SERVER_MIGRATION)
if noServerModeErrors > 0:
licenseDoc(LICENSE_SERVER_MODE, URL_SERVER_LIFE)
if noOverloadErrors > 0:
licenseDoc(LICENSE_OVERLOAD_MANAGEMENT, URL_OVERLOAD)
# Test for WAN or MAN replication type by expecting the value of each
def clusterInfo():
header(CLUSTER_INFO)
doPrint(CHECKING_CLUSTER_TYPE_AND_OVERLOAD_ACTIONS + COLON)
noClusterTypeErrors = 0
noMigrationBasisErrors = 0
noOverloadErrors = 0
clusterObjectNamePattern = ObjectName("com.bea:Type=Cluster,*")
clusters=mbs.queryNames(clusterObjectNamePattern, None)
clusterName = cluster.getKeyProperty("Name")
if verbose:
if verbose:
noClusterTypeErrors = noClusterTypeErrors + 1
if verbose:
if migrationBasis == "consensus":
noMigrationBasisErrors = noMigrationBasisErrors + 1
if (overloadProtection != None):
if verbose:
if failureAction != "no-action":
noOverloadErrors = noOverloadErrors + 1
if panicAction != "no-action":
noOverloadErrors = noOverloadErrors + 1
if noClusterTypeErrors > 0:
licenseDoc(LICENSE_WAN_AND_MAN_STATE_REPLICATION, URL_FAILOVER)
if noMigrationBasisErrors > 0:
licenseDoc(LICENSE_WHOLE_SERVER_MIGRATION, URL_SERVER_MIGRATION)
if noOverloadErrors > 0:
licenseDoc(LICENSE_OVERLOAD_MANAGEMENT, URL_OVERLOAD)
# SingletonServiceMBeans to be zero.
def singletonServiceInfo():
header(SINGLETON_SERVICE_INFO)
doPrint(CHECKING_FOR_SINGLETON_SERVICES + COLON)
singletonNames = ""
singletonObjectNamePattern = ObjectName("com.bea:Type=SingletonService,*")
singletons=mbs.queryNames(singletonObjectNamePattern, None)
singletonName = singleton.getKeyProperty("Name")
if verbose:
doPrint(SINGLETON_NAME + COLON + singletonName)
if (cluster != None):
if verbose:
if (hostingServer != None):
if verbose:
if (userPreferredServer != None):
if verbose:
candidateServerName = candidateServer.getKeyProperty("Name")
if verbose:
if singletons.size() > 0:
header(SERVICE_MIGRATION_INFO)
doPrint(CHECKING_FOR_SERVICE_MIGRATION + COLON)
noMigratableTargetErrors = 0
migratableTargetNamePattern = ObjectName("com.bea:Type=MigratableTarget,*")
targets=mbs.queryNames(migratableTargetNamePattern, None)
targetName = target.getKeyProperty("Name")
if verbose:
if verbose:
if migrationPolicy != "manual":
noMigratableTargetErrors = noMigratableTargetErrors + 1
if noMigratableTargetErrors > 0:
licenseDoc(LICENSE_SERVICE_MIGRATION, URL_SERVICE_MIGRATION)
# Test for non-default global work managers by expecting the size of the
def globalWorkManagerInfo():
header(GLOBAL_WORK_MANAGER_INFO)
global domainObject
if (selfTuning != None):
selfTuningName = selfTuning.getKeyProperty("Name")
doPrint(CHECKING_FOR_GLOBAL_WORK_MANAGERS + COLON)
if len(workManagers) > 0:
workManagersUsed = ""
workManagerName = workManager.getKeyProperty("Name")
if workManagersUsed != "":
printError(DOMAIN + " " + SELF_TUNING + " " + NAME + " " + selfTuningName + COLON +
GLOBAL_WORK_MANAGER_USED)
licenseDoc(LICENSE_WORK_MANAGER, URL_SELF_TUNED)
# or consoleWorkManager
def applicationWorkManagerInfo():
global customerApplicationRuntimeObjectNameSet
header(APPLICATION_WORK_MANAGER_INFO)
doPrint(CHECKING_FOR_APPLICATION_WORK_MANAGERS + COLON)
noWorkManagerErrors = 0
applicationRuntimeName = applicationRuntime.getKeyProperty("Name")
if verbose:
noWorkManagerErrors = noWorkManagerErrors + 1
if noWorkManagerErrors > 0:
licenseDoc(LICENSE_WORK_MANAGER, URL_SELF_TUNED)
def deploymentInfo():
global customerAppDeploymentObjectNameSet
header(DEPLOYMENT_INFO)
doPrint(CHECKING_APPLICATIONS_FOR_VERSIONING_AND_ORDERING + COLON)
noVersionIdentifierErrors = 0
noDeploymentOrderErrors = 0
if customerAppDeploymentObjectNameSet.size() > 0:
for applicationDeployment in customerAppDeploymentObjectNameSet:
if moduleType == "ear":
applicationDeploymentName = applicationDeployment.getKeyProperty("Name")
noVersionIdentifierErrors = noVersionIdentifierErrors + 1
if deploymentOrder != 100:
noDeploymentOrderErrors = noDeploymentOrderErrors + 1
if noVersionIdentifierErrors > 0:
licenseDoc(LICENSE_PRODUCTION_REDEPLOYMENT, URL_REDEPLOY)
if noDeploymentOrderErrors > 0:
licenseDoc(LICENSE_DEPLOYMENT_ORDER, URL_DEPLOYMENT_MANAGING)
def applicationFastSwapInfo():
global customerApplicationRuntimeObjectNameSet
header(APPLICATION_FAST_SWAP_INFO)
doPrint(CHECKING_FOR_APPLICATION_FAST_SWAP + COLON)
noFastSwapErrors = 0
applicationRuntimeName = applicationRuntime.getKeyProperty("Name")
classRedefinitionRuntime = mbs.getAttribute(applicationRuntime, "ClassRedefinitionRuntime")
if classRedefinitionRuntime != None:
noFastSwapErrors = noFastSwapErrors + 1
if noFastSwapErrors > 0:
licenseDoc(LICENSE_FAST_SWAP, URL_DEPLOYUNITS)
# Test for non-default JMS unit of work by expecting the values of the
# Test for non-default JMS unit of order by expecting the values of the
def jmsInfo():
header(JMS_INFO)
doPrint(CHECKING_FOR_JMS_UNIT_OF_WORK + COLON)
queryExp = Query.not(Query.eq(Query.attr("UnitOfWorkHandlingPolicy"),
Query.value("PassThrough")))
namePattern = ObjectName("*:*")
if unitsOfWork.size() > 0:
if unitOfWork != None:
licenseDoc(LICENSE_JMS_UNIT_OF_WORK, URL_JMS_UOW)
doPrint(CHECKING_FOR_JMS_UNIT_OF_ORDER + COLON)
if unitsOfOrder.size() > 0:
if unitOfOrder != None:
licenseDoc(LICENSE_JMS_UNIT_OF_ORDER, URL_JMS_UOO)
doPrint(CHECKING_FOR_JMS_SAF_AGENTS + COLON)
if len(SAFAgents) > 0:
if verbose:
if len(agentTargets) > 0:
targetName = agentTarget.getKeyProperty("Name")
if SAFAgent != None:
licenseDoc(LICENSE_JMS_SAF, URL_JMS_SAF_ADMIN_CONFIG)
# Test for the existence of a tuxedo connector by expecting the number of the
# WTCServerMBeans to be zero.
def tuxedoConnectorInfo():
header(TUXEDO_CONNECTOR_INFO)
doPrint(CHECKING_FOR_TUXEDO_CONNECTORS + COLON)
noTuxedoConnectorErrors = 0
tuxedoConnectorObjectNamePattern = ObjectName("com.bea:Type=WTCServer,*")
tuxedoConnectors=mbs.queryNames(tuxedoConnectorObjectNamePattern, None)
tuxedoConnectorName = tuxedoConnector.getKeyProperty("Name")
licenseDoc(LICENSE_TUXEDO_CONNECTOR, URL_WTC_ADMIN)
def snmpInfo():
header(SNMP_INFO)
doPrint(CHECKING_FOR_SNMP_AGENTS + COLON)
if snmpAgent != None:
name = snmpAgent.getKeyProperty("Name")
if isEnabled:
def applicationModeInfo():
header(APPLICATION_MODE_INFO)
doPrint(CHECKING_FOR_APPLICATION_ADMIN_MODE + COLON)
noApplicationStateErrors = 0
domainRuntime()
applicationRuntimeNamePattern = ObjectName("com.bea:Type=AppRuntimeStateRuntime,*")
if applicationRuntimes.size() > 0:
applicationRuntimeName = applicationRuntime.getKeyProperty("Name")
if customerAppDeploymentObjectNameSet.size() > 0:
applicationDeploymentName = applicationDeployment.getKeyProperty("Name")
objs = jarray.array([applicationDeploymentName],java.lang.Object)
strs = jarray.array(["java.lang.String"],java.lang.String)
if intendedState == "STATE_ADMIN":
noApplicationStateErrors = noApplicationStateErrors + 1
serverRuntime()
if noApplicationStateErrors > 0:
licenseDoc(LICENSE_APPLICATION_ADMINISTRATION_MODE,
URL_DEPLOYMENT_UNDERSTANDING)
def moduleDeploymentInfo():
header(MODULE_DEPLOYMENT_INFO)
doPrint(CHECKING_FOR_JMS_JDBC_WLDF_MODULES + COLON)
curErrors = totalErrors
applicationDeploymentNamePattern = ObjectName("com.bea:Type=AppDeployment,*")
applicationDeploymentName = applicationDeployment.getKeyProperty("Name")
licenseDoc(LICENSE_JMS_JDBC_WLDF_MODULE_DEPLOYMENT, URL_DEPLOYMENT_DEPLOY)
def httpPublishSubscribeServerInfo():
header(HTTP_PUBLISH_SUBSCRIBE_SERVER_INFO)
doPrint(CHECKING_FOR_HTTP_PUBLISH_SUBSCRIBE_USAGE + COLON)
noPubSubErrors = 0
libraryNamePattern = ObjectName("com.bea:Type=Library,*")
if pubSubLibs.size() > 0:
name = pubSubLib.getKeyProperty("Name")
if verbose:
noPubSubErrors = noPubSubErrors + 1
if verbose:
libraryNamePattern = ObjectName("com.bea:Type=LibraryRuntime,*")
if pubSubRuntimes.size() > 0:
name = pubSubRuntime.getKeyProperty("Name")
if referenced:
if noPubSubErrors > 0:
licenseDoc(LICENSE_HTTP_PUBLISH_SUBSCRIBE_SERVER, URL_PUBSUB)
def diagnosticsFrameworkInfo():
header(DIAGNOSTICS_FRAMEWORK_INFO)
doPrint(CHECKING_FOR_DIAGNOSTICS_FRAMEWORK_USAGE + COLON)
noWldfErrors = 0
if len(WLDFSystemResources) > 0:
name = WLDFSystemResource.getKeyProperty("Name")
if not oracleWLDFNameSet.contains(name):
if noWldfErrors > 0:
licenseDoc(LICENSE_WLDF, URL_WLDF)
# Check for ActiveGridLink=true, FanEnabled, ONS Nodes or ONS Wallet file config elements
def activeGridLinkInfo():
noActiveGridLinkErrors = 0
header(ACTIVE_GRIDLINK_INFO)
doPrint(CHECKING_FOR_ACTIVE_GRIDLINK_USAGE + COLON)
# Examine the Oracle JDBC Parameter Beans for Active GridLink usage
jdbcParamObjectNamePattern =
ObjectName("com.bea:Type=weblogic.j2ee.descriptor.wl.JDBCOracleParamsBean,*")
noActiveGridLinkErrors +=1
dataSourceName = jdbcParam.getKeyProperty('Name')
jdbcDataSourceNamePattern =
ObjectName("com.bea:Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceParamsBean,Name=" +
dataSourceName + ",*")
jndiName = ""
jndiNames = mbs.getAttribute(jdbcDataSource,"JNDINames")
for i in jndiNames:
if jndiName != "":
jndiName = jndiName + i
if noActiveGridLinkErrors > 0:
licenseDoc(LICENSE_ACTIVE_GRIDLINK, URL_ACTIVE_GRIDLINK)
def hasActiveGridlinkAttribute(jdbcParam):
info = mbs.getMBeanInfo(jdbcParam)
attributes = info.getAttributes()
for a in attributes:
if a.getName() == "ActiveGridlink":
return false
username = None
password = None
url = None
out = None
argNo = 1
if sys.argv[argNo] == "username":
username = sys.argv[argNo + 1]
argNo = argNo + 2
password = sys.argv[argNo + 1]
argNo = argNo + 2
url = sys.argv[argNo + 1]
argNo = argNo + 2
verbose = true
argNo = argNo + 1
out = sys.argv[argNo + 1]
argNo = argNo + 2
else:
argNo = argNo + 1
try:
if out != None:
printException(ex)
exit()
header(WLS_BASIC_AUDIT)
timestamp(System.currentTimeMillis())
hideDumpStack("true")
try:
host_name = socket.gethostname()
else:
connect()
doPrint(CONNECTION_ERROR + COLON)
printExceptionInfo(ex)
print CONNECTION_ERROR
exit()
try:
customerApps()
printExceptionInfo(ex)
tryTest(domainInfo)
tryTest(clusterInfo)
tryTest(serverInfo)
tryTest(singletonServiceInfo)
tryTest(serviceMigrationInfo)
tryTest(globalWorkManagerInfo)
tryTest(applicationWorkManagerInfo)
tryTest(deploymentInfo)
tryTest(applicationFastSwapInfo)
tryTest(jmsInfo)
tryTest(tuxedoConnectorInfo)
tryTest(snmpInfo)
tryTest(applicationModeInfo)
tryTest(moduleDeploymentInfo)
tryTest(httpPublishSubscribeServerInfo)
tryTest(diagnosticsFrameworkInfo)
tryTest(activeGridLinkInfo)
summary()
exit()