PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 120
Liked: 17 times
Joined: May 11, 2018 8:42 am
Contact:

datadomain dell emc tab

Post by matteu »

Hello,

Where can I find informations displays on Dell EMC data domain tab when I open properties of a datadomain repository ?
I would like :
-Use fc connectivity or not
-Credentials
-Gateway server auto / manual
-Encryption Enable status
-Encryption value

I don't find it when I use Get-VBRBackupRepository | where {$_.type -eq "ddboost"}

Thanks for your help

matteu
Veeam Legend
Posts: 120
Liked: 17 times
Joined: May 11, 2018 8:42 am
Contact:

Re: datadomain dell emc tab

Post by matteu »

Someone know the answer or not ?

oleg.feoktistov
Veeam Software
Posts: 1135
Liked: 389 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: datadomain dell emc tab

Post by oleg.feoktistov »

Hi,

This info, except for gateway server id, is kept in a different internal class. See the script with explanation below:

Code: Select all

$repo = Get-VBRBackupRepository -Name 'DataDomain'

# Get gateway server id. Returns zeroes if selection policy is auto, server id if manual.
$repo.HostId 

# Get data domain server object
$dataDomain = [Veeam.Backup.Core.CDataDomainRepositoryServer]::GetByRepository($repo.Id)

# Get connection type. Can be equal to FibreChannel or TcpIp.
$dataDomain.ConnectionType

# Get creds
$dataDomain.DDCredsId

# Get encryption info. Equals to None if disabled, holds Medium or HIgh if enabled.
$dataDomain.DDEncryptionType
Hope it helps,
Oleg

matteu
Veeam Legend
Posts: 120
Liked: 17 times
Joined: May 11, 2018 8:42 am
Contact:

Re: datadomain dell emc tab

Post by matteu »

Hello, thanks your for your answer.

Is there a way for me to know all existing class like [Veeam.Backup.Core.CDataDomainRepositoryServer] or maybe others ?
When I try to find information, I just use get-member and try the possibilities but maybe there is an easier way to do it ?

matteu
Veeam Legend
Posts: 120
Liked: 17 times
Joined: May 11, 2018 8:42 am
Contact:

Re: datadomain dell emc tab

Post by matteu »

I'm helping from [Veeam.Backup.Core.CDataDomainRepositoryServer] to find from storeonce : [Veeam.Backup.Core.CStoreOnceRepositoryServer]
But my previous question was for powershell in general :) (I'm not developper)

oleg.feoktistov
Veeam Software
Posts: 1135
Liked: 389 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: datadomain dell emc tab

Post by oleg.feoktistov »

You can use whatever approach you find, really. Usually, I dive into .NET namespaces and classes using VS Code with Powershell extension. Your friend there is IntelliSense, with it you can find anything. Also, if you are not sure yet where to start searching, you can always invoke GetType() method on whatever object or property you like and see where it is located:

Code: Select all

PS C:\Users\Administrator\Documents> $job = Get-VBRJob -Name 'Backup Job'
PS C:\Users\Administrator\Documents> $job.JobType.GetType() | select FullName

FullName
--------
Veeam.Backup.Model.EDbJobType
Just please be careful because that's .NET realm you are entering, which means whatever class you use is unsupported and source code for it can change from release to release. Whereas, cmdlets and classes with VBR prefix are safe: their parameters/properties are fixed, and we warn if something becomes deprecated. Thanks!

matteu
Veeam Legend
Posts: 120
Liked: 17 times
Joined: May 11, 2018 8:42 am
Contact:

Re: datadomain dell emc tab

Post by matteu »

Thank you very much for your help :)

I don't want to use .net except if there is no other way.
I'm building an audit script and I would like to get as much datas as I can.
I'm using a lot this forum to build it and then, I will post it here for some test and improvment :)

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests