PowerShell script exchange
Post Reply
bkain1
Expert
Posts: 137
Liked: 8 times
Joined: Dec 23, 2020 4:43 pm
Full Name: Becki Kain
Contact:

credentials for netapp storage

Post by bkain1 »

this is a product request/question if it's veeam 11 - it doesn't appear you can query get-netapphost to get the credentials used to mount the netapp storage and the only way to get credentials for the storage is get-credentials, which gives the whole vbr. Can we request get-netapphost to show everything the gui shows?

thanks

Becki Kain
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: credentials for netapp storage

Post by oleg.feoktistov »

Hi Becki,

You can get credentials for NetApp host calling GetConnectionCredentials method():

Code: Select all

$netApp = Get-NetApphost
$netApp.GetConnectionCredentials()
Thanks,
Oleg
bkain1
Expert
Posts: 137
Liked: 8 times
Joined: Dec 23, 2020 4:43 pm
Full Name: Becki Kain
Contact:

Re: credentials for netapp storage

Post by bkain1 »

thanks, that works but doesn't say for which connection each credential is. ours are all the same, for vbr to netapp, but if we had four different service accounts, you couldn't tell which connection was which credential. thanks
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: credentials for netapp storage

Post by oleg.feoktistov »

True, but you can get the credential id precisely with another method:

Code: Select all

$netApp = Get-NetApphost
$netApp.GetConnCredsId()
Thanks!
bkain1
Expert
Posts: 137
Liked: 8 times
Joined: Dec 23, 2020 4:43 pm
Full Name: Becki Kain
Contact:

Re: credentials for netapp storage

Post by bkain1 »

that gives me a hex GUID dump. but thanks
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: credentials for netapp storage

Post by oleg.feoktistov »

You can then use that guid to parse credential object:

Code: Select all

$credsId = $netApp.GetConnCredsId()
$creds = Get-VBRCredential | where {$_.Id -eq $credsId}
Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests