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

Exagrid unsupported powershell .net

Post by matteu »

Hello,

I would like to get some information about Exagrid.

1) I would like to get the firmware version of Exagrid with the unsupported .net class because I don't find official cmdlet to get it.
For Datadomain I did with [Veeam.Backup.Core.CDataDomainRepositoryServer]::GetByRepository($RepoName.Id)

2) I would like to get the Credentials GUID used.
For Datadomain I got it with $DDobj = [Veeam.Backup.DBManager.CDBManager]::Instance.DataDomainRepositoryServers.FindDataDomainServerForRepository($RepoName.Id)
$DDCredsID = $DDobj.DDCredsId.Guid
Can you provide me the way to get it for Exagrid please ?

Thanks for your help.
david.domask
Veeam Software
Posts: 2838
Liked: 650 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Exagrid unsupported powershell .net

Post by david.domask »

Hi matteu,

I don't have a real exagrid in my lab to check for 1, but you should be able to parse out the information from just Get-VBRBackupRepository. You might to check on the Host property and check the host object itself, but I don't have an actual exagrid to check with.

As for Creds, this should be doable with:

$repo = Get-VBRBackupRepository -Name "Exagrid repo"
Get-VBRCredential -Entity $repo.Host
David Domask | Product Management: Principal Analyst
matteu
Veeam Legend
Posts: 860
Liked: 136 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Exagrid unsupported powershell .net

Post by matteu »

Hello,

Thanks for your answer.
I already tried but Get-VBRBackupRepository don't return anything about hardware. It probably works the same as Datadomain and Storeonce and need to use the .Net class to retrieve this information.

For the Credentials, are you sure about it ?
I tried it for CIFS share and doesn't work and here too, I had to use .net to get it for others hardware appliance.
david.domask
Veeam Software
Posts: 2838
Liked: 650 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Exagrid unsupported powershell .net

Post by david.domask »

Hi matteu,

You're very welcome. For Exagrid, because they get added as a Linux server first, this method will work for Exagrids uniquely -- there is an Exagrid object "on top of" the Linux host. For SMB shares, on the CBackupRepository object you can find this under the Info property, and it should be the same for NFS shares.

As for hardware, maybe you can use Export-CliXml and export an example of your Exagrid to me by saving results of Export-VBRBackupRepository, and I can check it (Just send it to me in DM). I'm just not sure where this is stored and would take me some time to get in a lab with a real exagrid.
David Domask | Product Management: Principal Analyst
matteu
Veeam Legend
Posts: 860
Liked: 136 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Exagrid unsupported powershell .net

Post by matteu »

Right, the credentials works fine for Exagrid.
There is no cmdlet Export-VBRBackupRepository. What do you want I use exactly to export the configuration ?

The type of Exagrid repository is not a dedicated class like "[Veeam.Backup.Core.CstoreonceRepositoryServer]" for storone but just a generic
If I do Get-VBRBackupRepository | Where-Object {$_.typedisplay -eq "Exagrid"} | Get-Member it's type "Veeam.Backup.Core.CBackupRepository"
david.domask
Veeam Software
Posts: 2838
Liked: 650 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Exagrid unsupported powershell .net

Post by david.domask »

$repo = Get-VBRBackupRepository -Name "name of exagrid repository"
$repo | Export-CliXml -Path ~/Downloads/exagridobject.xml

We can discuss in private messages how to send it to me.
David Domask | Product Management: Principal Analyst
matteu
Veeam Legend
Posts: 860
Liked: 136 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Exagrid unsupported powershell .net

Post by matteu » 1 person likes this post

OK, PM sent !

Then, thanks for the tip to know all the values with Export-XML...

I'm always using the | Get-Member and need to find where is the information I need and test all properties ! This will save me lot's of time
david.domask
Veeam Software
Posts: 2838
Liked: 650 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Exagrid unsupported powershell .net

Post by david.domask »

Discussed in PM, regrettably doesn't look like Exagrid returns this information currently.

Just to document it, Exagrid (and Quantum and Fujitsu Eternus) repositories are a bit unique with Veeam in that you first add them as a Linux Server with the configured account for the storage, then we end up in a special chroot jail (for Exagrid anyways) to work with the appliance.

We don't get the system info returned right now with this setup, so it won't appear through Powershell at time of this writing.
David Domask | Product Management: Principal Analyst
jhoughes
Veeam Vanguard
Posts: 284
Liked: 115 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Castle Rock, CO
Contact:

Re: Exagrid unsupported powershell .net

Post by jhoughes »

matteu wrote: Mar 06, 2025 10:41 am OK, PM sent !

Then, thanks for the tip to know all the values with Export-XML...

I'm always using the | Get-Member and need to find where is the information I need and test all properties ! This will save me lot's of time
If you install the "PowerShellCookbook" module from the PS gallery, you can also pipe to 'Show-Object'.

This cmdlet will give you a pop-up window that lets you expand all properties in an Explorer type view.

This makes it super quick and easy to navigate and copy our Property names to use in your code.
Husband, Father, Solutions Architect, Geek | @DenverVMUG, @DenverPSUG, Denver Veeam UG leader | International Speaker | Veeam Vanguard | Microsoft MVP | vExpert (PRO) | Cisco Champion | ex-Tech Field Day Delegate
matteu
Veeam Legend
Posts: 860
Liked: 136 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Exagrid unsupported powershell .net

Post by matteu » 1 person likes this post

Thanks for your answer.
I tested it several times but it crashes very often on my computer.

I discover export xml is a veeam cmdlet. It will not work for general commands but export to json can be used too, so I find a new way to discover properties values of complex objects !
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests