I need a hammer (CLI) command that will cancel jobs

Solution Verified - Updated

Environment

Red Hat Satellite Server 6.2.x
Red Hat Satellite Server 6.3.x
Red Hat Satellite Server 6.4.x

Issue

Currently we are only able to cancel a job via the UI. Would like the ability to cancel the job via CLI such as: # hammer job-invocation cancel id=job_id

Steps to complete in WebUI:

  1. Navigate to Monitor -> Jobs
  2. Choose scheduled Job in question
  3. Select "Cancel Job"

Potential/Preferred Alternative:

hammer job-invocation cancel id=job_id

Current status:
Hammer does not currently have this functionality.

Resolution

This issue is resolved under BZ 1568063 for Satellite Server 6.5
Eratta: RHSA-2019:1222

$ hammer job-invocation list

IDDESCRIPTIONSTATUSSUCCESSFAILEDPENDINGTOTALSTART
1Run ping -c 5 company.comqueuedN/AN/AN/AN/A2019-01-11 21:46:00 UTC

$ hammer job-invocation cancel --id 1
Job invocation 1 cancelled

$ hammer job-invocation list

IDDESCRIPTIONSTATUSSUCCESSFAILEDPENDINGTOTALSTART
1Run ping -c 5 company.comfailedN/AN/AN/A02019-01-11 21:46:00 UTC

For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues

For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues

Root Cause

This feature did not exist in previous Satellite versions. It has been added to the Satellite 6.5 release.

SBR
Product(s)
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.