Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Lukas
Solved! See The Solution
1 ACCEPTED SOLUTION
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Lukas,
I use this:
if ( Get-NaAggr | ? { $_.Name -ieq "aggrname" } )
{
.. Aggr exists, do this
}
else
{
.. Does not exist...
}
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello,
there is many way to list existing aggregat
aggr status,
aggr status -r ( to show raid detail)
df -Ag
aggr show_space -g
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
yes, i know, but can you provide me a sample script with options when a aggrete not exists?
thx
Best Regards,
Lukas
Lukas
migration has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Lukas,
I use this:
if ( Get-NaAggr | ? { $_.Name -ieq "aggrname" } )
{
.. Aggr exists, do this
}
else
{
.. Does not exist...
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
thank you very much! This is what I looking for!
Lukas
Best Regards,
Lukas
Lukas
