Overview Link to heading

Just a quick reminder to self on how to e.g. clear and import ADF customization metadata across all cluster servers.

Example Script Link to heading

c = getMBean("/Clusters/webapp-cluster")

for s in c.getServers():
    deleteMetadata("webapp", s.getName(), "/**")
    purgeMetadata("webapp", s.getName(), 0)
    importMetadata(application='webapp', server=s.getName(), fromLocation='webapp-customization.mar', remote='true')

Originally published at https://jensenmo.blogspot.com/2013/10/using-getmbean-to-navigate-cluster.html