Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
Which cDOt Powershell cmdlet contains the attribute that says wheathr the aggr is hosting the node root volume or not ?
Is it the Get-NcAggr or Get-NcVol ? and whats the attribute name ?
Looked at the both get-NcAggr and Get-NcVol not able to find the same.
Regards
adai
Solved! See The Solution
Get-NcAggrOption <aggr_name> will provide you with the information you are looking for. Specifically, you are looking for the root field
(Get-NcAggrOption x_aggr0_01)
I'm not a PowerShell guy so there may be a better way to filter this but Get-NcAggrOption x_aggr0_01 | Select-Object -Property Name, Value | Select-Object -Index 17 will get you directly to the root field
Get-NcAggrOption <aggr_name> will provide you with the information you are looking for. Specifically, you are looking for the root field
(Get-NcAggrOption x_aggr0_01)
I'm not a PowerShell guy so there may be a better way to filter this but Get-NcAggrOption x_aggr0_01 | Select-Object -Property Name, Value | Select-Object -Index 17 will get you directly to the root field
Thanks Drew that helps
Regards
adai
Adai,
aggr-get-iter->aggr-raid-attributes->has-local-root
Use 'aggr-get-iter and look for 'has-local-root' attribute in ''aggr-raid-attributes".
Thanks Syed. Wanted to get the attributes via PowerShell. This really helps.
Regards
adai