WLST to get some info about a Weblogic JMS/SAF Resource...
Example script of how to get a statistic (in this case the BytesReceivedCount) from a SAF resource (queue/topic)
Note the
# Connect to Weblogic server
# NB choose right port if you want to talk to a Managed Server instead of
# the Admin server...
connect('weblogic','weblogic','t3://localhost:7003')
serverRuntime()
# For a JMS resource:
cd('/JMSRuntime/servername.jms/JMSServers/jmsservername/Destinations/JMSModuleName!jmsservername@JMSDestinationName')
# For a SAF resource:
cd('/SAFRuntime/servername.saf/Agents/SAFAgentName/RemoteEndpoints/JMSModule!SAFImportedDestinations!SAFDestinationName')
count = cmo.getBytesReceivedCount()
print 'bytes received = %d' % count
Note the
serverRuntime() call which connects you to the runtime tree for the server you're interested in.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
Links to this post:
Create a Link
<< Home