Search the web
Sign In
New User? Sign Up
wlshell
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
WLShell: WebLogic 8 vs. WebLogic 9 syntax?   Message List  
Reply | Forward Message #660 of 675 |
Re: WLShell: WebLogic 8 vs. WebLogic 9 syntax?

DJ

WebLogic MBeans are organized differently in WLS 9 and 10. Here is an
example of how you can access the JDBC Pool stats in WLS 9 and 10:

connect localhost:7001 weblogic weblogic
domain.com.bea:
keys Type Name Location ServerRuntime ApplicationRuntime
cd
/JDBCConnectionPoolRuntime/cgDataSource/AdminServer/AdminServer/cgDataSource

ls -l

-rw- ActiveConnectionsAverageCount (0)
-rw- ActiveConnectionsCurrentCount (0)
-rw- ActiveConnectionsHighCount (0)
-rw- ConnectionDelayTime (630)
-rw- ConnectionLeakProfileCount (0)
-rw- ConnectionsTotalCount (5)
-rw- CurrCapacity (5)
-rw- DeploymentState (2)
-rw- Enabled (true)
-rw- FailuresToReconnectCount (0)
-rw- HighestNumAvailable (5)
-rw- HighestNumUnavailable (0)
-rw- LeakedConnectionCount (0)
-rw- MaxCapacity (20)
-rw- ModuleId (cgDataSource)
-rw- Name (cgDataSource)
-rw- NumAvailable (5)
-rw- NumUnavailable (0)
-rw- Parent
(com.bea:Name=cgDataSource,ServerRuntime=AdminServer,Location=AdminServer,Type=A\
pplicationRuntime)
-rw- PoolState (true)
-rw- Properties ({databaseName=weblogic_eval, user=weblogic})
-rw- State (Running)
-rw- StatementProfileCount (0)
-rw- Type (JDBCConnectionPoolRuntime)
-rw- VersionJDBCDriver (com.pointbase.jdbc.jdbcUniversalDriver)
-rw- WaitSecondsHighCount (0)
-rw- WaitingForConnectionCurrentCount (0)
-rw- WaitingForConnectionHighCount (0)
-rw- WorkManagerRuntimes ()

if you want to find a particular MBean, use the find command
find cgDataSource
or
find -x cgDataSource


Cheers,
Paco

--- In wlshell@yahoogroups.com, <drazenko.djuricic@...> wrote:
>
>
> > Hello Paco,
> > Hello mailing list,
> >
> > We have 96 WebLogic servers here, some of which have multiple
> > instances and multiple versions of BEA WebLogic running & installed in
> > parallel. My problem is that I wanted e.g. to monitor JDBC connection
> > pools on all those machines. So for WebLogic 8.x this could be e.g. a
> > script like this:
> >
> > ...
> > cd /JDBCConnectionPoolRuntime
> > dir
> > @pools = $LAST
> > for $pool in $pools do
> > invoke $pool/testPool
> > get $pool/State
> > get $pool/ActiveConnectionsCurrentCount
> > get $pool/WaitingForConnectionCurrentCount
> > end
> > ...
> >
> > Above script works tip top on WebLogic 8.x ... But on WebLogic 9.x all
> > the structures are completely different and I am completely lost :-(
> >
> > So my humble question is: How would I need to modify above script so
> > that it works in WebLogic 9.x too? I've spent the last few days
> > trying things out but I haven't yet figured this out.
> >
> > Looking forward for help :)
> >
> > Regards,
> > "DJ."
> >
> > Drazenko Djuricic
>





Sun Sep 2, 2007 2:03 am

sfomad
Offline Offline
Send Email Send Email

Forward
Message #660 of 675 |
Expand Messages Author Sort by Date
drazenko.djuricic@...
Send Email
Aug 30, 2007
3:46 pm

DJ WebLogic MBeans are organized differently in WLS 9 and 10. Here is an example of how you can access the JDBC Pool stats in WLS 9 and 10: connect...
sfomad
Offline Send Email
Sep 2, 2007
2:03 am

Hello Paco, thanks for your reply. Unfortunately I am still facing problems and I am obviously not yet understanding enough about WLS 9.x. My own...
drazenko.djuricic@...
Send Email
Sep 3, 2007
5:00 pm

DJ: your script is almost correct, just need to add "cd .." at the end of each for loop, to go up one level. Also make sure you have the latest version (2.1.0)...
sfomad
Offline Send Email
Sep 3, 2007
5:29 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help