Quantcast
Channel: Java mon amour
Viewing all articles
Browse latest Browse all 1121

WLST to monitor all Datasources on all Managed Servers by connecting only to the Admin

$
0
0

#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()



Viewing all articles
Browse latest Browse all 1121

Trending Articles