-
- Enthusiast
- Posts: 94
- Liked: 6 times
- Joined: Apr 21, 2011 7:37 pm
- Contact:
Get-VBRJob getlaststate method
Are there states other than "Working" and Stopped" for a backup job when using Get-VBRJob's getlaststate method?
-
- Veteran
- Posts: 293
- Liked: 19 times
- Joined: Apr 13, 2011 12:45 pm
- Full Name: Thomas McConnell
- Contact:
Re: Get-VBRJob getlaststate method
Starting->Working->Stopping->Stopped is the ones I've seen
-
- Enthusiast
- Posts: 94
- Liked: 6 times
- Joined: Apr 21, 2011 7:37 pm
- Contact:
Re: Get-VBRJob getlaststate method
I am looking for the ones you don't normally see (if they even exist). There could have been an "Initializing" state that came and went before you ran get-vbrjob or there could be a set of errors states.
-
- Veteran
- Posts: 293
- Liked: 19 times
- Joined: Apr 13, 2011 12:45 pm
- Full Name: Thomas McConnell
- Contact:
Re: Get-VBRJob getlaststate method
I kicked off the job from powershell and right after that stuck it in a loop
http://dl.dropbox.com/u/4304771/state.txt
if there are any more then they must be hard to catch as you can see by my state.txt
Code: Select all
$a = Get-VBRJob | ?{$_.Name -eq "JobName" }
do {
Add-Content "c:\output.txt" $a.GetLastState()
} while ( $a.GetLastState() -ne "Stopped" )
if there are any more then they must be hard to catch as you can see by my state.txt
-
- Veteran
- Posts: 282
- Liked: 26 times
- Joined: Nov 10, 2010 6:51 pm
- Full Name: Seth Bartlett
- Contact:
Re: Get-VBRJob getlaststate method
As always Peter
Code: Select all
public enum EState
{
Stopped = -1,
Starting = 3,
Stopping = 4,
Working = 5,
Pausing = 6,
Resuming = 7,
}
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
-
- Veteran
- Posts: 293
- Liked: 19 times
- Joined: Apr 13, 2011 12:45 pm
- Full Name: Thomas McConnell
- Contact:
Re: Get-VBRJob getlaststate method
So are you going to tell us how to pause the jobs then
-
- Chief Product Officer
- Posts: 31814
- Liked: 7302 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Contact:
Re: Get-VBRJob getlaststate method
Needless to say I am surprised myself
-
- Veteran
- Posts: 282
- Liked: 26 times
- Joined: Nov 10, 2010 6:51 pm
- Full Name: Seth Bartlett
- Contact:
Re: Get-VBRJob getlaststate method
Probably placed in there for possibilities, but pausing would just be all sorts of bad with snapshots
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Who is online
Users browsing this forum: No registered users and 14 guests