Microsoft Virtualization Discussions

Check if aggregate exists

LUKASPRELOVSKY

Hi all,

is it possible to check if an aggregate exists? If yes, how to do it? If not how to catch and hide the error?

Thank you,

Lukas

Best Regards,
Lukas
1 ACCEPTED SOLUTION

bsti

Hi Lukas,

  I use this: 

if ( Get-NaAggr | ? { $_.Name -ieq "aggrname" } )

{

  ..  Aggr exists, do this

}

else

{

  .. Does not exist...

}

View solution in original post

4 REPLIES 4

bsti

Hi Lukas,

  I use this: 

if ( Get-NaAggr | ? { $_.Name -ieq "aggrname" } )

{

  ..  Aggr exists, do this

}

else

{

  .. Does not exist...

}

View solution in original post

LUKASPRELOVSKY

Hi,

thank you very much! This is what I looking for!

Lukas

Best Regards,
Lukas

LTDCLSERGAO

hello,

there is many way to list existing aggregat

aggr status,

aggr status -r ( to show raid detail)

df -Ag

aggr show_space -g

Hi,

yes, i know, but can you provide me a sample script with options when a aggrete not exists?

thx

Best Regards,
Lukas
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