menu:operate:new_jobs:cmdb_jobs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| menu:operate:new_jobs:cmdb_jobs [2022/05/02 06:55] – yspeerte | menu:operate:new_jobs:cmdb_jobs [2024/07/03 12:31] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{indexmenu_n> | ||
| + | |||
| + | ====== CMDB jobs ====== | ||
| + | |||
| + | Basic command jobs issues CLI commands to any (supported) device. It allows the use of simple CLI commands and templates, variable substitution from the [[menu: | ||
| + | |||
| + | It requires some attributes to be set: | ||
| + | |||
| + | * Management IP (cmdb node) | ||
| + | * CMDB node linked to a Domain | ||
| + | * Username (domain > User > Rme_user) | ||
| + | * Password (domain > User > Rme_passwd) | ||
| + | |||
| + | |||
| + | ===== Selecting the nodes ===== | ||
| + | |||
| + | The nodes can be added directly using the text field. Multiple hostnames, ip addresses or FQDNs can added be at once. Just make sure they are separated by a comma, whitespace, semicolon or newline. If these nodes already exist in the database, that specific node is used. If the node doesn' | ||
| + | |||
| + | Alternatively, | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | ===== Selected nodes ===== | ||
| + | |||
| + | Once the [Next] button is clicked, the selected nodes are listed at the top of the page. If a nodes' information is incomplete, dropdown menus are enabled to complete the information. The checkbox left to each node name marks it for scheduling a job for this node. Nodes are automatically de-selected if information was lacking. | ||
| + | |||
| + | The '' | ||
| + | |||
| + | When the nodes' source is labeled as a ' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | ===== Jobs, Commands, Scenario ===== | ||
| + | |||
| + | The Commands and Scenario text fields can be modified for single use or can be stored to re-use. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | ==== Load job ==== | ||
| + | |||
| + | Modifications made to '' | ||
| + | |||
| + | To save a job, make sure to provide a unique name and press save. This will make sure the client-type, | ||
| + | |||
| + | Next time this job is available from the drop-down menu. By marking the stored-job '' | ||
| + | |||
| + | ==== Commands ==== | ||
| + | The Commands field can be used to provide the configuration lines to be sent to the node. These line can be a combination of: | ||
| + | |||
| + | * plain configuration lines | ||
| + | * configuration lines using variables ( ''< | ||
| + | * template name ( '' | ||
| + | |||
| + | Variables are available as attributes within the node (either ad-hoc, CMDB or YCE). Ad-hoc nodes (unknown to CMDB or YCE) don't have any variables but will defer to shared CMDB variables. Since all nodes refer to a [[menu: | ||
| + | |||
| + | Besides the database variables, runtime variables are available as well and can be added to the '' | ||
| + | |||
| + | Templates can be included using '' | ||
| + | |||
| + | A **plain configuration** line could be: \\ | ||
| + | '' | ||
| + | |||
| + | The same could be achieve using a **domain variable**: \\ | ||
| + | '' | ||
| + | |||
| + | Calling the **snmp template** would look like: \\ | ||
| + | '' | ||
| + | |||
| + | === Evaluate === | ||
| + | The '' | ||
| + | |||
| + | The first node with its checkbox set will be used for the ' | ||
| + | |||
| + | |||
| + | ==== Scenario ==== | ||
| + | With the scenario you are in control of the order of communication and execution of commands and functions. | ||
| + | |||
| + | The scenario allow you to specify runtime variables in the ''< | ||
| + | |||
| + | Below an example is shown on the parameter variables for runtime use. | ||
| + | |||
| + | {{menu: | ||
| + | |||
| + | The '' | ||
| + | The (default) contents of this scenario/ | ||
| + | |||
| + | On error, the action is logged a failure and the scenario '' | ||
| + | |||
| + | < | ||
| + | Description < | ||
| + | |||
| + | Cmd_exec_basic -n < | ||
| + | if < | ||
| + | Log_action -n < | ||
| + | stop | ||
| + | endif | ||
| + | Log_action -n < | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | Here you can dive deeper into [[menu: | ||
| + | |||
| + | ===== Scheduler ===== | ||
| + | |||
| + | Once you are happy with the configuration you wish to push, the job can be scheduled using the scheduler. Select an execution moment in the future or select '' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | If you wish to read more on the scheduler, more information can be found here: [[guides: | ||