cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Manipulating BatchProcess Tasks

Manipulating BatchProcess Tasks

 

There may be times when you need to kill a long running Batch Processor Task as it may be blocking subsequent tasks. You can do this using the BatchProcessTaskConsole, which can be found on the Batch Processor server in C:\Program Files (x86)\Flexera Software\FlexNet Manager Platform\DotNet\bin.

The BatchProcessTaskConsole must be run using command line.

Open cmd as administrator and navigate to the BatchProcessTaskConsole file location.

 

To get help on the options available for the BatchProcessTaskConsole run the following,

BatchProcessTaskConsole.exe help, this provides a list of al available tasks and the command line options you can use with BatchProcessTaskConsole.

Usage: BatchProcessTaskConsole TASK [OPTIONS] [--TASK OPTIONAL ARGUMENTS]

Tasks:

ActiveDirectoryImport
ActivityLogHistoryDelete
ARLCleanup
ARLDownload
ARLImport
BaselineImportProcessing
BusinessAdapterConfig
BusinessAdapterImport
CognosTenantSync
DataWarehouseUpdate
DataWarehouseUpdateRights
EnterpriseGroupImport
EntitlementRecommendations
FNMEAEnterpriseGroupExport
FNMPDataMaintenance
FNMPSoftwareUsageHistoryUpdate
FNMSDashboardUpdate
FNMSPrecalcUpdate
GenerateOracleLMSArchive
IBMPassportAdvantage
IMDataMaintenance
IMImport
IMTenantDataMaintenance
InventoryImport
InventoryImportNoStats
InventoryImportReaders
InventoryImportSpreadsheet
InventoryImportWriters
LicenseReconcile
POLineImport
SAPInventoryImport
SAPLicensePositionCalculation
SAPPackageLicenseImport
SAPTransactionProfileImport
SAPUserAndActivityImport
SAPUserConsumptionImport
SAPUserImport
SAPUserRecommendationExport
SAPUserRoleImport
ServiceNowExport
TenantDeletion
UserAssignmentImport

Options:

 -t    Run task for specific tenant

 -g    Run task for all tenants in group

 -p    Optional task specific properties (eg. -p Prop1=Val1,Prop2=Val2)

Other commands are available: run, test, test-all, list-tasks, fail-task,

process-dispatch

Execute 'BatchProcessTaskConsole help [command]' for more information on each

command.

 

Use the following to list all current tasks, submitted, queued or processing in the queue

BatchProcessTaskConsole.exe list-tasks

 

To kill a task run the following command line where ID is the tasks ID as shown in list-tasks.

BatchProcessTaskConsole.exe fail-task ID

 

There may sometimes be issues where a task will just hang at the pending state in the System Tasks Gui.

If killing the task and rerunning it does not clear the issue you could run a test on the task which can clear issues with the task and the scheduler. To do this run the following, where Task Name is the task identifier as shown when running BatchProcessTaskConsole.exe help.

 

BatchProcessTaskConsole.exe test [Task Name]

 

 

 

 

Was this article helpful? Yes No
No ratings
Comments

I checked if I have any running tasks but none is found but the task still show in progress in the WebUI task list.

BatchProcessTaskConsole.exe fail-task ID does not work. You need to use -m as well for Ex: BatchProcessTaskConsole.exe fail-task -m 349088fb-14b7-439e-9215-23b351dc73bc

This is not mentioned anywhere in the documentation everywhere it's just "fail-task ID ". Took me a while to figure it out. 

 

 

Version history
Last update:
‎Jul 13, 2020 01:47 AM
Updated by:
Contributors