Automated NT Services Stop/Start

kjjdelist

Well Known Member
Does anyone have a 3rd party app that allows you to schedule the JDE
Services to stop and restart in the correct order AND wait for the killqueue
processes to stop before ending the Network service?


B7332, SP11.3, MSSQL 7.0, NT 4.0
 
KJ,

Why not use the scheduler within NT? I can't remember where/what - off the
top of my head. I just needs to be turned on.

I believe the command is AT.

Other items;
http://support.microsoft.com/support/kb/articles/Q166/8/19.ASP?LN=EN-US&SD=g
n&FR=0&qry=schedule&rnk=8&src=DHCS_MSPSS_gn_SRCH&SPR=WIN2000
http://support.microsoft.com/support/kb/articles/Q121/5/62.asp?LN=EN-US&SD=g
n&FR=0&qry=schedule&rnk=4&src=DHCS_MSPSS_gn_SRCH&SPR=WIN2000
http://support.microsoft.com/support/kb/articles/Q226/7/95.ASP?LN=EN-US&SD=g
n&FR=0&qry=schedule&rnk=18&src=DHCS_MSPSS_gn_SRCH&SPR=WIN2000

and...
Start Button; Settings; Control Panel -> Scheduled Tasks....

I know - shotgun answer...

Happy Holidayz



Daniel Bohner
[email protected]
www.existinglight.net
JDE - XE & AS/400
JDE - B7331 & MS SQL 7x
 
We have written the batch file in which we use Net stop command to stop the JDE services and Sleep command to put the delay between these commands and we are using the delay of 60 seconds and it is working fine at our end.

Good Luck
Vivek Mohan
B733.2, SP10, Oracle 8.1.6.3.0
 
I am quite sure that Colin knows what he is talking
about but the startup document you refer to is just
plain wrong when it states that JDE services must be
set to manual. I have automated the startup of NT
Services and have never seen an issue.

As far as waiting for the killqueues to die, the only
way I bring down the services is manually, waiting for
the killqueues to die. I am not sure why you would
want to automate the stopping of services but the only
thing I can think of is to bring them down orderly in
case of a OS restart, and even then who cares since
the reboot will clear the processes.

1. Uninstall jdesque
cd jdedwardsoneworld\ddp\b733x\system\bin32
jdesque -u

2. Uninstall jdesnet
jdesnet -u

3. Reboot

4. Reinstall jdesnet
jdesnet -i -d"YOURRDBMSGOESHERE"

5. Reinstall jdesque
jdesque -i -d"JDE Update 3 B733 Network"

6. Set JDE Network to start automatically

7. Set JDE Queue to start automatically

8. *** Reset both Services' Passwords ***

9. To test:
Stop all three services- Queue then Network then
RDBMS
Start the Queue and it should start the RDBMS and the
Network before starting




--- RAMMEDJR <[email protected]> wrote:
http://198.144.193.139/cgi-bin/wwwthreads/showflat.pl?Cat=0&Board=OW&Number=24194


__________________________________________________
 
I put something up on the download section of JDELIST. One addition that I
had to add an additional procedure to ensure that all JDE processes were
dead. Apparently runbatch.exe does not always get killed when the JDE
services are stopped. If you don't kill it then the JDE services will not
start up correctly. Other changes I've made is to grep a tlist and pulist of
the NT processes. If you want to do this then get tlist.exe and pulist.exe
from the NT resource kit. You'll need a better version of grep from the
Internet or MKS toolkit. DO NOT use the grep that comes with Windows...it's
awefull at best!

I've also written a batch file to email the staus of the Enterprise Server
JDE Processses to my home email address. It's a lot easy to read a text
report than to log into work from home. You can get blat.exe ( an SMTP
mailer) off the net.

Colin


1. TO STOP JDE SERVICES

:STOP_JDE_SERVICES
REM JDE services must be shut down prior to shutting down the JDEdwards
Oracle Database

ECHO Stopping JDEdwards Services... >> %LOGFILE%
DATE /T >> %LOGFILE%
TIME /T >> %LOGFILE%
NET STOP "JDE Update 2 B733 Queue" >> %LOGFILE%
%SCRIPTDIR%sleep.exe 300

NET STOP "JDE Update 2 B733 Network" >> %LOGFILE%
%SCRIPTDIR%sleep.exe 60

ECHO Kill Any JDEdwards Services that did not stop during service
shutdown... >> %LOGFILE%
REM Note: The order of these kills is important. Do not change the order.
KILL RUNBATCH.EXE >> %LOGFILE%
%SCRIPTDIR%sleep.exe 10
KILL JDEQUEUE.EXE >> %LOGFILE%
%SCRIPTDIR%sleep.exe 10
KILL JDESQUE.EXE >> %LOGFILE%
%SCRIPTDIR%sleep.exe 10
KILL JDENET_K.EXE >> %LOGFILE%
%SCRIPTDIR%sleep.exe 10
KILL JDENET_N.EXE >> %LOGFILE%
%SCRIPTDIR%sleep.exe 10
KILL JDESNET.EXE >> %LOGFILE%
%SCRIPTDIR%sleep.exe 10
KILL IPCSRV.EXE >> %LOGFILE%
%SCRIPTDIR%sleep.exe 15
REM Kill any remaining processes...
CALL %SCRIPTDIR%killjde.bat %SID%
echo Remaining JDE processes after Kills: >> %LOGFILE%
tlist |grep -i -e ipc -e jde -e runbatch |grep -vi CMD |sort >> %LOGFILE%
echo. >> %LOGFILE%

2. TO START JDE SERVICES

ECHO Starting JDEdwards Services >> %LOGFILE%
ECHO Waiting 2 minutes before starting JDEdwards Network Services >>
%LOGFILE%
%SCRIPTDIR%sleep.exe 180

ECHO Starting JDEdwards Network Service >> %LOGFILE%
NET START "JDE Update 2 B733 Network" >> %LOGFILE%
ECHO Waiting 5 minutes before starting JDEdwards Queue Services >> %LOGFILE%
%SCRIPTDIR%sleep.exe 300

ECHO Starting JDEdwards Queue Service >> %LOGFILE%
NET START "JDE Update 2 B733 Queue" >> %LOGFILE%
%SCRIPTDIR%sleep.exe 15

echo. >> %LOGFILE%
echo JDE processes running: >> %LOGFILE%
tlist |grep -i -e ipc -e jde -e runbatch |grep -vi CMD |sort >> %LOGFILE%
echo. >> %LOGFILE%
echo Make sure not more than ONE jdenet_n.exe is running: >> %LOGFILE%
tlist |grep -i -e jdenet_n |grep -v CMD |sort >> %LOGFILE%
echo. >> %LOGFILE%

3. TO EMAIL YOURSELF THE STATUS OF THE JDE PROCESSES ON YOUR ENTERPRISE
SERVER

@ECHO OFF
REM
 
Not sure what I'm talking about?.................ouch!

Let keep this simple and civil.

1. If you don't like my documents....don't read them

2. If you think my documents are wrong....don't use them

3. My document clearly states why and when JDE services need to be set to
manual.

4. Not sure why you would want to automate the stopping of services? Try
something called a backup. If you're still unsure read the NT Tuning section
of 'JDEdwards The Complete Reference'. (Note that I put my document up well
before this book came out).

5. I do take personal time to actually organize and write down information
that I think may be useful to others. I'm open to constructive criticism and
comment and very much appreciate feedback. People are free to ask me for
personal assistance (and often do) by phone or at one of my email addresses.
I do all this for free and merely hope that others will do the same.


Colin Dawes, MSc
 
Cdawes, I'm with you...

Not sure why you would want to automate the stopping of services?

Try doing any SQL maintenance with the services stopped. Without scheduling
the services to stop and restart gracefully, there's no way to schedule SQL
to performe mtc. in an automated way. It sucks doing it manually at 3:00a
and still having to work long hours at the office.

BTW, thanks for the script Cdawes. I'm taking it to my programmers now.
 
Colin,

Methinks you are taking this too personal. I stated
that "I am quite sure that Colin knows what he is
talking about".

Please re-read my post.


--- cdawes8 <[email protected]> wrote:

By the same token, if you cannot take the peer review
heat, stay out of the kitchen.


Don't worry, I won't.



Your document may clearly state it but it is still
wrong.


If your system cannot accomplish a backup without
stopping services I recommend new BU software.



I think that is great. However, you are open to peer
review like the rest of us.




__________________________________________________
 
Back
Top