There are multiple ways we can supply values to the job. Here we learn couple of ways to do it:
- Parameters under Scenario
- Retrieving values from the database
Parameters under Scenario
To understand this example, we are using a L2 Vlan configuration for Cisco. We will be generating the configuration using the values supplied under Scenario of the Job.
(1) Operate -> New Jobs -> YCE Jobs/CMDB Jobs (Based on the type of node) -> (2) Select the node ->(3) Next
(1) Type the required configuration under Commands. In this case l2 vlan config as below ('<', '>' are used to distinguish variables in the config text)
(2) Supply the parameters section. In this case Vlan_id and Vlan_name
(3) Evaluate would show us the expected results.
To reuse the Job for generic use:
(1) Clear the values under the parameter section
(2) Name the Job with sutiable name
(3) Save
Retrieving values from the database
To understand this case we shall generate syslog server configuration. Syslog_server configuration is stored under
(1) Build -> Domains -> (2) Select the respective domain name(In this case wlc) ->(3) Variable name is Syslog_server1 (spaces are replaced with underscore'_')
Create a New Job as
(1) Operate -> New Jobs -> YCE Jobs/CMDB Jobs -> Select the node -> (2) Define the config under Commands -> (3) Evaluate to see the expected results
We can see that the <Syslog_server1> has retrieved the value stored in the database while generating the configuration.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article