Closed SahFari closed 4 months ago
Take a look at the New-RscQueryNas -Operation Share
query to see if that gives you what you need.
Hi Chris,
I did not get the results I wanted New-RscQueryNas -Operation Share
Op Var Field
Share {[fid, [vardict]{}]} RubrikSecurityCloud.Types.NasShare
What I want to see is the list of shares and there status
This is how we monitor their status in SquardUp.
$nasshare=Get-RubrikNASShare $nasshare | add-member -membertype Noteproperty "state" -Value "" foreach ($nas in $nasshare){ $nas.state = if ($nas.status -eq "Connected") {'Healthy'} else {'Critical'} } $nasshare | sort-object name
Med vänlig hälsning Fari Sah
Fari Sah | IT-tekniker Skogsstyrelsen | IT-enheten 55183 Jönköping 036-35 93 00 (växel) | 036-35 94 31 (direkt) @.**@.> | skogsstyrelsen.sehttps://skogsstyrelsen.se/ Så behandlar vi personuppgifterhttps://skogsstyrelsen.se/gdpr
@.***
Från: Chris Lumnah @.> Skickat: den 19 mars 2024 19:06 Till: rubrikinc/rubrik-powershell-sdk @.> Kopia: Sah Fari IT-enheten @.>; Author @.> Ämne: [EXTERNT] Re: [rubrikinc/rubrik-powershell-sdk] Get-RscNasShare? (Issue #54)
Take a look at the New-RscQueryNas -Operation Share query to see if that gives you what you need.
— Reply to this email directly, view it on GitHubhttps://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgithub.com%2frubrikinc%2frubrik%2dpowershell%2dsdk%2fissues%2f54%23issuecomment%2d2007823045&umid=05d00176-4fa9-47dd-8172-68a48ad9e838&auth=89f4a07cc39245e508f65055e50ab28ead4ccc3d-804ab8285c0d620c4c2da73152874d25b15785fd, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARXZQJBYSKRZNICYIFYZ3ODYZB5ABAVCNFSM6AAAAABETVJGJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXHAZDGMBUGU. You are receiving this because you authored the thread.Message ID: @.**@.>>
The cmd I was providing was the high level cmd to allow you to dig deeper into what you may be after. For just a list of your NAS shares, look at the below.
$query = New-RscQueryNas -Operation Systems
$query.invoke().nodes
Get-RscNasShare
will be release in version 1.1 , please re-open issue if you're still running into problems.
Hi,
Is there a cmdlet for NAS Shares in RSC? Get-RubrikNASShare doesn’t show any NAS share since the we migrated to RSC from CDM.
Cannot find NAS under the FileList in PowerShell Gallery | RubrikSecurityCloud
I need to change the script that we use in our monitoring system, SCOM.