#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()
No comments:
Post a Comment
comments where you are promoting your business will be marked as SPAM :o)