Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Engine state is changed from Available to Stopped

3,516 views
Skip to first unread message

JD

unread,
Sep 5, 2008, 2:28:00 AM9/5/08
to
Hi all,

i create PS script that will be startet automatic from an event (or more
than one). Sometimes i got the following errors. (this will be happened if
the script runs more than one at the same time - this is normal and should be
possible)


Engine state is changed from Available to Stopped.

Details:
NewEngineState=Stopped
PreviousEngineState=Available

SequenceNumber=40


Provider "OperationsManagerMonitoring" is Stopped.
Provider "Certificate" is Stopped.
ans so on for Variable, Function and Registry

This is only a short extract

thx
jd

Marco Shaw [MVP]

unread,
Sep 5, 2008, 7:50:11 AM9/5/08
to

Can you provide more details on the message and maybe what the scripts
are doing?

Are these scripts running in the Operations Manager Command Shell?

Marco

--
*Microsoft MVP - Windows Server - Admin Frameworks
https://mvp.support.microsoft.com/profile/Marco.Shaw
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com

JD

unread,
Sep 9, 2008, 4:03:00 AM9/9/08
to
The following script will be called by a batch file. It works. Only if many
call at the same time prduces the error.

---------------------------------
Add-PSSnapin Microsoft.EnterpriseManagement.OperationsManager.Client
cd OperationsManagerMonitoring::
New-ManagementGroupConnection localhost
cd localhost

$myid = $args[0]
$mytype = $args[1]
$mystate = $args[2]

if (Get-Alert -ID "$myid")
{
$outputfilename = 'c:\log\alerts\new\' + $myid + '.' + $mystate
#echo $outputfilename
Get-Alert -ID "$myid">"$outputfilename"
Write-Output "myType: $mytype">>"$outputfilename"
}
else
{
$outputfilename = 'c:\log\alerts\notfound\' + $myid + '.' + $mystate
#echo $outputfilename
Get-Alert -ID "$myid">"$outputfilename"
Write-Output "myType: $mytype">>"$outputfilename"

JD

unread,
Sep 24, 2008, 8:50:01 AM9/24/08
to
no news?
0 new messages