Monday, October 26, 2015

Find custom property present in what all database

import re
cell=AdminControl.getCell()
ds=AdminConfig.list('DataSource', AdminConfig.getid( '/Cell:'+cell+'/')).splitlines()
for data in ds:
 propSet = AdminConfig.showAttribute(data,'propertySet')
 name=AdminConfig.showAttribute(data,'name')
 custom_properties=AdminConfig.showall(propSet).splitlines()
 for single_custom_property in custom_properties:
  if single_custom_property.find("webSphereDefaultIsolationLevel")==-1:
   STATUS=1
  else:
   print name

No comments:

Post a Comment