How bout this?

Get-ClusterSharedVolume | Get-ClusterOwnerNode | % {"`nVolume and Owner"; 
$_.ClusterObject.Name + "`t" + $_.ClusterObject.OwnerNode; "`nPossible Owners"; 
$_.OwnerNodes}

I’m sure it could be prettier, but I think it gets the gist.

From: [email protected] [mailto:[email protected]] On 
Behalf Of Justin Thomas
Sent: Wednesday, July 16, 2014 1:45 PM
To: [email protected]
Subject: Re: [NTSysADM] Powershell Help

That gives the owner, but not the list of possible owners.

On Wed, Jul 16, 2014 at 12:59 PM, Crawford, Scott 
<[email protected]<mailto:[email protected]>> wrote:
Are you just wanting the Owner Node that shows up in Failover Cluster Manager? 
Something like this?

Get-ClusterSharedVolume | Select Name, OwnerNode

Scott Crawford
Systems Administrator
P: 417.865.2815 Ext. 7244<tel:417.865.2815%20Ext.%207244>
www.evangel.edu<http://www.evangel.edu/>

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] 
On Behalf Of Justin Thomas
Sent: Wednesday, July 16, 2014 12:32 PM

To: [email protected]<mailto:[email protected]>
Subject: Re: [NTSysADM] Powershell Help

| more has no effect.

I think Scott's suggestion isn't gathering the right info, not that it is 
incomplete. I did go ahead and added the force flag, and that did not change 
the results.

On Wed, Jul 16, 2014 at 12:25 PM, Elijah Buck 
<[email protected]<mailto:[email protected]>> wrote:
Is the issue really just that it is scrolling off the screen? You can
just pipe to more if that's the case:
Get-ClusterSharedVolume | Get-ClusterOwnerNode | more

Or, if you think a property isn't being displayed, you can add the
-Force flag to Format-List.

Elijah

On Wed, Jul 16, 2014 at 10:06 AM, Justin Thomas 
<[email protected]<mailto:[email protected]>> wrote:
> Hmmm, that completes and gives me info, but not quite what I'm looking for.
> This doesn't show ownership.
>
> PS C:\Users\justin.thomas> Get-ClusterSharedVolume | Get-ClusterOwnerNode |
> % {$
> _.CLusterObject.Name; $_.OwnerNodes}  | Format-List
> Cluster Disk 10
>
> Name  : HOK-55SVR
> Id    : 5
> State : Up
> Name  : HOK-56SVR
> Id    : 1
> State : Up
>
> and so on, through the other 9 resources and 3 other nodes.
>
>
> On Wed, Jul 16, 2014 at 10:18 AM, Crawford, Scott 
> <[email protected]<mailto:[email protected]>>
> wrote:
>>
>> While waiting for a guru to chime in, how does this look?
>>
>>
>>
>> Get-ClusterSharedVolume | Get-ClusterOwnerNode | % {$_.CLusterObject.Name;
>> $_.OwnerNodes}  | Format-List
>>
>>
>>
>> From: [email protected]<mailto:[email protected]>
>> [mailto:[email protected]<mailto:[email protected]>]
>>  On Behalf Of Justin Thomas
>> Sent: Wednesday, July 16, 2014 9:12 AM
>> To: [email protected]<mailto:[email protected]>
>> Subject: [NTSysADM] Powershell Help
>>
>>
>>
>> I need to view the owners of clustered resources. I can enter this command
>>
>> Get-ClusterSharedVolume | Get-ClusterOwnerNode
>>
>> and it returns most of the answer, with two nodes scrolling off the
>> screen...
>>
>> I tried
>>
>> Get-ClusterSharedVolume | Get-ClusterOwnerNode |fl
>>
>> and it got better, but I still cannot see it all
>>
>> I got a suggestion to try this:
>>
>> Get-ClusterSharedVolume | Get-ClusterOwnerNode |export-csv c:\owners.csv
>>
>> but what I get looks like this, which makes me think the command isn't
>> quite right, or complete
>>
>>
>>
>> #TYPE Microsoft.FailoverClusters.PowerShell.ClusterOwnerNodeList
>> "ClusterObject","OwnerNodes"
>> "Cluster Disk
>> 10","System.Collections.ObjectModel.Collection`1[Microsoft.FailoverClusters.PowerShell.ClusterNode]"
>> "Cluster Disk
>> 2","System.Collections.ObjectModel.Collection`1[Microsoft.FailoverClusters.PowerShell.ClusterNode]"
>>
>>
>>
>> Any thoughts?
>>
>>
>>
>> Thanks
>>
>> --
>>
>> Probable Contrarian
>>
>>
>
>
>
>
> --
> Probable Contrarian
>



--
Probable Contrarian




--
Probable Contrarian

Reply via email to