Microsoft Virtualization Discussions

Get-NcAggr Provides different Output when run from script

wmorlett

Getting different output when I run Get-NcAggr froma Powershell prompt VS. a PS1 script.  I'd like to get the short version or a custom output of: Name, TotalSize, Used, Available - having a lot of trouble getting the -Attributes switch to work with any values.

When I run Get-NcAggr from a Powershell Window against I get the following output>

Name                  State   TotalSize  Used  Available Disks RaidType    RaidSize  Volumes
----                  -----   ---------  ----  --------- ----- --------    --------  -------
usbo_pfsx_cf01a_aggr0 online     2.2 TB   95%   103.9 GB   3   raid_dp, normal14       1
usbo_pfsx_cf01a_sas_aggr1 online    40.4 TB0%40.3 TB  94   raid_dp, normal19      14
usbo_pfsx_cf01b_aggr0 online     2.2 TB   95%   103.9 GB   3   raid_dp, normal14       1
usbo_pfsx_cf01b_sata_a... online   139.4 TB0%   139.4 TB  72   raid_dp, normal18      13
usbo_pfsx_cf01b_sata_a... online   104.6 TB0%   104.6 TB  54   raid_dp, normal18       0

When I run it from a script I get a lot more information >

Aggr64bitUpgradeAttributes : DataONTAP.C.Types.Aggr.Aggr64bitUpgradeAttributes

AggregateName              : usbo_pfsx_cf01b_sata_aggr1

AggregateUuid              : 0d17aabf-0109-11e2-8182-123478563412

AggrFsAttributes           : DataONTAP.C.Types.Aggr.AggrFsAttributes

AggrInodeAttributes        : DataONTAP.C.Types.Aggr.AggrInodeAttributes

AggrOwnershipAttributes    : DataONTAP.C.Types.Aggr.AggrOwnershipAttributes

AggrPerformanceAttributes  : DataONTAP.C.Types.Aggr.AggrPerformanceAttributes

AggrRaidAttributes         : DataONTAP.C.Types.Aggr.AggrRaidAttributes

AggrSnaplockAttributes     : DataONTAP.C.Types.Aggr.AggrSnaplockAttributes

AggrSnapmirrorAttributes   : DataONTAP.C.Types.Aggr.AggrSnapmirrorAttributes

AggrSnapshotAttributes     : DataONTAP.C.Types.Aggr.AggrSnapshotAttributes

AggrSpaceAttributes        : DataONTAP.C.Types.Aggr.AggrSpaceAttributes

AggrStripingAttributes     :

AggrVolumeCountAttributes  : DataONTAP.C.Types.Aggr.AggrVolumeCountAttributes

AggrWaflironAttributes     :

Name                       : usbo_pfsx_cf01b_sata_aggr1

NcController               : usbo-pfsx-cf01.customer.com

Nodes                      : {usbo-pfsx-cf01b}

StripingType               : not_striped

State                      : online

TotalSize                  : 153321851584512

Used                       : 0

Available                  : 153241115541504

Disks                      : 72

RaidType                   : raid_dp, normal

RaidSize                   : 18

Volumes                    : 13

1 REPLY 1

cknight

Check out this thread.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public