Software Upgrade (EOS) - Workflow
  • 18 Oct 2024
  • Dark
    Light
  • PDF

Software Upgrade (EOS) - Workflow

  • Dark
    Light
  • PDF

Article summary


Now that you have created a JSON Form and a Transformation (JST), you are ready to put things together in the workflow.

Workflow Video

Step 1

From the Itential Automation Platform dashboard, click Automation Studio in the left navigation panel.

Step 2

Before we begin creating our workflow, let’s first look at the Itential Pre-Built that will be incorporated into it. Click the Workflows dropdown

Step 3

In the Workflow Search box, type Software Upgrade-EOS group. Select the Software Upgrade - EOS workflow

Step 4

This is the Itential Pre-Built workflow we will use to upgrade the software on our EOS device. Within the workflow, the tasks are various colors with different shapes based on their type and function. These include green for automated tasks, gray for manual tasks, black and gray for the Start and End terminator tasks, and purple for operational tasks such as evaluating a response for a specific criteria or invoking a child job.  

 As mentioned in the overview, at a high level the automation will:

  • Verify the OS version on the device and the file version
  • Complete a pre-check
  • Set the boot configuration
  • Reload the device
  • Verify the new file version is on the device after reboot
  • Complete a post-check
  • Provide a pre and post check Diff to users

Instead of having all of these tasks on our workflow canvas, we will incorporate this workflow in a modular fashion through the use of a childjob. 

From the Automation Studio dashboard, click the + at the top of the left navigation panel.

Step 6

In the Create dropdown, select Workflow and then enter Lab – Software Upgrade – EOS – XX and click create (XX represents your initials).

Step 7

A fresh workflow canvas opens. The new workflow canvas in IAP 2023.1 defaults to a vertical presentation, however you can drag the Start and Stop terminator tasks to a horizontal position if you prefer.

Step 8

In the Task Toolbar search bar, enter Transformation. The list of available tasks will begin filtering down as you type the name.

Step 9

Using your cursor, drag the Transformation task on to the canvas to the right of the Start terminator task.

Step 10

Next, you will need to add a child job task to the canvas, by entering childjob in the search box. The list of available tasks will begin filtering down as you type the name.

Step 11

Using your cursor, drag the Child Job task on to the canvas to the right of the Transformation task.

Step 12

Now that you have all of the tasks on the canvas, the next step is to add transitions, which will connect the tasks together to form the workflow. This is done by first clicking the task you want to transition from, which will highlight the task with a dashed border.  Click within the dashed border and begin dragging the transitions toward the destination task.  When the transition snaps to the destination task, release the mouse button.

Click the Start task, drag the transition to the Transformation task. Release the mouse button when the transition snaps to the Transformation task. 

Note:  The default transition is a Success transition.   If you would like to add an Error or a Failure transition,  press and hold the E or the F key on your keyboard as you are adding the transition.    

Step 13

Perform the same steps and add Success transitions between the Transformation and Child Job Tasks and the Child Job and the End Tasks.

Step 14

Next, double click the Transformation task to configure it.

Step 15

Click the Select Transformation drop down and enter Software Upgrade in the transition search box.

Step 16

Select Lab – Software Upgrade – EOS JST – XX . This is the transformation you created earlier. (XX represents your initials)

Step 17

For the Variable Source, select Job and ensure formData is selected as the Job Variable

By changing the formData Variable Source of the Incoming Schema from static to job, we are configuring the Transformation task to source the data from the form inputs submitted to the workflow, rather than static inputs. Click Close

Step 18

Next, double click the Child Job task to configure it.

Step 19

In the Select Workflow search box, enter Software Upgrade - EOS. Select the Software Upgrade – EOS workflow. This is the Itential Pre-Built workflow we reviewed earlier.

Step 20

Scrolling down in the childJob configuration window, you will need to configure the four variables provided from our formData.

For each, ensure that the Variable Source is set to Task and the appropriate variable is selected under Task Variable

These include: 

  • autoApprove
  • device 
  • version
  • image
  • flashmemory 

Step 21

Click the Close icon when complete.

Step 22

Click the Save icon to save the workflow, then click the Run icon.

Step 23

The Set Job Variables window opens, showing the variables the workflow requires to run. This workflow expects to receive one variable, formData, which will be passed in from Operations Manager, which will be covered in the next module. The Run button will run the workflow, but we are only testing it to confirm the inputs. Your view should match the image below.
 

Click the Cancel button.



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.