How to create scheduled Queue Purger job on CLI

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to create scheduled Queue Purger job on CLI

sanjan
Hi,

Can you provide an example on how to create a Queue Purger scheduled job over CLI.

myrouter/sys$scheduler/schedules> new PurgeErrorCode7 job-group "Queue Manager" job-name "Queue Purger" time-expression "at 18:00" enabled true logging-enabled true
myrouter/sys$scheduler/schedules> cc PurgeErrorCode7
myrouter/sys$scheduler/schedules/PurgeErrorCode7> lc
Entity:      Job Schedule
Description: Job Schedule

Properties for this Entity:

Name                                    Current Value
--------------------------------------------------------------
calendar                                <not set>
date-from                               now
date-to                                 forever
enabled                                 true
job-group (R/O)                         Queue Manager
job-name (R/O)                          Queue Purger
logging-enabled                         true
max-runtime                             <not set>
time-expression                         at 18:00

I want to set the parameters: Quue name and Message Selector, but I can't figure out how to set.

Queue Name: ERROR
Message Selector: jms-property-name="error_code" , jms-property-value="7"


I tried as below: but didn't work:

myrouter/sys$scheduler/schedules/PurgeErrorCode7/parameters> new "Queue Name" ERROR
Invalid command, please try 'new <name> [<prop> <value> ...]'
myrouter/sys$scheduler/schedules/PurgeErrorCode7/parameters> new Queue Name ERROR
Unknown Property: Name
myrouter/sys$scheduler/schedules/PurgeErrorCode7/parameters> new 'Queue Name' ERROR
Unknown Property: Name'

Reply | Threaded
Open this post in threaded view
|

Re: How to create scheduled Queue Purger job on CLI

IIT Software
Administrator
router1/sys$scheduler/schedules/PurgeErrorCode7/parameters> new "Queue Name" value ERROR
router1/sys$scheduler/schedules/PurgeErrorCode7/parameters> new "Message Selector" value "error_code=7"
router1/sys$scheduler/schedules/PurgeErrorCode7/parameters> lc
Entity List: Parameters
Description: Parameters

Number of Entities in this List: 2
--------------------------------
Message Selector
Queue Name