Hi -
As an option, perhaps using the AT scheduler in Windows
to check the services periodically.. it would probably
run more efficiently and the following batch code could
check the SM services, restart if required, and write
activity to a logfile.
Batch Code Sample:
----------------------------------------------------------
@echo off
set zLog=%cd%\checkSiteMinder.log
echo ==== %date% - %time% ==== >> %zLog%
set zServices="SiteMinder Authentication Service","SiteMinder
Authorization Service"
for %%i in (%zServices%) do (
net start | find /i "%%~i" > nul
if errorlevel 0 if not errorlevel 1 (
echo Running: %%i >> %zLog%
) else (
echo Not Running: %%i >> %zLog%
echo Attempting to start service.. >> %zLog%
net start %%i >> %zLog%
if errorlevel 0 (
echo Success Starting %%i >> %zLog%
) else (
echo ERROR Starting %%i >> %zLog%
)
)
)
Logged Output Sample:
----------------------------------------------------------
==== Tue 07/22/2003 - 11:26:00.35 ====
Not Running: "SiteMinder Authentication Service"
Attempting to start service..
The SiteMinder Authentication Service service is starting.
The SiteMinder Authentication Service service was started successfully.
Success Starting "SiteMinder Authentication Service"
Not Running: "SiteMinder Authorization Service"
Attempting to start service..
The SiteMinder Authorization Service service is starting.
The SiteMinder Authorization Service service was started successfully.
Success Starting "SiteMinder Authorization Service"
==== Tue 07/22/2003 - 11:26:17.85 ====
Running: "SiteMinder Authentication Service"
Running: "SiteMinder Authorization Service"
==== Tue 07/22/2003 - 11:26:20.77 ====
Running: "SiteMinder Authentication Service"
Running: "SiteMinder Authorization Service"
Hope this helps..
Dave
-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 10:57 AM
To: Spectra-Talk
Subject: RE: SiteMinder Service Status
> >> You would have to install the tools in the windows 2000
> resource kit.
Just go to a command prompt and type net.
> >There is also a 'native' tool, "net" to do this.
> >
> >> However, what happenns if the SitMinder service crashes
> >> unexpectedly, and as you might know this happenns very often.
> >> Would tList.exe still list the service? My guess is it would,
> >> because the SiteMinder Authentication/Authorization service
> >> status would still be "started" even though the service has
> >> crashed. I need a script to monitor the siteMinder services
> >> and send alerts when the service is not responding.
> >
> >Actually, I always thought a crashed service did NOT show up as
> >running.
> >
> >Another option is to get a list of running processes. I'm
> sure you can
> >find a DOS tool for this.
> >
http://www.sysinternals.com/ - search here for pstools. One of them
will list running processes.
-Ray
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the mailserver that powers this list at
http://www.coolfusion.com
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.