You can schedule a job by using the built-in template option. A job is a set of configuration commands that you can run on one or more managed instances. For example, you can use the built-in template option to schedule a job to configure syslog servers. You can also, choose to execute the job immediately or schedule the job to be executed at a later stage.
1. In NetScaler MAS, navigate to Networks > Configuration Jobs, and then click Create Job.
2. On the Create Job page, on the Select Configuration tab, specify the Job Name and select the Instance Type from the drop-down list.
3. Select Inbuilt Template from the Configuration Source drop-down list. Drag and drop the NSConfigureSyslogServer command to the right pane, and then click Next.
4. On the Select Instances tab, click Add Instances, select the instances on which you want to run the job, and then click OK.
5. Click Next. On the Specify Variable Values tab, select one of the following options to specify variables for your instances:
- Variable values from an input file - Download an input file to enter values for the variables that you have defined in your commands, and then upload the file to the NetScaler MAS server.
- Common variable values for all instances – Specify the syslog server IP address and port.
6. On the Job Preview tab, you can evaluate and verify the commands to be run on each instance or instance group.
7. Click Next.
8. On the Execute tab, set the following conditions:
- On Command Failure - If a command fails, you can either choose to ignore the errors and continue to execute the job or stop further execution of the job. Choose the action that you want to execute from the drop-down list.
- Execution Mode - You can either execute the job now or schedule to execute the job at a later time. If you want to schedule the job at a later time, you must specify the execution frequency settings for that job. Choose the schedule you want the job to follow from the drop-down list.
9. You can also execute a job on a set of instances sequentially or in parallel by selecting the required method under Execution Settings. If a job execution fails on any instance, it does not continue on the remaining instances.
You can also choose to allow authorized users to execute jobs on your managed instances, and you can choose whether to send an email notification regarding the success or failure of the job, along with other details.
10. Click Finish.