<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Find WebLogic MBeans with Ease</title>
	<atom:link href="http://monduke.com/2007/01/14/find-weblogic-mbeans-with-ease/feed/" rel="self" type="application/rss+xml" />
	<link>http://monduke.com/2007/01/14/find-weblogic-mbeans-with-ease/</link>
	<description>Covering J2EE Security and WebLogic Topics</description>
	<lastBuildDate>Tue, 13 Apr 2010 01:53:49 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Anders Båtstrand</title>
		<link>http://monduke.com/2007/01/14/find-weblogic-mbeans-with-ease/comment-page-1/#comment-14236</link>
		<dc:creator>Anders Båtstrand</dc:creator>
		<pubDate>Tue, 30 Jun 2009 06:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=41#comment-14236</guid>
		<description>Thanks for the tip, Mike! weblogic.admin still works, and I found my MBean in no time!</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, Mike! weblogic.admin still works, and I found my MBean in no time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2007/01/14/find-weblogic-mbeans-with-ease/comment-page-1/#comment-3138</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Thu, 05 Apr 2007 00:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=41#comment-3138</guid>
		<description>Thanks for the tips, Andre.

I need to study the script some more but the poor man&#039;s version seems to do the trick. Very slowly, though. ;-)</description>
		<content:encoded><![CDATA[<p>Thanks for the tips, Andre.</p>
<p>I need to study the script some more but the poor man&#8217;s version seems to do the trick. Very slowly, though. <img src='http://monduke.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Glauser</title>
		<link>http://monduke.com/2007/01/14/find-weblogic-mbeans-with-ease/comment-page-1/#comment-3123</link>
		<dc:creator>Andre Glauser</dc:creator>
		<pubDate>Tue, 03 Apr 2007 22:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=41#comment-3123</guid>
		<description>Using WLST: The code below will walk the entire tree, and you can then print out or save to a file all the MBeans names and the attributes for each MBean.

The cmo object will give you the type of the MBean, and you can use getMBeanInfo() for more data to write it out.

Alternatively you could use the poor mans version of the script and just type &lt;code&gt;find(&#039;&#039;)&lt;/code&gt;

&lt;code&gt;
def walkTree(currentDir) :

cd (currentDir)

# currentAttributes = ls(currentDir, returnMap=&#039;true&#039;, returnType=&#039;a&#039;)

# print &quot;There are [%d] attributes in the directory&quot; % len(currentAttributes)

childDirs = ls(currentDir, returnMap=&#039;true&#039;, returnType=&#039;c&#039;)

print &quot;Found [%d]&quot; % len(childDirs)

if len(childDirs) &lt; = 0 :

return

for child in childDirs :

childDirectory = currentDir + &#039;/&#039; + child

walkTree(childDirectory)

connect(&#039;qualityuser&#039;,&#039;qualityuser&#039;,&#039;t3://localhost:7301&#039;)

walkTree(&#039;/&#039;)&lt;/code&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Using WLST: The code below will walk the entire tree, and you can then print out or save to a file all the MBeans names and the attributes for each MBean.</p>
<p>The cmo object will give you the type of the MBean, and you can use getMBeanInfo() for more data to write it out.</p>
<p>Alternatively you could use the poor mans version of the script and just type <code>find('')</code></p>
<p><code><br />
def walkTree(currentDir) :</p>
<p>cd (currentDir)</p>
<p># currentAttributes = ls(currentDir, returnMap='true', returnType='a')</p>
<p># print "There are [%d] attributes in the directory" % len(currentAttributes)</p>
<p>childDirs = ls(currentDir, returnMap='true', returnType='c')</p>
<p>print "Found [%d]" % len(childDirs)</p>
<p>if len(childDirs) < = 0 :</p>
<p>return</p>
<p>for child in childDirs :</p>
<p>childDirectory = currentDir + '/' + child</p>
<p>walkTree(childDirectory)</p>
<p>connect('qualityuser','qualityuser','t3://localhost:7301')</p>
<p>walkTree('/')</code></code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
