I am trying to schedule a service to run every 5 minutes inLayer7 (usind its Schedule Service Execution option) but the "Basic" doesn't allow that option. How does it get configured under "Advanced" where the policy is executed every 5 minutes?
Hi Mukti12. You just have to leave all the fields except minutes to have the default value of '*', and set the minutes field to '5'. Please note that manage scheduled tasks feature did not exist before version 9.0, so I assume you are using version 9.0 or higher. If that is not the case, and you want to schedule a task using cron, you could see format of crontab and some examples at http://www.adminschoice.com/crontab-quick-reference.
Support Engineer, Global Customer Success
Phone: +1 800 225 5224
Outside of North America - ca.com/us/worldwide.aspx
CA API Management Community: ca.com/talkapi
In the Policy Manager --> Tasks --> Manage Scheduled Tasks --> Add.
For the Execution Time, select "Recurring".
In the "Every" row, change the value from "1" to "5", and use the dropdown menu to change the option from "Second" to "Minute".
Thanks for your response. In our Policy Manager version, i.e. 8.3.0, the options are:
Tasks --> Additional Actions --> Schedule Service Execution
When I select Schedule Service Execution,and select Schedule Recurring Job, it can either be created as a Basic, which is allowed to every Second/Minute/hour/day/month/week. Or as Advanced, under which Second, Minute, Hour, Day, and Month all are set to * (which means "every" I reckon?) and Weekday has "?" as default values. Now to run the service every 5 minutes, what values need to go for all these 6 parameters of "Advanced"?
I am currently trying to modify the value of a cluster-wide property (CWP) via a Scheduled Task.The CWP I am trying to modify is audit.detailThreshold, which is a built-in CWP, not a custom made, and thus, I can't seem to be able to modify it via a Scheduled Task. Is there a different sequence of steps of achieving this, versus a custom CWP? Any reference on how to accomplish this, either via a Scheduled Task or a cron job, will be greatly appreciated.
You may manually add audit.detailThreshold on Manage Cluster-Wide properties window. (policy manager -> Tasks -> Global Settings -> Manage Cluster-Wide Properties.
And then in your schedule task, you call the /restman interface to update the cwp.
/restman document is on your gateway (publish it first from internal service)
https://<your gateway host>:8443/restman/1.0/doc/restDoc.html#1.0/clusterProperties
You would need GET first
and then use xpath to get the ID of the cwp
And then you PUT to update the cwp
example of PUT,URL: https://<gateway>:8443/restman/1.0/clusterProperties/45f1f2e528887e575244b39ec6034f87Content-Type: application/xmlbody:<l7:ClusterProperty version="0" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management"><l7:Name>cwpbymark</l7:Name><l7:Value>value</l7:Value></l7:ClusterProperty>
( if you hard coded the cwp ID, you don't need to GET it in schedule task)
Retrieving data ...