Forum Discussion
Not sure if you're still working on this or not, but I've just come up with a batch file which does the trick. We were also in need of a batch file which would cancel all active jobs when triggered by a UPS shutdown. Going off a suggestion from Ken Putnam I created the following batch file which dumps the active job ID's and then cancels them one-by-one.
Since bemcmd.exe usually resides in the "Program Files" directory I've set it up to be run from within that directory.
### begin CancelActiveJobs.bat ###
cd /d C:\PROGRA~1\VERITAS\BACKUP~1\NT\
bemcmd -o11 -i > C:\PROGRA~1\VERITAS\BACKUP~1\NT\current.txt
FOR /F "tokens=3,4 delims= " %%B IN ('findstr /i "job" C:\PROGRA~1\VERITAS\BACKUP~1\NT\current.txt') DO bemcmd -o20 -i%%B
### end of batch file ###
line 1 - change directory to the Backup Exec "Program Files" directory
line 2 - dump Job ID's using bemcmd.exe to a temporary .txt file
line 3 - for all lines containing the word "JOB", extract the job ID from the .txt file and then issue the cancel command with bemcmd.exe for each instance found
In spite of what was written previously it's completely independent of jobs which you create, so there's no need to modify it each time you add/move/change a backup job.
Hope this helps. Cheers!
Sten
Most of the time when trying to cancel an active backup job, the status shows as "Cancel Pending" for a long period of time and may look like to be hung.
Solution:
========
Need to restart all Backup Exec services, this method will cancel ALL jobs that are running.
STEPS:
======
Follow the article (https://www.veritas.com/support/en_US/article.TECH87507)
In the Backup Exec Console-:
1. Click on "Tools" “Backup Exec Services" to open the servicesmgr.exe.
2. Click on "Restart all services" (In most cases, this process will get to the bengine service and appear hung).
3. Open Windows task manager and click on the "Processes" tab.
4. Enable "Show Processes from all users".
5. Click on the "Image Name" column to sort alphabetically.
6. Locate and highlight the following services.
• Pvlsvr.exe (Backup Exec device and media service).
• Bengine.exe (Backup Exec job engine service).
• Beremote.exe (Backup Exec Remote Agent for Windows Server service).
7.Right Click on the above services in order and click on "End Process Tree" to terminate this process.
8.Close the task manager and return to the services manager.
Related Content
- 6 months ago
- 5 years ago
- 13 years ago
- 10 years ago