0.4.4-2023.1.0 • Published 11 months ago

@itentialopensource/iag-itenital-get-info-extract-common-fields v0.4.4-2023.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

IAG itential_get_info Extract Common Fields

Table of Contents

Overview

This Pre-Built Transfromation maps the output from Automation Gateway's itential_get_info role task to expose the fields below to workflow tasks:

{
  "ansible_net_model": "",
  "ansible_net_system": "",
  "ansible_net_version": "",
  "ansible_net_image": "",
  "ansible_net_memfree_mb": 0,
  "deviceName": ""
}

Installation Prerequisites

Users must satisfy the following pre-requisites:

  • Itential Automation Platform
    • ^2020.1.2
  • Adapter Automation Gateway
    • ^2020.1.2
  • App-Artifacts
    • ^5.x.x

How to Install

To install the artifact:

  • Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Requirements section in order to install the artifact.
  • The artifact can be installed from within App-Admin_Essential. Simply search for the name of your desired artifact and click the install button (as shown below).

How to Run

Use this JST in combination with the itential_get_info task in Workflow Builder.

Example input to the JST (Response from itential_get_info):

{
    "role": "itential_get_info",
    "task": "itential_get_info response",
    "host": "ios_aws",
    "status": "SUCCESS",
    "argument_warnings": null,
    "results": {
      "serial_number": "9IKZMWL4K0X",
      "raw_ansible_facts": {
        "ansible_net_serialnum": "9IKZMWL4K0X",
        "ansible_net_all_ipv4_addresses": [
          "10.11.0.72"
        ],
        "ansible_net_model": "CSR1000V",
        "ansible_net_system": "ios",
        "ansible_net_hostname": "ph10894c",
        "ansible_net_gather_subset": [
          "hardware"
        ],
        "ansible_net_interfaces": {},
        "ansible_net_version": "03.16.02.S",
        "ansible_net_all_ipv6_addresses": [],
        "ansible_net_memtotal_mb": 1672835,
        "ansible_net_filesystems": [
          "bootflash:"
        ],
        "ansible_net_image": "bootflash:packages.conf",
        "ansible_net_memfree_mb": 1442035
      },
      "interfaces": {},
      "os_version": "03.16.02.S",
      "changed": true
    }
}

Example Output:

{
  "ansible_net_model": "CSR1000V",
  "ansible_net_system": "ios",
  "ansible_net_version": "03.16.02.S",
  "ansible_net_image": "bootflash:packages.conf",
  "ansible_net_memfree_mb": 1442035,
  "deviceName": "ios_aws"
}
0.4.4-2023.1.0

11 months ago

0.4.3

12 months ago

0.4.3-2022.1.0

12 months ago

0.4.2

12 months ago