Select Page

Check DRM Application Status – vbscript

Author: Eric Russo | | October 3, 2014

Here is a small vbscript that can be used to check if DRM Application is up and running, this will come handy if for any reason you want to check if application is up and may be kick off exports form batch utility. Or may be use this to notify support team whenever the application is down.

1. Create a text file with extension vbs. e.g. Check_Application_Status.vbs

Note: In the example i’m only checking for Engines,Services, Process Manager and netjnibridge. If you want you can include DRM-api-Adapter and event-host.

— Here is the vbscript code —
set service = GetObject(“winmgmts:”)
i=1
cnt=0
for each Process in Service.InstancesOf(“Win32_Process”)
If Process.Name=”drm-engine.exe” Then
i=i+1
if i=2 then
cnt=cnt+1
end if
ElseIf Process.Name=”drm-process-manager.exe” Then
cnt=cnt+1
ElseIf Process.Name=”drm-service.exe” Then
cnt=cnt+1
ElseIf Process.Name=”drm-netjnibridge-host.exe” Then
cnt=cnt+1
End If
Next
If cnt >=4 Then
Wscript.Quit(0)
Else
Wscript.Quit(1)
End If
— end of the vbscript code — — Batch File to call the vbscript —
cscript Check_Application_Status.vbs
GoTo %ERRORLEVEL%
:0
echo Drm Services are up and running.
goto End
:1
echo DRM services are down. Please Restart.
goto End
:End
— End of Batch File —

How to Solve the Oracle Error ORA-12154: TNS:could not resolve the connect identifier specified

The “ORA-12154: TNS Oracle error message is very common for database administrators. Learn how to diagnose & resolve this common issue here today.

Vijay Muthu | February 4, 2021

How to Recover a Table from an Oracle 12c RMAN Backup

Our database experts explain how to recover and restore a table from an Oracle 12c RMAN Backup with this step-by-step blog. Read more.

Megan Elphingstone | February 2, 2017

Data Types: The Importance of Choosing the Correct Data Type

Most DBAs have struggled with the pros and cons of choosing one data type over another. This blog post discusses different situations.

Craig Mullins | October 11, 2017

Subscribe to Our Blog

Never miss a post! Stay up to date with the latest database, application and analytics tips and news. Delivered in a handy bi-weekly update straight to your inbox. You can unsubscribe at any time.

Work with Us

Let’s have a conversation about what you need to succeed and how we can help get you there.

CONTACT US

Work for Us

Where do you want to take your career? Explore exciting opportunities to join our team.

EXPLORE JOBS