User Tools

Site Tools


menu:operate:new_jobs:yce_jobs
LDAP: couldn't connect to LDAP server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
menu:operate:new_jobs:yce_jobs [2021/10/21 12:19] – ↷ Page moved and renamed from menu:operate:configs:cmdjobs to menu:operate:new_jobs:yce_jobs pgelsmenu:operate:new_jobs:yce_jobs [2022/05/02 08:09] (current) yspeerte
Line 1: Line 1:
 +{{indexmenu_n>2}}
 +====== YCE jobs ======
 +
 +Command jobs are used to configure modelled nodes with the possibility to use templates, variables, conditionals etc.
 +
 +===== Creating a command job =====
 +
 +To create a command job select the node(s) you wish to send a job to. You may enter the nodes directly using their hostname, or use a [[menu:inventory:node_groups:node_groups|node group]]. 
 +
 +{{:menu:operate:new_jobs:cmd_job_select.png?nolink&800|Select command job nodes}}
 +
 +
 +==== Select Nodes ====
 +
 +Using the initial node group and node list selection, a summary of these nodes is given. Use the checkboxes to individually include the nodes for which a command job will be scheduled.
 +
 +{{:menu:operate:new_jobs:cmd_job_nodes.png?nolink&800|}}
 +
 +
 +==== Stored jobs ====
 +
 +A stored job may be selected from the dropdown menu. You may also save your own jobs, either privately or available for your colleagues. They can be restricted to only be available for a certain Client-type (tentant) if desired.
 +
 +In the example below the stored job "ACL_Edit" was loaded. This retrieved the command and scenario data stored under that name which was saved for re-use by one of the NetYCE users.
 +
 +> A stored job can be modified by members of the same user group only.
 +
 +{{:menu:operate:new_jobs:cmd_job_example.png?nolink&800|Command job example using a stored job}}
 +
 +
 +==== Commands ====
 +
 +The //Commands// input field, can be used to apply static configuration lines or [[menu:build:templates:template_edit|templates]], with all capabilities a template could ([[menu:build:templates:template_edit#variables_within_a_template|variables]], [[guides:reference:templates:conditionals|conditionals]], [[guides:reference:templates:relations|relations]], [[guides:reference:templates:functions|functions]], ...) or it could be empty if you wish to apply the configurations differently using scenarios.
 +
 +If you wish to store this information in the job, don't forget to save it.
 +
 +{{menu:operate:new_jobs:cmdjob_commands.png?nolink|Commands}}
 +
 +Below the commands input field, an Evaluate button can be used to test/verify your configuration. This will test its outcome against the selected node.
 +
 +> If multiple devices are selected the first one will be used for the evaluation only.
 +
 +{{:menu:operate:new_jobs:cmd_job_evaluate.png?nolink&600|}}
 +
 +
 +==== Scenario ====
 +
 +In the //Scenario// input field you may specify parameters and scenario syntax. 
 +
 +**[Parameters]**
 +
 +The parameters section can only hold variables "variable = value". Where value may be surrounded by quotes. It will hold anything till the end of the line (see the screenshot). 
 +
 +It may refer to another variable as well, though if not found it won't be substituted. 
 +
 +The //parameter// section isn't mandatory.
 +
 +{{menu:operate:new_jobs:cmdjob_scenario.png?nolink|Scenario}}
 +
 +**Scenario**
 +The scenario section can hold any syntax specified by the [[menu:operate:scenarios:scenarios|Scenario syntax and commands]]. This could either be specified here directly or may be chained using the //task :=// command. 
 +
 +The default, shown in the screenshot (for the scenario part), sets a description for the job and uses the scenario called "Command job". The contents can be seen under [[menu:operate:scenarios:scenarios|Operate > Scenarios]]
 +
 +If the scenario reaches an "end", the job is considered successful. If it reaches a "stop", the job result is "aborted".
 +
 +==== Scheduling ====
 +
 +Once you are ready to schedule the job, you may choose to do it right away or plan it for the future. For more details on the [[guides:reference:jobs:distr_scheduler|distributed scheduler]].
 +
 +Once scheduled, each job will be given a Job ID. The details of the job can be found in [[menu:operate:job_status:scheduled_jobs|Jobs]] and [[menu:operate:job_status:job_logs|Job logs]].
 +
 +If you are using a multi-server architecture, you may choose the specific server or use your scheduler rules to choose it automatically. See the chapter [[guides:reference:jobs:distr_scheduler|Distributed Scheduler]].
 +
 +To set up a dependency on Change ID's or approvals, the [[guides:reference:jobs:job_configuration|Job Configuration]] chapter will assist.
 +
 +{{:menu:operate:new_jobs:cmd_job_schedule.png?nolink&800|Scheduling}}
 +
 +For each of the nodes selected (use the checkboxes at the top of the form), a separate job will be scheduled.
 +
 +{{:menu:operate:new_jobs:cmd_job_schedule_nodes.png?nolink&800|}}
 +