How can I remotely list Cluster groups/owners

  • Follow


I would like to be able to list the cluster groups/owners for a remote cluster.

Can anybody help?

Many Thanks,
   =Adrian=
0
Reply Utf 3/8/2010 12:06:01 PM

Look back to March 2nd in this group for the thread "Windows 2008 - Cluster 
Commands via Powershell".

WMI is one option, there are others like using WinRM:
http://www.windowsnetworking.com/articles_tutorials/How-Windows-Server-2008-WinRM-WinRS.html

If you're using PowerShell version 2 on both ends, then you also have 
"PowerShell remoting" that you can use.

Marco

"Adrian" <Adrian@discussions.microsoft.com> wrote in message 
news:BF038F3F-ED28-42BB-9949-D5FAB25ACD8C@microsoft.com...
> I would like to be able to list the cluster groups/owners for a remote 
> cluster.
>
> Can anybody help?
>
> Many Thanks,
>   =Adrian= 

0
Reply Marco 3/8/2010 7:34:23 PM


I have a script that I use at work that gathers all cluster groups in a 
cluseter and displays the owner and other info.  I did not post it becuase it 
does a lot more than what you are asking for.  If you are interested I can 
email it to you and then if you have any questions we can chat via email.  It 
may at least point you in the right direction.

Shoot me an email at jsampson@stormontvail.org if you are interested.

"Adrian" wrote:

> I would like to be able to list the cluster groups/owners for a remote cluster.
> 
> Can anybody help?
> 
> Many Thanks,
>    =Adrian=
0
Reply Utf 3/8/2010 7:47:02 PM

I only have powershell at one end so I was hoping to use WMI. I assume I will 
need one or more of the "MSCluster_" classes - But I can't work out which one 
can give me the gorups/group_owners - I can't find an example of how to do 
this using WMI alone. Can you tell me which class I should use?

Many Thanks,
   =Adrian=

"Marco Shaw [MVP]" wrote:

> Look back to March 2nd in this group for the thread "Windows 2008 - Cluster 
> Commands via Powershell".
> 
> WMI is one option, there are others like using WinRM:
> http://www.windowsnetworking.com/articles_tutorials/How-Windows-Server-2008-WinRM-WinRS.html
> 
> If you're using PowerShell version 2 on both ends, then you also have 
> "PowerShell remoting" that you can use.
0
Reply Utf 3/9/2010 10:06:04 AM

When I looked into the WMI MSCluster class, I came to the conclusion that 
MSCluster class does not cover everything that is returned using the 
cluster.exe command line utility. You'll need to use cluster.exe (which can 
be run remotely). 

I posted a MSCS script on Poshcode which uses both cluster.exe and WMI. The 
output of cluster.exe is parsed and a Powershell object is returned. See the 
forum post Marco referred to, for additional info.

http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.windows.powershell&tid=5d3a681f-8a08-418b-9fc4-a518abfacc7c&mid=38f94ebd-99c4-4fc1-ab19-ede26c14e0bc&cat=en_US_3750E87B-4971-4A5C-A537-45F5D7ABBECC&lang=en&cr=US&sloc=&p=3

"Adrian" wrote:

> I only have powershell at one end so I was hoping to use WMI. I assume I will 
> need one or more of the "MSCluster_" classes - But I can't work out which one 
> can give me the gorups/group_owners - I can't find an example of how to do 
> this using WMI alone. Can you tell me which class I should use?
> 
> Many Thanks,
>    =Adrian=
> 
> "Marco Shaw [MVP]" wrote:
> 
> > Look back to March 2nd in this group for the thread "Windows 2008 - Cluster 
> > Commands via Powershell".
> > 
> > WMI is one option, there are others like using WinRM:
> > http://www.windowsnetworking.com/articles_tutorials/How-Windows-Server-2008-WinRM-WinRS.html
> > 
> > If you're using PowerShell version 2 on both ends, then you also have 
> > "PowerShell remoting" that you can use.
0
Reply Utf 3/9/2010 9:47:01 PM

In case it is of any interest - I've just managed to get the information I 
need using the "MSCluster_NodeToActiveGroup" class.

Best Regards,
   =Adrian=

"Chad" wrote:

> When I looked into the WMI MSCluster class, I came to the conclusion that 
> MSCluster class does not cover everything that is returned using the 
> cluster.exe command line utility. You'll need to use cluster.exe (which can 
> be run remotely). 

0
Reply Utf 3/11/2010 11:56:01 AM

5 Replies
1086 Views

(page loaded in 0.109 seconds)

Similiar Articles:













8/1/2012 5:44:22 PM


Reply: