ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Application Serverhow to Check cluster member exist in the specific node

Post new topicReply to topic
how to Check cluster member exist in the specific node View previous topic :: View next topic
Author Message
rampriya
PostPosted: Mon Apr 20, 2015 12:36 pm Post subject: how to Check cluster member exist in the specific node Reply with quote

Newbie

Joined: 27 Jul 2009
Posts: 9

Hi Experts,

I am looking for jython script or code to check cluster member exist in the specific node. Also how to find the last created cluster member for the specific node using jython script.

Thanks,
Ramanujan
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Apr 20, 2015 1:08 pm Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

this will list the members in the cluster

clusterName=sys.argv[0]
cell=AdminConfig.list("Cell")
cellName=AdminConfig.showAttribute(cell,'name')
cluster_config_id = AdminConfig.getid("/ServerCluster:"+clusterName )
AdminConfig.list('ClusterMember', cluster_config_id)

you can change this as per your logic.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
rampriya
PostPosted: Tue Apr 21, 2015 7:32 am Post subject: Reply with quote

Newbie

Joined: 27 Jul 2009
Posts: 9

I have this code, but I would like to know how to get the list of cluster members for each specific node.

I created few cluster members manually in the admin console. But now I would like to add some more cluster member for each node using the automated scripts. So I would like to find the last created clustermember name for each node, so that I will create few more cluster members under each node based on the last created clustermember name.

Please help me to find the last created cluster member for the specific node name.

Thanks and Regards,
Ramanujan
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Application Serverhow to Check cluster member exist in the specific node
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.