Difference between revisions of "ITOM Package Creator Quick Guide"

From Hornbill
Jump to navigation Jump to search
Line 230: Line 230:
 
== PowerShell Script Package ==
 
== PowerShell Script Package ==
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
TBC
+
 
 +
 
 +
==Create a Simple PowerShell Package==
 +
 
 +
<ol style="list-style-type: decimal;">
 +
<li><p>From the ITOM page select Package Creator</p></li>
 +
<li><p>Click the New Package button [[File:NewPackageButton.png|23x22px]]</p></li>
 +
<li><p>Enter a Package name: '''OS Information'''</p></li>
 +
<li><p>Set Target OS to '''Windows Universal'''</p></li>
 +
<li><p>Click the Add new File Button</p></li>
 +
<li><p>Enter filename as: <b>osinfo.ps1</b> and click <b>Apply</b></p></li>
 +
<li><p>Click '''Add Operation''' button</p></li>
 +
<li><p>Enter the following details:</p>
 +
<ol style="list-style-type: lower-alpha;">
 +
<li><p>Operation: '''Get Details'''</p></li>
 +
<li><p>Description: '''General Information on the installed operating system'''</p></li>
 +
<li><p>Command Type: '''Windows PowerShell'''</p></li>
 +
<li><p>Set the Script to: '''osinfo.ps1'''</p></li>
 +
<li><p>Timeout(secs): '''60'''</p></li>
 +
<li><p>Options/Args: '''-n {param.count} {param.host}'''</p></li></ol>
 +
</li>
 +
</ol>
 +
<!-- ====Input Parameters====
 +
<ol style="list-style-type: decimal;">
 +
<li><p>Click '''Add Parameter button'''</p></li>
 +
<li><p>Set the following attributes:</p>
 +
<ol style="list-style-type: lower-alpha;">
 +
<li><p>'''Required'''</p></li>
 +
<li><p>'''Number'''</p></li>
 +
<li><p>Parameter Name: '''count'''</p></li>
 +
<li><p>Default value: '''3'''</p></li>
 +
<li><p>Hint: '''Number of echo requests to send.'''</p></li></ol>
 +
</li>
 +
</ol>
 +
-->
 +
====Output Parameters====
 +
<ol style="list-style-type: decimal;">
 +
<li><p>Click '''Add Parameter''' button</p></li>
 +
<li><p>Set the following attributes:</p>
 +
<ol style="list-style-type: lower-alpha;">
 +
<li><p>'''Required'''</p></li>
 +
<li><p>'''string'''</p></li>
 +
<li><p>Parameter Name: '''Name'''</p></li>
 +
<li><p>Click '''Add'''</p></li>
 +
</li>
 +
<li><p>Add the following additional entries:</p></li>
 +
<ol style="list-style-type: lower-alpha;">
 +
<li>Version</li>
 +
<li>Build</li>
 +
<li>RegisteredTo</li>
 +
</ol>
 +
</ol>
 +
<li><p>Click '''Apply'''</p></li>
 +
<li><p>Click '''Baseline''' button</p></li>
 +
<li><p>Select ''Version 1''' via the Drop Down Adjacent to the Baseline button'''</p></li>
 +
<li><p>Click '''Package and Install''' drop down, and select '''Package and Install'''</p></li>
 +
</li>
 +
</ol>
 +
===Executing the Package Operation===
 +
<ol style="list-style-type: decimal;">
 +
<li><p>Navigate to ('''Home &gt; ITOM &gt; Job Queue''')</p></li>
 +
<li><p>Click Create '''New button''', and select '''IT Automation Job'''</p></li>
 +
<li><p>Select Run Package: '''private:{''instance-name''} &gt; General Purpose &gt; TCP Utilities (Version 1)'''</p></li>
 +
<li><p>Click '''Apply'''</p></li>
 +
<li><p>Enter the following details:</p>
 +
<ol style="list-style-type: lower-alpha;">
 +
<li><p>Name: '''Ping Computer'''</p></li>
 +
<li><p>Run Operation: '''ping'''</p></li>
 +
<li><p>Site Target: '''Server | &lt;SIS Server&gt;'''</p></li>
 +
<li><p>Target Machine: '''Inventory |&lt;target computer&gt;'''</p></li>
 +
<li><p>Admin Credentials: '''Network Admin'''</p></li></ol>
 +
</li>
 +
<li><p>Click '''Create'''</p></li></ol>
 +
 
 +
<div class="mw-collapsible mw-collapsed" data-collapsetext="Show Less" data-expandtext="Read More" style="width:1050px">
 +
 
 +
 
 
</div></div>
 
</div></div>
  
 
== Linux Shell Script Package ==
 
== Linux Shell Script Package ==

Revision as of 16:35, 17 November 2021

Home > Administration > ITOM > ITOM Quick Start Guide > ITOM Package Creator Quick Guide Index

Introduction

Hornbill ITOM provides you with the ability to create your own user-defined packages, of which you can use to create IT Automations and enhance Runbooks processes. This guide will take you through the basics of creating the different types of packages that are available, publishing and executing them. Packages can be as simple operation such as executing an OS command or executable thru to the creation of a complex script.

Packages contain a number of operations that provide some functionality to be used within an IT Automation. In general, the operations contained within a package would relate in some form, i.e User Account Management (Create, Delete, Disable, Enable, etc.). However, it is completely up to yourself what operations are contained within a package. You could, for example, have a package called toolbox, which contains operations for User Management, TCP/IP Utilities, File Management etc. This would no doubt become a little confusing and difficult to manage in the long term.

Package operation command types:

Related Articles

  • Run an OS Command
  • Run a Windows Installer
  • Run a Windows Executable
  • Batch Script
  • Windows Powershell
  • Powershell Core
  • Linux Shell Script
Information
Although no technical skills will be required to follow this guide, further knowledge in the relevant areas will be required in order to get the best out of these features successfully.

Create a Simple Run Command Package

  1. From the ITOM page select Package Creator

  2. Click the New Pacakge button NewPackageButton.png

  3. Enter a Package name: TCP Utilities

  4. Set Target OS to Windows Universal

  5. Click Add Operation button

  6. Enter the following details:

    1. Operation: Ping

    2. Description: Ping a device using the parameters -n, host

    3. Command Type: Run Command

    4. Command: cmd /c ping.exe

    5. Timeout(secs): 60

    6. Options/Args: -n {param.count} {param.host}

  7. Click Add Parameter button

  8. Set the following attributes:

    1. Required

    2. Number

    3. Parameter Name: count

    4. Default value: 3

    5. Hint: Number of echo requests to send.

  9. Click Add Parameter button

  10. Set the following attributes:

    1. Required

    2. string

    3. Parameter Name: host

    4. Hint: Target device hostname.

  11. Click Apply

  12. Click Baseline button

  13. Select Version 1 via the Drop Down Adjacent to the Baseline button

  14. Click Package and Install drop down, and select Package and Install

Executing the Package Operation

  1. Navigate to (Home > ITOM > Job Queue)

  2. Click Create New button, and select IT Automation Job

  3. Select Run Package: private:{instance-name} > General Purpose > TCP Utilities (Version 1)

  4. Click Apply

  5. Enter the following details:

    1. Name: Ping Computer

    2. Run Operation: ping

    3. Site Target: Server | <SIS Server>

    4. Target Machine: Inventory |<target computer>

    5. Admin Credentials: Network Admin

  6. Click Create

Windows Installer Package

  1. From the ITOM page select Package Creator
  2. Click the New Package NewPackageButton.png button
  3. Enter a Package name: Software Installer
  4. Set Target OS to Windows Universal
  5. Click Upload File PacakgeUploadButton.png button
  6. Select the following file:

C:\ Documents\ITOM\Packages\Demo.msi

  1. Click on Package Info

  2. Click Add Operation button

  3. Enter the following details:

    1. Operation: Install

    2. Description: Install Windows application

    3. Command Type: Windows Installer

    4. Package: Demo.msi

    5. Action: Install Software

  4. Click Add

  5. Click Add Operation button

  6. Enter the following details:

    1. Operation: Uninstall

    2. Description: Uninstall Windows application

    3. Command Type: Windows Installer

    4. Package: Demo.msi

    5. Action: Uninstall Software

  7. Click Add

  8. Click Baseline button

  9. Select Version 1 via the Drop Down Adjacent to the Baseline button

  10. Click Package and Install drop down, and select Package and Install

Execute Installation Job

  1. Navigate to (Home > ITOM > Job Queue)
  2. Click Create New button, and select IT Automation Job
  3. Select Package:

private:{instance-name} > General Purpose > Software Installer (Version 1)

  1. Click Apply

  2. Enter the following details:

    1. Name: Software Installation

    2. Run Operation: Install

    3. Site Target: Server | <SIS Server>

    4. Target Machine: Inventory |<target computer>

    5. Admin Credentials: 'Network Admin

  3. Click Create

  4. Verify that the following software exists on the target:

Name: Generic Business Application

Publisher: Acme Software Ltd

Execute Uninstallation Job

  1. Navigate to (Home > ITOM > Job Queue)
  2. Click Create New button, and select IT Automation Job
  3. Select Package:

private:{instance-name} > General Purpose > Software Installer (Version 1)

  1. Click Apply

  2. Enter the following details:

    1. Name: Software Uninstallation

    2. Run Operation: UniInstall

    3. Site Target: Server | <SIS Server>

    4. Target Machine: Inventory |<target computer>

    5. Admin Credentials: Network Admin

  3. Click Create

  4. Verify that the following the software no longer exists on the target:

Name: Generic Business Application

Publisher: Acme Software Ltd

Windows Executable Package

From the ITOM page select Package Creator
  1. Click the New Package NewPackageButton.png button
  2. Enter a Package name: Windows Executable
  3. Set Target OS to Windows Universal
  4. Click Upload File button
  5. Select the following file:

C:\ Documents\ITOM\Packages\ShowHarry.exe

  1. Click on Package Info

  2. Click Add Operation button

  3. Enter the following details:

    1. Operation: Show Harry

    2. Description: Windows Executable - Show Harry.exe

    3. Command Type: Windows Executable

    4. Run File: ShowHarry.exe

  4. Click Add

  5. Click Baseline button

  6. Select Version 1 via the Drop Down Adjacent to the Baseline button

  7. Click Package and Install drop down, and select Package and Install

Execute Job

  1. Navigate to (Home > ITOM > Job Queue)

  2. Click Create New (+) button, and select IT Automation Job

  3. Select Run Package: private:{instance-name} > General Purpose > Windows Executable (Version 1)

  4. Click Apply

  5. Enter the following details:

    1. Name: Windows Executable

    2. Run Operation: Show Harry

    3. Site Target: Server | <SIS Server>

    4. Target Machine: Inventory |<target computer>

    5. Admin Credentials: Network Admin

  6. Click Create

Batch Script Package

TBC

PowerShell Script Package


Create a Simple PowerShell Package

  1. From the ITOM page select Package Creator

  2. Click the New Package button NewPackageButton.png

  3. Enter a Package name: OS Information

  4. Set Target OS to Windows Universal

  5. Click the Add new File Button

  6. Enter filename as: osinfo.ps1 and click Apply

  7. Click Add Operation button

  8. Enter the following details:

    1. Operation: Get Details

    2. Description: General Information on the installed operating system

    3. Command Type: Windows PowerShell

    4. Set the Script to: osinfo.ps1

    5. Timeout(secs): 60

    6. Options/Args: -n {param.count} {param.host}

Output Parameters

  1. Click Add Parameter button

  2. Set the following attributes:

    1. Required

    2. string

    3. Parameter Name: Name

    4. Click Add

    5. Add the following additional entries:

      1. Version
      2. Build
      3. RegisteredTo
  3. Click Apply

  4. Click Baseline button

  5. Select Version 1 via the Drop Down Adjacent to the Baseline button

  6. Click Package and Install drop down, and select Package and Install

Executing the Package Operation

  1. Navigate to (Home > ITOM > Job Queue)

  2. Click Create New button, and select IT Automation Job

  3. Select Run Package: private:{instance-name} > General Purpose > TCP Utilities (Version 1)

  4. Click Apply

  5. Enter the following details:

    1. Name: Ping Computer

    2. Run Operation: ping

    3. Site Target: Server | <SIS Server>

    4. Target Machine: Inventory |<target computer>

    5. Admin Credentials: Network Admin

  6. Click Create


Linux Shell Script Package