How to supply parameters for the Job

How to supply parameters for the Job

There are multiple ways we can supply values to the job.  Here we learn couple of ways to do it:
  1. Parameters under Scenario
  2. 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.
    • Related Articles

    • How to review Job logs

      Overview The logs of the specific Jobs can be found under Operate -> Job status -> Job Logs -> Look for the Job ID(In this case 0411_0023): files on netyce server This would pop up a new screen that has Job logs and other logs. Different files in the ...
    • How to run Basic command Job

      Introduction Basic command Jobs are basically used to automate day to day jobs. This article is about executing our first job, with minimal information.  Below are the 5 steps involved. Select the Node Load the Job Define the config commands to ...
    • How to use configuration template in Jobs

      Templates overview Templates are used to generate configuration.  In this article we shall learn below topics. How to create template How to use template in Jobs How to create multi-vendor template Templates are accessed as below: (1) Build -> ...
    • Parsing values from the commands

      Parsing purpose Parsing deals with extracting interested part of information from the specific text.  The text can be command output(Command parsing) or from device configuration(Config parsing). In this article we are dealing with Command parsing. ...
    • How to mitigate Non-Compliance

      The next step after identifying non-compliancy is to mitigate it.  We will be using the Network Automation module to fix the non-compliance configuration.  Below are the things that are needed to fix: Policy name Commands to fix the Non-compliance ...