You are currently viewing Ivanti Endpoint Manager software distribution requested through Ivanti Neurons for ITSM self-service portal

Ivanti Endpoint Manager software distribution requested through Ivanti Neurons for ITSM self-service portal

Part 4 – Ivanti Automation configuration

Step 1 – Create Ivanti Automation Global Variables

Use this link to import all the required Global Variables. The resource in the Building Block includes a lot of Global Variables. For this project, the variables below are required.

Ivanti Endpoint Manager Client ID;Ivanti Endpoint Manager;Text
Ivanti Endpoint Manager Client Secret;Ivanti Endpoint Manager;Password
Ivanti Endpoint Manager Host;Ivanti Endpoint Manager;Text
Ivanti Endpoint Manager Username;Ivanti Endpoint Manager;Text
Ivanti Endpoint Manager Password;Ivanti Endpoint Manager;Password
Ivanti Endpoint Manager Distribution and Patch Settings ID;Ivanti Endpoint Manager;Text
Ivanti Endpoint Manager Reboot Settings ID;Ivanti Endpoint Manager;Text
Ivanti Endpoint Manager Package Category ID;Ivanti Endpoint Manager;Text
Ivanti Service Manager UserName;Ivanti Neurons for ITSM;Text
Ivanti Service Manager Password;Ivanti Neurons for ITSM;Password
Ivanti Service Manager Tenant;Ivanti Neurons for ITSM;Text
Ivanti Service Manager Tenant URL;Ivanti Neurons for ITSM;Text
Ivanti Service Manager APIKey;Ivanti Neurons for ITSM;Text

The values above can be directly pasted into the CSV in the Ivanti Automation Resource. Of course, manual creation is also an option.

IA Global Variables

Explanation

Ivanti Service Manager UserName

Account which needs to member of the Administrator role

Ivanti Service Manager Password

Password for the ISM Username

Ivanti Service Manager Tenant

FQDN of the ISM environment
(i.e., ism.automatedvision.info)

Ivanti Service Manager Tenant URL

URL of the ISM environment(i.e., https://ism.automatedvision.info/HEAT for Onprem and https://ism.automatedvision.info for Cloud solutions)

Ivanti Service Manager APIKey

ISM API Key created in part 3 step 2

Ivanti Endpoint Manager Client ID

Created in part 2 step 1

Ivanti Endpoint Manager Client Secret

Created in part 2 step 1

Ivanti Endpoint Manager Host

DNS or IP address of the EPM Core server

Ivanti Endpoint Manager Username

EPM user account with access to the EPM Core software

Ivanti Endpoint Manager Password

Password for the EPM user account

Ivanti Endpoint Manager Distribution and Patch Settings ID

Discussed later

Ivanti Endpoint Manager Reboot Settings ID

Discussed later

Ivanti Endpoint Manager Package Category ID

The EPM Distributed Category discussed in part 2 step 2. How to resolve the ID is discussed later in the blog

Step 2 – Import the connectors with the Ivanti Marketplace Solution Installer

Download the Ivanti Marketplace Solution Installer from the Ivanti Marketplace or from here.

Download the three required connectors as described in the prerequisites.

Start the Ivanti Marketplace Solution Installer. It’s not recommended to use the option. Import Add-On in the Add-ons in the Ivanti Automation Console (Setup – Add-ons). Due some certificate issues some of the connectors will not install.

A screenshot of a computer

Description automatically generated

Select Next in the start screen of the Ivanti Marketplace Solution Installer.

A screenshot of a computer

Description automatically generated

Accept the License Agreement and select Next to continue.

A screenshot of a computer screen

Description automatically generated

Browse for the connector to install and select Next to continue.

The file is recognized as an Ivanti Connector. Select Next to continue.

A screenshot of a computer

Description automatically generated

The next screen shows the available actions in the connector.

A screenshot of a software

Description automatically generated

Select Next to continue.

In the next screen, enter the database password when using SQL Authentication. Other option is using Windows Authentication.

A screenshot of a computer software

Description automatically generated

Select Next to continue.

A screenshot of a software installation

Description automatically generated

Select Upgrade to import the connector.

When finished, select Next to continue. This closes the application.

A screenshot of a computer

Description automatically generated

Select Setup – Add-ons in the Ivanti Automation Console and press F5 if the new installed connector isn’t shown.

The newly installed connector is available in the overview. The screenshot below shows many more installed connectors.

A screenshot of a computer

Description automatically generated

Execute the above actions for the other two connectors needed for the integration. When all three connectors are installed the list should be like the screenshot below.

Step 3 – Resolve EPM IDs

In this blog, we added the Distributed Software in the EPM Category ISM. When importing the EPM Software Packages in ISM, we need to know the Category ID.

Open the IA Console and select Library – Modules. Create a folder just for the ISM – EPM Software Distribution and create a new Module.

A screenshot of a computer

Description automatically generated

Enter a module name (i.e., Get EPM Category IDs) and select the Tasks tab.

Select Add and select PC Lifecycle Management – Ivanti Endpoint Manager Package. Select the action Get Category ID.

A screenshot of a computer

Description automatically generated

Don’t enter a value in the Ivanti Endpoint Manager Packagename. This can be used when a Category ID is needed for a single EPM Package. But in this example, we need to resolve all EPM Packages.

Select twice OK to continue and save the Module. Assuming agents are installed, schedule the newly created Module.

When the Module is finished, select Jobs – Job History in the IA Console. Double-click the finished module. When the Modules show failed, investigate the error (most of the time, the API is not working correctly).

When the Module finished successfully, select the tab Tasks, double-click the task, double-click the Agent, and select the tab Logs.

In the Logs, all Distributed Packages are shown with the corresponding Category ID.

In this blog, all Distributed Packages are added to the ISM Category. In this example, all EPM Packages used for ISM have Category ID 2.

A screenshot of a computer

Description automatically generated

Reboot Settings ID and Distribution and Patch Settings ID are mandatory settings when executing software distribution. The Reboot Settings and Distribution and Patch Settings are Agent Settings in the EPM Management Console.

A screenshot of a computer

Description automatically generated
A screenshot of a computer

Description automatically generated

In the screenshots above, the IDs are in the Name. But when the IDs are not in the name, we can create a Module with Tasks to resolve the IDs.

Note: Currently, all EPM Distributed Packages must use one Reboot Setting ID and one Distribution and Patch Setting ID.

In the IA Console, select Library – Modules and create a new Module. Enter a name and description.

A screenshot of a computer program

Description automatically generated

Select the Tasks tab. Select Add and select PC Lifecycle Management – Ivanti Endpoint Manager Settings. Select the List Patch & Distribution Settings.

A screenshot of a computer

Description automatically generated

This task uses 5 IA Global Variables, which are already created in step 1 of part 4.

But this task also creates output, which needs to be added to an IA Parameter.

A screenshot of a computer

Description automatically generated

There is currently no parameter created and not assigned. Select the <not assigned>. A dropdown box appears, and select the option AutoCreate parameter [Output].

A computer screen with text

Description automatically generated

A new parameter is created. Check the tab Parameters if the parameter is created.

A screenshot of a computer

Description automatically generated

Select the Properties tab and enter a Comment. This makes the tasks in the module more readable and understandable.

A screenshot of a computer

Description automatically generated

Select OK, and the task is created. The next task to create is for the Reboot Settings. Select Add and select PC Lifecycle Management – Ivanti Endpoint Manager Settings. Select the List Reboot Settings.

The actions are now available in the Recently Used.

This task uses 5 IA Global Variables, which are already created in step 1 of part 4.

But this task also creates output, which needs to be added to an IA Parameter.

A screenshot of a computer

Description automatically generated

There is currently no parameter created and not assigned. Select the <not assigned>. A dropdown box appears, and select the option Add Parameter. Auto creation is not possible because it will create an Output parameter, which is created in the first Task.

Enter a name like Output1, select the tab Input, and disable the option When scheduling Job.

A screenshot of a program

Description automatically generated
A screenshot of a computer program

Description automatically generated

Select OK to store the parameter. The newly created parameter is added to the Output task result. Select the Properties and enter a description.

Select OK to store the newly created task.

When finished both tasks are shown.

A screenshot of a computer

Description automatically generated

Select OK to store the Module. Schedule the Module to resolve the IDs.

When finished, select Jobs – Job History and select the finished job. Double-click the job, select the tab Agents, double-click the first task, and select the tab Logs.

A screenshot of a computer

Description automatically generated

In the Logs tab, all settings are visible. The first line, which mentions id, is the value needed for the Ivanti Endpoint Manager Distribution and Patch Settings ID global variable.

Execute this also for the other task and use the id for the Ivanti Endpoint Manager Reboot Settings ID global variable.

A screenshot of a computer

Description automatically generated

In this example the Ivanti Endpoint Manager Reboot Settings ID = 20 and the Ivanti Endpoint Manager Distribution and Patch Settings ID = 16.

All IA global variables for Ivanti Endpoint Manager should look like the screenshot below.

A screenshot of a computer

Description automatically generated

The IA global variables for Ivanti Service Manager should look like the screenshot below.

A white background with black text

Description automatically generated

Step 4 – Create a Module for importing EPM Distributed Packages in ISM

In the IA Console, select Library – Modules. In the created folder, select New.

A screenshot of a computer

Description automatically generated

Enter a name for the Module (i.e., Import EPM Software Packages in ISM).

A screenshot of a software program

Description automatically generated

Select the tab Tasks, and select Add to create a new task. Select Ivanti Integration – ISM-EPM Integration – Upload EPM Packages to ISM.

In the following screen, either add the EPM Category ID or the IA Global Variable.

EPM Category ID:

A screenshot of a box

Description automatically generated

IA Global Value – Ivanti Endpoint Manager Package Category ID

A screenshot of a computer

Description automatically generated
A screenshot of a computer

Description automatically generated
A computer screen shot of a blue box

Description automatically generated

When finished, select OK to create the Module.

A screenshot of a computer program

Description automatically generated

EPM Packages in the ISM folder are imported into the EPM Automation Package view. This is the list from the ivnt_AutomationSoftwarePackage BO.

From the More button in the ISM Portal, select EPM Automation Package. In this overview, the packages from EPM are shown.

In this blog, 5 EPM packages are added, but in EPM, 6 packages are available. Let’s schedule the newly created Module to import the new EPM Package (Visual Studio Code).

A screenshot of a computer

Description automatically generated
A screenshot of a computer

Description automatically generated

Schedule the newly created Module from the IA Console, and when successfully finished, select Refresh in the EPM Automation Package list.

The new distributed application is added to the EPM Automation Package view.

A screenshot of a computer

Description automatically generated

When new distributed packages are created with the correct category, this Module needs to be scheduled.

Step 5 – Creating ISM Request Offering and IA Runbook for executing the software distribution through EPM

In the IA Console, select Library – Modules and select New in the folder created. Name the Module (i.e., Update Job Status on ISM) select the tab Tasks, and select Add.

A screenshot of a computer

Description automatically generated

Select Service Desk Integration – Ivanti Service Manager General – Update Record.

For the Task setting parameters (p_status, ISM_TransactionID, and job_results) new parameters need to be created.

Right-click in the field behind the name and select Insert Parameters – AutoCreate parameter [fieldname].

A screenshot of a computer

Description automatically generated

Execute this for all three task settings values.

For the parameter Results, use the AutoCreate option to create a parameter Results.

A blue and white box with black text

Description automatically generated

When finished, the setting should be like the screenshot below.

A screenshot of a computer

Description automatically generated
A screenshot of a computer program

Description automatically generated

Click twice on OK to create the Module.

Create a new Module in the same folder as we have done before. Name the Module (i.e., Install EPM Distributed Package).

A screenshot of a computer

Description automatically generated

Select Add to create a new task. Select Ivanti Integration – Install requested software from the Task list.

A screenshot of a computer

Description automatically generated

After selecting the Task, three parameters need to be created. Use the AutoCreate Parameter option and execute this for all three Task Settings values.

A screenshot of a computer

Description automatically generated
A screenshot of a software box

Description automatically generated

Select twice OK to create the Module.

Select Runbooks in the Library and create a folder with the same name as in the Modules (this is to make it clearer). In the folder, create a new Runbook.

A screenshot of a computer

Description automatically generated

Name the Runbook (i.e., Software Installation performed by EPM requested by ISM), select the tab Jobs, and select Add.

A screenshot of a computer

Description automatically generated

Click in the What field, select the Module that installs the EPM Package, and select OK.

A screenshot of a program

Description automatically generated

Click in the Who field, select Search, and add the IA Agent that executes the job.

A screenshot of a computer

Description automatically generated

In the Error control, select the option Continue Run Book on error.

Select OK to store the first Module in the Runbook. Select Add again to add the second Module.

In the What field, select the Update Job Status on ISM Module (or the name given during the creation of the Module).

In the Who field, select the IA Agent. Leave all other settings default.

In the Jobs overview, 2 Modules are now added like shown in the screenshot below.

A screenshot of a computer program

Description automatically generated

Select the tab Run Book Parameters and select AutoCreate. Select Yes to AutoLink the job parameters. This action will add all the Module Parameters in the RunBook as RunBook Parameters.

When finished, all parameters are added.

A screenshot of a computer

Description automatically generated

This finalizes all the actions in Ivanti Automation. Next, we need to import the IA Runbook into ISM and create a Request Offering to install software with the template earlier imported.

Open the ISM URL and log in. Select the wrench icon to open the AdminUI.

Select Extend – Integration Tools – Web Service Connections, and in the list, scroll down until you find IVNT_Automation_Runbooks.

Select the pencil icon top open the integration. This integration will import the IA Runbooks into the BO.

Select three times Next in the screenshots below.

A screenshot of a computer

Description automatically generated
A screenshot of a computer

Description automatically generated
A screenshot of a computer

Description automatically generated

In the screenshot below, select Publish & Run Now.

A screenshot of a computer

Description automatically generated

Select OK to continue. The job is moved to the Integration Queue and, when finished, to the Integration Log.

A screenshot of a computer

Description automatically generated

When the import is successfully finished, the column Failed Count shows 0.

A screenshot of a computer

Description automatically generated

When the Runbooks are imported, we need to create a Request Offering from the Template earlier imported.

Move to the ISM Web Page and search for Request Offering in the More option in the menu.

A screenshot of a computer

Description automatically generated

Select the Software category from the category overview.

A screenshot of a computer

Description automatically generated

Select the Duplicate button next to Software Installation Template.

Give the template the name of the application/software to install. In this blog

A screenshot of a computer

Description automatically generated

After duplicating the template, the new Request Offering is opened on the first tab Define request offering. Change the values as needed. The screenshot below show my setting for distributing packages/installing software.

A screenshot of a computer

Description automatically generated

Select Next to move to the next tab, Design request form. Select the pencil icon in front of the value Available Software.

A screenshot of a computer

Description automatically generated

Select the option Default Value: None, change from None to Value, and select the software to be installed from the dropdown list. In this example we choose Visual Studio Code.A screenshot of a software

Description automatically generated

Select OK to save the settings. Select Next to continue to the next tab, Plan request fulfillment.

This tab shows the complete pre-defined workflow and includes an Ivanti Automation workflow action. Scroll down and to the right to find the workflow action Trigger Software Installation.

A screenshot of a computer

Description automatically generated

Double-click the workflow action, and a new window opens. In the Select Runbook, select the Runbook created earlier. In this example, the name of the Runbook is Software Installation executed by EPM.

A screenshot of a software installation

Description automatically generated

Enable the option Parallel in the Runbook Options.

A white box with black text

Description automatically generated

Expand the Available Fields Service Request Templates – Visual Studio Code. All the form items are available in the list.

Drag and drop the following items to the corresponding Parameter Fields.

  • PackageID 🡪 Ivanti Endpoint Manage Package ID
  • PackageName 🡪 Ivanti Endpoint Manage Package Name
  • Computer 🡪 Ivanti Endpoint Manage Target ID

Select Save to store the Ivanti Automation workflow action. Select Next to move to the next tab Publish Action Access.

Change the status from In Design to Published.

A white background with black text

Description automatically generated

Select Save & Exit to finish the Request Offering.

This finalizes the configuration for all the components.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.