cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
973
Views
0
Helpful
2
Replies

How to start / stop databases services by batch

nestlelan
Level 1
Level 1

I've tried to find a solution in this forum, but unfortunatly nothing found.

I'd like make batch pre and post backup job to stop / start manualy some service.

Here's the service i'd like to stop

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvRMEDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvANIDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvOpsxmlDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvCmfDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvEPMDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvFHDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvINVDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvIpmDbEngine

but that's doesn't work in the net stop command.

i've error " bad syntax command "

I've try :

net stop F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvIpmDbEngine

net stop "F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe" -hvIpmDbEngine

net stop " F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvIpmDbEngine "

net stop dbserv9.exe

net stop dbsrv9.exe -hvIpmDbEngine

Is there any solution to fix it ?

2 Replies 2

Marvin Rhoads
Hall of Fame
Hall of Fame

Cisco uses a daemon manager to manage the various services as a whole. See the Common Services User Guide (http://www.cisco.com/en/US/products/sw/cscowork/ps3996/products_user_guide_list.html), Chapter 4. To wit:

"The Daemon Manager provides the following services:

• Maintains the startup dependencies among processes.

• Starts and stops processes based on their dependency relationships.

• Restarts processes if an abnormal termination is detected.

• Monitors the status of processes.

The Daemon Manager is useful to applications that have long-running processes that must be monitored

and restarted, if necessary. It is also used to start processes in a dependency sequence, and to start

transient jobs."

...

"To restart Daemon Manager on Windows:

Step 1 Go to the command prompt.

Step 2 Enter net stop crmdmgtd to stop the Daemon Manager.

Step 3 Enter net start crmdmgtd to start the Daemon Manager."

Stopping and restarting services manually is not a generally a supported/recommended approach.

rdelapen
Level 1
Level 1

To stop a single process on a CLI basis you use:

pdterm

pdterm RMEDbEngine

to start a single process use:

pdexec

pdexec FHDbEngine

and to view the status of a single process:

pdshow

pdshow OpsxmlDbEngine

NOTE: Processes are caption sensible !!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: