Good afternoon.
We have a problem with backup job because often dont close session "guest files restore".
So we want script which can check open session and send about this e-mail before start backup job.
Thanks.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Aug 05, 2013 9:28 am
- Full Name: Alex Monahov
- Contact:
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Checking open session guest files restore
Unfortunately, for now you cannot get FLR restore sessions via PowerShell. At least I'm not aware of a way to achieve that goal. Thanks.
-
- VP, Product Management
- Posts: 6035
- Liked: 2860 times
- Joined: Jun 05, 2009 12:57 pm
- Full Name: Tom Sightler
- Contact:
Re: Checking open session guest files restore
Hmm, I have a few ideas about this but I need to go prove them out first.
-
- VP, Product Management
- Posts: 6035
- Liked: 2860 times
- Joined: Jun 05, 2009 12:57 pm
- Full Name: Tom Sightler
- Contact:
Re: Checking open session guest files restore
With v9 (and I think v8 as well) the following should return the active File/Application level restore sessions:
The job types are:
FileLevelRestore
LinuxFileLevelRestore
ApplicationLevelRestore
So you can just change the -like comparison if you want to only return those session types. Then you can grab the session information and send your email.
Code: Select all
Get-VBRRestoreSession | ?{$_.JobType -like "*LevelRestore" -and $_.State -eq "Working"}
FileLevelRestore
LinuxFileLevelRestore
ApplicationLevelRestore
So you can just change the -like comparison if you want to only return those session types. Then you can grab the session information and send your email.
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Checking open session guest files restore
It must have been added in version 8, indeed. And this fact has slipped from my mind.
I apologize for misguidance.
Thanks.
I apologize for misguidance.
Thanks.
Who is online
Users browsing this forum: No registered users and 9 guests