Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

How to start / stop databases services by batch

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
Hall of Fame Super Silver

Re: How to start / stop databases services by batch

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.

New Member

Re: How to start / stop databases services by batch

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 !!

619
Views
0
Helpful
2
Replies