We help IT Professionals succeed at work.

IBM WebSphere PMI wsadmin

sunilsagar
sunilsagar asked
on
Hi

I am new to wsadmin, want to create jython script, which can enable parameters in PMI (IBM WebSpehere Application Server v7).

so using jython script want to enable few parameters for all the JVMs present on the server.

Thanks
Sunil
Comment
Watch Question

HonorGodSoftware Engineer
BRONZE EXPERT

Commented:
Sunil:

  Why is this only 250 points?  ;-)

  You do realize that this is a non-trivial request, right?

Q: Are you asking that the configuration setting for PMI be changed?

Q: Or are you asking that the setting of the active PMI MBean setting be changed?

Q; Or both?

Author

Commented:
Hi HonorGod,

thanks for quick reply, I didn't knew about the points , I thought is related sev :)

I want to change the configuration setting for PMI. Like in when we go in custom, there are many parameters we enable by selecting and click enable in GUI.

I want to first set the parameters of all values (if enabled/disabled). Also if possible we can get the parameters value ..
HonorGodSoftware Engineer
BRONZE EXPERT

Commented:
Are there specific PMI settings in which you are interested?

Or do you really mean that you want to enable / disable everything?

Author

Commented:
have long list :)

I have to enable parameters for these objects :


For Enterprise Beans PMI module, click Enterprise Beans, select the following
metrics and click Enable at the top of the table:
• LiveCount
• LoadTime
• MessageBackoutCount
• MessageCount
• MethodResponseTime
• PooledCount
• ReadyCount
• ServerSessionPoolUsage
• StoreTime
For the JDBC Connection Pools PMI module, click JDBC Connection Pools,
select the following metrics, and click Enable at the top of the table:
• AllocateCount
• FreePoolSize
• JDBCTime
• UseTime
• WaitTime
• WaitingThreadCount
For the JCA Connection Pools PMI module, click JCA Connection Pools, select
the following metrics, and click Enable at the top of the table:
• AllocateCount
• FaultCount
• FreePoolSize
• PercentUsed
• UseTime
• WaitingThreadCount
• WaitTime
For the ORB PMI module, click ORB, select the following metrics, and click
Enable at the top of the table:
• ConcurrentRequestCount
• LookupTime
• ProcessingTime
• RequestCount
For the Servlet Session Manager PMI module, click Servlet Session Manager,
select the following metrics, and click Enable at the top of the table:
• ActiveCount
• ExternalReadTime
• ExternalWriteTime
• LiveCount
• SessionObjectSize
For the Thread Pools PMI module, click Thread Pools, select the following
metrics, and click Enable at the top of the table:
• ActiveCount
• CreateCount
• DestroyCount
• PercentMaxed
• PoolSize
For the Transaction Manager PMI module, click Transaction Manager, select
the following metrics, and click Enable at the top of the table:
• ActiveCount
• GlobalTimeoutCount
• GlobalTranTime
• LocalActiveCount
• LocalTimeoutCount
• LocalTranTime
For the Web Applications PMI module, click Web Applications, select the
following metrics, and click Enable at the top of the table:
• ConcurrentRequests
• ErrorCount
• LoadedServletCount
• ReloadCount
Click Save at the top of the window
9.      Enable SIBus related metrics in WAS
For Queues, click SIB Messaging Engines > <bus instance name> >
Destinations > Queues. Select the following metrics and click Enable at the
top of the table:
• AggregateMessageWaitTime
• AvailableMessageCount
• LocalMessageWaitTime
• LocalOldestMessageAge
• TotalMessagesConsumedCount
• TotalMessagesProducedCount
• UnavailableMessageCount
For Topicspaces, click SIB Messaging Engines > <bus instance name> >
Destinations > Topicspaces. Select the following metrics and click Enable at
the top of the table:
• AssuredPersistentMessagesPublishedCount
• IncompletePublicationCount
• LocalPublisherCount
• ReportEnabledPublicationExpiredCount
• TotalMessagesPublishedCount
For Mediations, click SIB Messaging Engines > <bus instance name> >
<application mediation name>. Select the following metrics and click
Enable at the top of the table:
• MediatedMessagesCount
• MediationTime
For Data Store, click SIB Messaging Engines > <bus instance name> >
Storage Management > Data Store. Select the following metric and click
Enable at the top of the table:
• JDBCOpenCount
For File Store, click SIB Messaging Engines > <bus instance name> >
Storage Management > File Store. Select the following metrics and click
Enable at the top of the table:
• FileStoreLogSpace
• FileStorePermanentObjectStoreSpace
• FileStoreTemporaryObjectStoreSpace
For Messaging Engines, click SIB Communications > Messaging Engines >
Standard Statistics. Select the following metrics and click Enable at the top
of the table:
• MessageBytesReadCount
• MessageBytesWrittenCount
• ReadsBlockedCount
• WritesBlockedCount
For WMQ Links, click SIB Communications > WMQ Links > Standard
Statistics. Select the following metrics and click Enable at the top of the
table:
• CommsErrorsCount
• LongRetriesCount
• MessagesReceivedCount
• MessagesSentCount
• QMAttachedCount
• ReadsBlockedCount
• WritesBlockedCount

Author

Commented:
is it possible , if we get the initial status and then we can set those values.
HonorGodSoftware Engineer
BRONZE EXPERT

Commented:
Q: Do you really think that 250 points accurately represents the time, effort, and expertise required to do this?!?

Q: Are you interested in using this script, or these scripts to query / verify / modify these PMI setting for 1 or more Application Servers using command line options, or input / output files, or some other technique?

Author

Commented:
Hi HonorGod,

I am looking for script (wsadmin) or shell script which can query / modify the PMI setting for more application servers.

I am not sure of the technique, we can use any of the technique.

Sorry for the 250 thing, have opened another question.

Thanks
HonorGodSoftware Engineer
BRONZE EXPERT

Commented:
Another question isn't the right way to do it.  Cancel / close that one, and just increase the points for this one.

Author

Commented:
ooops .. just noticed that , I can change points from here .. :) done,
HonorGodSoftware Engineer
BRONZE EXPERT

Commented:
ok, let's start with this -

Do you need to change the PMI settings for your Deployment Manager and Node agent virtual machines, or just the Application Server virtual machines?
HonorGodSoftware Engineer
BRONZE EXPERT

Commented:
btw, thanks for increasing the points. ;-)

You still haven't answered the question about how the values are to be changed.

Technique #1: Change the configuration settings
- These changes only take effect when the Application Server is next started

Technique #2: Change the active settings
- These changes take effect immediately, and are lost when the Application Server is stopped

Author

Commented:
thanks ,

I want to configure the PMI settings for nodeagent and application server.

I think , technique would be good. As, after making the changes, we will restart the application server, and setting will remain until we change it.

Thanks
Software Engineer
BRONZE EXPERT
Commented:
I finally remember to go looking for this question.

Sorry that it was forgotten.

Your most recent update doesn't identify one technique, or the other... ;-)

But, I just found this article that should prove extremely helpful!

http://www.IBM.com/developerworks/websphere/techjournal/1112_guillemenot/1112_guillemenot.html
HonorGodSoftware Engineer
BRONZE EXPERT

Commented:
Thanks for the grade & points.

Good luck & have a great day.