#connect to the admin server
domainRuntime()
allservers=ls('/ServerRuntimes/', returnMap='true')
for server in allservers:
allds = ls('/ServerRuntimes/' + server + '/JDBCServiceRuntime/' + server + '/JDBCDataSourceRuntimeMBeans', returnMap='true')
for ds in allds:
cd ('/ServerRuntimes/' + server + '/JDBCServiceRuntime/' + server + '/JDBCDataSourceRuntimeMBeans/' + ds)
print server, ds, cmo.getActiveConnectionsCurrentCount()
↧
WLST to monitor all Datasources on all Managed Servers by connecting only to the Admin
↧