Solved PC RESET Upon OA Security Software Lockup

July 18, 2011 at 03:14:24
Specs: Windows XP SP3, 4000+ / 2gb DDR
Dear Forum, I have been having a rather strange lock-up problem with my old Celeron Server PC, it does not happen every time but when it does the CPU goes to an idle state like an (eternal wait) although the last indicating message my firwall network traffic BAR shows high, I have managed to determine that my Online Armour firewall is the cause, because Online Armour provides me the best firewall protection and also enables me to limit how much CPU cycles other greedy processes may use it is the only firewall that I can use on this PC, as if not I have seen problems were other processes use 100% CPU and lock up the PC completely, I suspect the motherboard has a fault or it could be just because it's a Celeron 4000 CPU? and because it is the fastest older computer I have for running my server apps I just need a workaround.

I have written several batch files to load programs (automate) seperated by 3 minutes each so each program starts without too much happening all at once this works fine, the problem seems to occur when a cold boot occurs each day at 6pm, and on every occasion it has happened before any other programs have started to load except the firewall and Anti-virus software.

WHAT I NEED:

I want to use TASKLIST to monitor IF the OAUI.EXE is dynamically using CPU cycles and IF NO CHANGE IN STORED VALUES is received after 3 minute then force a RESET of the machine as when it is in this state not much else is likely to start or run effectively my batch files do seem to run, but if subsequent attempts to launch a program are made the system can lock up completely, I have now scheduled as a first launch schedule on every boot cycle CHKDSK C: /F on every boot cycle as a precaution, so the check for activity of OAUI.EXE can be made within the same batch file and I need it to do This check UPTO 3 times in 3 minutes and if upon the 3RD check their is no CPU usage, then RESET the PC.

I have tried a clean install of Online Armour but the problem returns...

Sure I could just bin the computer, but seems a waste as this issue may be resolved at some point but I can't say how annoying it is to wake up in the morning to find the PC hung up and it being in that state all night long.

Thanks, Chelley


See More: PC RESET Upon OA Security Software Lockup

Report •


#1
July 18, 2011 at 06:29:58
Basically I have this
Tasklist /FI "IMAGENAME eq oaui.exe" "STATUS" /FO "CSV" /NH

Clearly this does not work, I do not know how to get the STATUS working to see if the task is running or not and I am confused by the HELP in TASKLIST I tried this

Tasklist /FI "STATUS eq oaui.exe" RUNNING

This does not work either can someone tell me how to do this please ?

Michelle


Report •

#2
July 20, 2011 at 03:12:19
✔ Best Answer
I'm not very familiar with the use of Tasklist or its parameters, but if you just want to extract the Mem Usage for comparison purposes you could use:

@echo off

cls

for /f "tokens=*" %%1 in ('tasklist /nh ^|find "oaui.exe"') do (
    for /f "tokens=5" %%A in ("%%1") do (
        set memuse1=%%A
  )
)

Then after the delay you want go on to run a similar bit of script to again extract Mem Usage and compare the results.

However IMHO it would be much better to find the cause of the problem, possibly overheating. When was the PC last given a good clean and reseat/replug of components?


Please come back & tell us if your problem is resolved.


Report •

#3
July 20, 2011 at 03:54:23
Dear Wahine
I just built the Server PC up a few months back, I have got a whole bunch of automated registry cleaners and junk file cleaners on the TASK SCHEDULER running every few days, it can't be over heating because it usually happens on a cold boot at 6pm ish after the PC has been off for 10 hours, I wrote a BUG file to the Online Armour website but never got a reply, my guess is the Online Armour team are working on a whole bunch of bugs as the firewall is cutting edge if you ever tried it you would see what I mean thats why I like it.

It gives very good protection sometimes too much, so I had to implement a button push program called RTVRECO to take care of some annoying popups that came up with some Unknown script accesses which turned out to be just my Batc files doing ping tests to see if the network was up, I have a batch command checking periodically if the Internet is up if not it reboots the server as sometimes the network goes glitchy but not often, and it may well be this thats causing the firewall to lockup.

I like your script above but I am not very good with the format so if you could help me with the second part would be much appreciated, I have seen the problem were the firewall locks up always happens in the first 3 minutes after a clean boot so the script only needs to run once just after boot time as all the other server applications I have scheduled to run WILL NOT even be started if my batch detects no Internet access which seems to be the case when the firewall locks up.

perhaps your script can be included in the same batch file I will enclose it below here for you to see.

@echo off
echo allowing PC Bootup to complete
echo to ensure stability of system!
sleep 120
cls
:: *********************** CHECK WAN NETWORK *********************
ping -n 1 google.co.uk > nul
:: ping -n 1 10.10.2.25 > nul
goto %errorlevel%
:: ======================== WAN NETWORK IS UP ====================
:0
echo Internet is UP and is running everything normal
sleep 80
cls
:: SETS PC CLOCK TO CORRECT TIME
start "Dimension4" /D"C:\Program Files\D4\" /NORMAL D4.exe
sleep 80
cls
:: VOICE CHAT SERVER
start "ventriloSrv" /D"E:\Program Files\VentSrv100\" /LOW ventrilo_srv.exe
sleep 80
cls
:: VOICE CHAT SERVER
start "TeamSpeak-2" /D"E:\Program Files\Teamspeak2_RC2\" /LOW server_windows.exe
sleep 80
cls
:: VOICE CHAT SERVER
start "TeamSpeak-3" /D"E:\Program Files\teamspeak3-server_win32" /LOW ts3server_win32.exe
sleep 960
cls
:: SYSTEM HARDWARE AND THERMAL MONITORING
start "EVEREST" /D"C:\Program Files\Lavalys\EVEREST Ultimate Edition" /MIN /LOW everest_start.exe
sleep 80
cls
:: LOCAL IRC CLEINT
start "Mirc" /D"E:\Program Files\mIRC" /MIN /LOW mirc.exe
sleep 80
cls
:: MONITORS FOR LAN SHUTDOWN COMMAND FROM OTHER PC IF THIS ONE FROZEN
start "RDShutdown" /D"J:\Program Files\Automation\process\DShutdown" /LOW RDShutdown.exe
sleep 40
cls
goto end
:: ***************************************************************
::
:: ======================= WAN NETWORK IS DOWN ===================
:1
color 4f
echo Internet is offline No Scheduled Programs Started
sleep 40
cls
::
:end
color
cls


Report •

Related Solutions

#4
July 23, 2011 at 10:22:09
Dear Wahine,

I am currently trying this but as I said before when the system gets in this state it becomes very unstable and it is hard to get it to respond to simple reboot commands perhaps a third party utility to KILL all the Online Armour processes before a reboot can be achived I am looking for something that has more system access rights than standard TASKKILL which is why I wanted to use a hard reset if possible.

I am getting errors by the way perhaps my compare is wrong ?


@echo off
setlocal enabledelayedexpansion

cls

for /f "tokens=*" %%1 in ('tasklist /nh ^|find "oaui.exe"') do (
for /f "tokens=5" %%A in ("%%1") do (
set memuse1=%%A
)
)

:: testing mode only
echo %memuse1%
sleep 20


for /f "tokens=*" %%1 in ('tasklist /nh ^|find "oaui.exe"') do (
for /f "tokens=5" %%A in ("%%1") do (
set memuse2=%%A
)
)


:: testing mode only
echo %memuse2%
pause

:: testing mode echo's only
if %memuse1%==%memuse2% echo test mode variables are SAME
if not %memuse1%==%memuse2% echo test mode variables are DIFFERENT
::
pause
::
:: if %memuse1%==%memuse2% shutdown -r -f & goto end

:end


Report •

#5
July 23, 2011 at 11:23:08
OK I figured out my error, should not have put %% in their oops (NOTE ACUALLY I MISSED THE "" so should have been "%variable%" )

so have this section working

if memuse1==memuse2 echo. test mode variables are SAME
::
if not memuse1==memuse2 echo. test mode variables are DIFFERENT

Now just need to find a way to do a hard reset as it seems even the standard windows shutdown -r -f
is frozen too when the system is locked up like this !!!as just happened an hour ago again :(

Michelle xxx


Report •

#6
July 23, 2011 at 13:03:51
I need help with this now as trying to make my commands simpler but for some reason the last echo statement is ALWAYS echo's even when the previous echo is true ??? so something wrong/

if memuse1==memuse2 ( echo Test mode variables are SAME ) ELSE (
echo Test mode variables are DIFFERENT
)


Report •

#7
July 23, 2011 at 15:34:41
Dear Wahine,
I was able to get it working :)

@echo off
setlocal enabledelayedexpansion
cls
:: IF YOU HAVE NO SLEEP OR WAIT COM FILE THIS BATCH IS USELESS
if not exist sleep.com goto end
:: -------------------------------------------------------------
:: for testing purposes SET an active changing MEMORY Usage application.exe
set appname=avguard.exe
:: -------------------------------------------------------------

for /f "tokens=*" %%1 in ('tasklist /nh ^|find "%appname%"') do (
for /f "tokens=5" %%A in ("%%1") do (
set memuse1=%%A
)
)

:: -------------------------------------------------------------
echo %appname% MEMORY USE = %memuse1% kb
sleep 160
cls

for /f "tokens=*" %%1 in ('tasklist /nh ^|find "%appname%"') do (
for /f "tokens=5" %%A in ("%%1") do (
set memuse2=%%A
)
)
:: -------------------------------------------------------------
::
echo *********************************************
echo Previous Memory usage of %appname% was: %memuse1% kb
echo Currently Memory usage of %appname% is: %memuse2% kb
echo *********************************************
echo.
:: -------------------------------------------------------------

IF "%memuse1%"=="%memuse2%" (
echo. Test mode variables are SAME
GoTo commands
) ELSE (
echo. Test mode variables are DIFFERENT
)
goto done

echo *********************************************
:: -------------------------------------------------------------
:: -------------------------------------------------------------
:: REMMED OUT BELOW FOR SAFETY
:commands
:: CHOOSE ONE OF THE COMMANDS BELOW BY TAKING OUT THE REM
:: ASSUMING THIS BATCH CAN EVEN RUN ON AN UNSTABLE COMPUTER.
:: QUERY.EXE MAY BE NEEDED FROM THE WINDOWS CD TO FIND YOUR
:: SESSIONNAME THEN PUT THIS FILE IN YOUR SYSTEM32 FOLDER
:: -------------------------------------------------------------
REM shutdown -r -f
:: OR for none responsive computers USE below
REM RESET CONSOLE
:: -------------------------------------------------------------
:done
:: WAITS FOR USER TO READ SCREEN CONTENTS
sleep 80
cls
:end
endlocal

:: Thanks Michelle xxx


Report •

#8
July 23, 2011 at 16:04:11
Heartiest congratulations, good to know I'm redundant.

Thanks for coming back to report your success.


Please come back & tell us if your problem is resolved.


Report •

#9
July 23, 2011 at 19:28:59
Well I have still been looking for the RESET command and found a few things that may help others I will update the batch script above for others Interested.

Michelle xxx


Report •

#10
July 23, 2011 at 20:03:29
Wahine NO NO NO Your NOT Redundant could not have done it without you :D
I GIVE YOU A VERY BIG HUG THANKS

XXXX

Michelle


Report •

#11
July 24, 2011 at 14:30:36
Ohhh gee Michelle, thanks for the ego massage. Big hug reciprocated.

W.


Please come back & tell us if your problem is resolved.


Report •


Ask Question