Hello,
we would like to know if is possible to get in a certain moment the cloud connect session via powershell, in order to activate a triggered alarm.
I've search in the previous posts and it seeems not directly embeded in cloud connect powershell cmdlet.. may be it's possibile via database query.
Can somebody help us ?
-
- Service Provider
- Posts: 30
- Liked: never
- Joined: May 11, 2018 3:23 pm
- Full Name: Filippo M
- Contact:
-
- Veeam Software
- Posts: 2622
- Liked: 611 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Getting CloudConnect sessions
Hi Filippo1975,
Can you specify which session you're specifically wanting to poll with powershell?
Get-VBRSession has the -Type parameter and we have several cloud session types possible, but I'm not positive that's what you're looking for. Can you share a screenshot of the session in the UI you want to report on?
Can you specify which session you're specifically wanting to poll with powershell?
Get-VBRSession has the -Type parameter and we have several cloud session types possible, but I'm not positive that's what you're looking for. Can you share a screenshot of the session in the UI you want to report on?
David Domask | Product Management: Principal Analyst
-
- Service Provider
- Posts: 30
- Liked: never
- Joined: May 11, 2018 3:23 pm
- Full Name: Filippo M
- Contact:
Re: Getting CloudConnect sessions
Hi David,
we just need to get the running session on the cloud connect... if I type on powershell session the command "Get-VBRSession -Type cloud" it seems to be hang... I 've found this in a previous post..
[Veeam.Backup.Core.CBaseSession]::GetRunning()
but i don't know why sometimes it works successfully sometimes the command is not recognized...
we just need to get the running session on the cloud connect... if I type on powershell session the command "Get-VBRSession -Type cloud" it seems to be hang... I 've found this in a previous post..
[Veeam.Backup.Core.CBaseSession]::GetRunning()
but i don't know why sometimes it works successfully sometimes the command is not recognized...
-
- Veeam Software
- Posts: 2622
- Liked: 611 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Getting CloudConnect sessions
Got it, I think I know what you're going for, and regrettably there are no supported cmdlets for this at this time.
> [Veeam.Backup.Core.CBaseSession]::GetRunning()
This is an unsupported method, but it will be the way you need to go. This is .NET Reflection, and to properly "prime" the powershell session for using .NET Reflection, you must first run a normal cmdlet to load the DLLs.
Get-VBRLicenseAutoUpdateStatus | Out-Null
[Veeam.Backup.Core.CBaseSession]::GetRunning()
Is a winning combo and will always work. Any "real" cmdlet is suitable, but Get-VBRLicenseAutoUpdateStatus is quick cmdlet, no chance to break anything, and you can just bin the output into Out-Null to avoid useless data in the shell/script output.
> [Veeam.Backup.Core.CBaseSession]::GetRunning()
This is an unsupported method, but it will be the way you need to go. This is .NET Reflection, and to properly "prime" the powershell session for using .NET Reflection, you must first run a normal cmdlet to load the DLLs.
Get-VBRLicenseAutoUpdateStatus | Out-Null
[Veeam.Backup.Core.CBaseSession]::GetRunning()
Is a winning combo and will always work. Any "real" cmdlet is suitable, but Get-VBRLicenseAutoUpdateStatus is quick cmdlet, no chance to break anything, and you can just bin the output into Out-Null to avoid useless data in the shell/script output.
David Domask | Product Management: Principal Analyst
Who is online
Users browsing this forum: No registered users and 9 guests