UNPKG

@itentialopensource/device-pre-post-check-execution

Version:

A device pre post check execution demo for Itential Automation Platform (IAP)

696 lines (695 loc) 89.5 kB
{ "metadata": { "name": "@itentialopensource/device-pre-post-check-execution", "version": "0.4.6-2022.1.1", "description": "A device pre post check execution demo for Itential Automation Platform (IAP)", "license": "Apache-2.0", "repository": { "type": "gitlab", "hostname": "gitlab.com", "path": "itentialopensource/pre-built-automations" }, "keywords": [ "IAP", "artifacts", "Itential", "Pronghorn", "Network", "Automation", "MOP", "Pre-Post checks", "NSO", "Cisco-IOS", "Ansible" ], "author": "Itential Artifacts", "IAPDependencies": { "@itential/app-workflow_engine": "5.1.10 - 6", "@itential/app-mop": "5.12.2 - 6", "configuration_manager": { "@itential/app-configuration_manager": "3.16.9 - 3", "@itential/app-configuration_manager-maintenance": "3.16.9 - 3" } }, "gitlabId": 12213851 }, "manifest": { "bundleName": "Device Pre-Post Check Execution", "fingerprint": "Some verifiable token", "createdEpoch": "1554836984020", "artifacts": [ { "id": "Device pre post execution workflow", "name": "Device pre post execution workflow", "type": "workflow", "location": "/bundles/workflows/Device pre post execution workflow.json", "description": "Main entry point to artifact", "properties": { "entryPoint": true, "entryPointObj": { "options": { "description": "Device Pre-Post check execution started from App-Artifact", "variables": {} } } } }, { "id": "Device Pre Post Execution Device Select JSON Form", "name": "Device Pre Post Execution Device Select JSON Form", "type": "json-forms", "location": "/bundles/json_forms/Device Pre Post Execution Device Select JSON Form.json", "properties": { "entryPoint": false } }, { "id": "Itential-Artifacts pre post execution", "name": "Itential-Artifacts pre post execution", "type": "mop-analytic-template", "location": "/bundles/mop_analytic_templates/Itential-Artifacts pre post execution.json", "description": "MOP Analytic Template" }, { "id": "Itential-Artifacts pre post execution", "name": "Itential-Artifacts pre post execution", "type": "mop-template", "location": "/bundles/mop_templates/Itential-Artifacts pre post execution.json", "description": "MOP Command Template" } ] }, "bundles": [ { "type": "workflow", "data": { "name": "Device pre post execution workflow", "tasks": { "6562": { "name": "evaluation", "summary": "Run Evaluation", "description": "Run an evaluation", "location": "Application", "locationType": null, "app": "WorkFlowEngine", "displayName": "WorkFlowEngine", "type": "operation", "variables": { "incoming": { "all_true_flag": false, "evaluation_groups": [ { "all_true_flag": false, "evaluations": [ { "query": "", "operand_1": { "variable": "status", "task": "18d6" }, "operator": "==", "operand_2": { "variable": true, "task": "static" } }, { "query": ".response", "operand_1": { "variable": "status", "task": "18d6" }, "operator": "==", "operand_2": { "variable": true, "task": "static" } } ] } ] }, "outgoing": { "return_value": null } }, "deprecated": false, "groups": [], "x": 0.14536340852130325, "y": 0.6364922206506365 }, "9354": { "name": "newVariable", "summary": "Create a Job Variable", "description": "Create a new Job variable by Job ID and assign it a value.", "location": "Application", "app": "WorkFlowEngine", "displayName": "WorkFlowEngine", "type": "operation", "variables": { "incoming": { "name": "STUB", "value": false }, "outgoing": { "value": null } }, "deprecated": false, "groups": [], "x": -0.171201061712011, "y": 0.621586475942783 }, "workflow_start": { "name": "workflow_start", "groups": [], "x": -0.46123260437375746, "y": 0.4421841541755889 }, "workflow_end": { "name": "workflow_end", "groups": [], "x": 1.6110006626905236, "y": 0.41220556745182013 }, "d1ef": { "name": "newVariable", "summary": "Create a Job Variable", "description": "Create a new Job variable by Job ID and assign it a value.", "location": "Application", "app": "WorkFlowEngine", "displayName": "WorkFlowEngine", "type": "operation", "variables": { "incoming": { "name": "STUB", "value": true }, "outgoing": { "value": null } }, "deprecated": false, "groups": [], "x": -0.171201061712011, "y": 0.266579973992198 }, "c68d": { "name": "runAnalyticsTemplate", "summary": "Run an Analytics Template", "description": "Run an Analytic Template.", "location": "Application", "app": "MOP", "displayName": "MOP", "type": "automatic", "variables": { "incoming": { "pre": "$var.job.PRE", "post": "$var.job.POST", "analytic_template_name": "Itential-Artifacts pre post execution", "variables": {} }, "outgoing": { "analytic_template_results": "$var.job.ANALYTIC" }, "error": "" }, "deprecated": false, "groups": [], "actor": "Pronghorn", "x": 1.337972166998012, "y": 0.4089935760171306, "scheduled": false }, "dedb": { "name": "RunCommand", "summary": "Run a Command against a Device", "description": "Run a command against a device.", "location": "Application", "app": "MOP", "displayName": "MOP", "type": "automatic", "variables": { "incoming": { "command": "show ?", "variables": {}, "device": "$var.job.device" }, "outgoing": { "result": null }, "error": "" }, "deprecated": false, "groups": [], "actor": "Pronghorn", "x": 0.258792302587923, "y": 0.642392717815345, "scheduled": false }, "d086": { "name": "RunCommandTemplate", "summary": "Run Command Template Demo (PRE)", "description": "Run Command Template Demo (PRE)", "location": "Application", "app": "MOP", "displayName": "MOP", "type": "automatic", "variables": { "incoming": { "template": "Itential-Artifacts pre post execution", "variables": { "VARIABLE": "?" }, "devices": "$var.job.device" }, "outgoing": { "mop_template_results": "$var.job.PRE" }, "error": "" }, "deprecated": false, "groups": [], "actor": "Pronghorn", "x": 0.4967213114754098, "y": 0.5911485774499473, "scheduled": false }, "d03f": { "name": "runTemplatesDiff", "summary": "View Pre/Post Diff", "description": "View Pre/Post Diff", "location": "Application", "app": "MOP", "displayName": "MOP", "type": "manual", "variables": { "incoming": { "pre": "$var.job.PRE", "post": "$var.job.POST" }, "outgoing": {}, "error": "" }, "view": "/mop/task/runTemplatesDiff", "deprecated": false, "groups": [], "x": 1.1895294897282969, "y": 0.4132762312633833, "scheduled": false }, "c52a": { "name": "viewTemplateResults", "summary": "View MOP Analytic Results", "description": "Pre Vs. Post", "location": "Application", "app": "MOP", "displayName": "MOP", "type": "manual", "variables": { "incoming": { "mop_template_results": "$var.job.ANALYTIC" }, "outgoing": {}, "error": "" }, "view": "/mop/task/viewTemplateResults", "deprecated": false, "groups": [], "x": 1.487740225314778, "y": 0.4068522483940043, "scheduled": false }, "c713": { "name": "viewTemplateResults", "summary": "View PRE results", "description": "View PRE results", "location": "Application", "app": "MOP", "displayName": "MOP", "type": "manual", "variables": { "incoming": { "mop_template_results": "$var.job.PRE" }, "outgoing": {}, "error": "" }, "view": "/mop/task/viewTemplateResults", "deprecated": false, "groups": [], "x": 0.5864811133200796, "y": 0.39721627408993576, "scheduled": false }, "8f88": { "name": "RunCommandTemplate", "summary": "Run Command Template Demo (POST)", "description": "Run Command Template Demo (POST)", "location": "Application", "app": "MOP", "displayName": "MOP", "type": "automatic", "variables": { "incoming": { "template": "Itential-Artifacts pre post execution", "variables": { "VARIABLE": "log" }, "devices": "$var.job.device" }, "outgoing": { "mop_template_results": "$var.job.POST" }, "error": "" }, "deprecated": false, "groups": [], "actor": "Pronghorn", "x": 1.0894632206759443, "y": 0.6541755888650964, "scheduled": false }, "1d77": { "name": "newVariable", "summary": "Create a Job Variable", "description": "Create a new Job variable by Job ID and assign it a value.", "location": "Application", "app": "WorkFlowEngine", "displayName": "WorkFlowEngine", "type": "operation", "variables": { "incoming": { "name": "PRE", "value": { "all_pass_flag": true, "result": true, "commands_results": [ { "raw": "show clock", "all_pass_flag": true, "evaluated": "show clock", "parameters": {}, "rules": [ { "rule": "", "eval": "contains", "severity": "error", "raw": "", "result": true } ], "device": "csr100v-03.10.02S", "response": "\n> show clock\r\n21:38:38.936 UTC Mon Mar 11 2019\r\nIOS_03.10.02.S#", "result": true }, { "raw": "show running", "all_pass_flag": true, "evaluated": "show running", "parameters": {}, "rules": [ { "rule": "", "eval": "contains", "severity": "error", "raw": "", "result": true } ], "device": "csr100v-03.10.02S", "response": "\n> show running\r\nBuilding configuration...\r\n\r\nCurrent configuration : 1661 bytes\r\n!\r\n! Last configuration change at 20:27:38 UTC Wed Feb 27 2019 by admin\r\n!\r\nversion 15.3\r\nservice timestamps debug datetime msec\r\nservice timestamps log datetime msec\r\nno platform punt-keepalive disable-kernel-core\r\nplatform console virtual\r\n!\r\nhostname IOS_03.10.02.S\r\n!\r\nboot-start-marker\r\nboot system bootflash:csr1000v-universalk9.03.10.02.S.153-3.S2-ext.SPA.bin\r\nboot-end-marker\r\n!\r\n!\r\nvrf definition Mgmt-intf\r\n !\r\n address-family ipv4\r\n exit-address-family\r\n !\r\n address-family ipv6\r\n exit-address-family\r\n!\r\nenable secret 5 $1$BN.t$iovYmaRNXlBHmCgTebZoV/\r\n!\r\naaa new-model\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\naaa session-id common\r\nclock calendar-valid\r\n!\r\n!\r\n!\r\n!\r\n!\r\n\r\n\r\nip domain name itential.com\r\nip name-server 8.8.8.8\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\nmultilink bundle-name authenticated\r\n!\r\n!\r\n!\r\nusername admin password 0 admin\r\n!\r\nredundancy\r\n mode none\r\n!\r\n!\r\n!\r\nip tftp source-interface GigabitEthernet0\r\nip ssh authentication-retries 2\r\n!\r\n!\r\n!\r\n!\r\ninterface GigabitEthernet1\r\n ip address 192.168.3.208 255.255.252.0\r\n negotiation auto\r\n!\r\ninterface GigabitEthernet2\r\n no ip address\r\n shutdown\r\n negotiation auto\r\n!\r\ninterface GigabitEthernet0\r\n vrf forwarding Mgmt-intf\r\n no ip address\r\n shutdown\r\n negotiation auto\r\n!\r\n!\r\nvirtual-service csr_mgmt\r\n activate\r\n!\r\nip forward-protocol nd\r\n!\r\nno ip http server\r\nno ip http secure-server\r\nip route 0.0.0.0 0.0.0.0 192.168.0.1\r\nip route 8.8.8.8 255.255.255.255 192.168.0.1\r\nip route 45.33.48.4 255.255.255.255 GigabitEthernet1\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\ncontrol-plane\r\n!\r\n!\r\nline con 0\r\n stopbits 1\r\nline aux 0\r\n stopbits 1\r\nline vty 0\r\n transport input telnet\r\nline vty 1\r\n length 0\r\n transport input telnet\r\nline vty 2 4\r\n transport input telnet\r\nline vty 5 9\r\nline vty 10 20\r\n transport input ssh\r\n!\r\nntp server 172.20.100.10\r\nonep\r\n!\r\nend\r\n\r\nIOS_03.10.02.S#", "result": true }, { "raw": "show version", "all_pass_flag": true, "evaluated": "show version", "parameters": {}, "rules": [ { "rule": "configuration register is 0x2102", "eval": "contains", "severity": "error", "flags": { "case": true }, "raw": "configuration register is 0x2102", "result": true }, { "rule": "cisco ios", "eval": "contains", "severity": "warning", "flags": { "case": true }, "raw": "cisco ios", "result": true } ], "device": "csr100v-03.10.02S", "response": "\n> show version\r\nCisco IOS XE Software, Version 03.10.02.S - Extended Support Release\r\nCisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.3(3)S2, RELEASE SOFTWARE (fc3)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\r\nCompiled Fri 31-Jan-14 20:10 by mcpre\r\n\r\n\r\nCisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc.\r\nAll rights reserved. Certain components of Cisco IOS-XE software are\r\nlicensed under the GNU General Public License (\"GPL\") Version 2.0. The\r\nsoftware code licensed under GPL Version 2.0 is free software that comes\r\nwith ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such\r\nGPL code under the terms of GPL Version 2.0. For more details, see the\r\ndocumentation or \"License Notice\" file accompanying the IOS-XE software,\r\nor the applicable URL provided on the flyer accompanying the IOS-XE\r\nsoftware.\r\n\r\n\r\nROM: IOS-XE ROMMON\r\n\r\nIOS_03.10.02.S uptime is 1 week, 5 days, 2 hours, 13 minutes\r\nUptime for this control processor is 1 week, 5 days, 2 hours, 18 minutes\r\nSystem returned to ROM by reload at 19:12:27 UTC Wed Feb 27 2019\r\nSystem restarted at 19:25:15 UTC Wed Feb 27 2019\r\nSystem image file is \"bootflash:csr1000v-universalk9.03.10.02.S.153-3.S2-ext.SPA.bin\"\r\nLast reload reason: Reload Command\r\n\r\n\r\n\r\nThis product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and\r\nuse. Delivery of Cisco cryptographic products does not imply\r\nthird-party authority to import, export, distribute or use encryption.\r\nImporters, exporters, distributors and users are responsible for\r\ncompliance with U.S. and local country laws. By using this product you\r\nagree to comply with applicable laws and regulations. If you are unable\r\nto comply with U.S. and local laws, return this product immediately.\r\n\r\nA summary of U.S. laws governing Cisco cryptographic products may be found at:\r\nhttp://www.cisco.com/wwl/export/crypto/tool/stqrg.html\r\n\r\nIf you require further assistance please contact us by sending email to\r\nexport@cisco.com.\r\n\r\nLicense Level: limited\r\nLicense Type: Default. No valid license found.\r\nNext reload license Level: limited\r\n\r\ncisco CSR1000V (VXE) processor with 821388K/6147K bytes of memory.\r\nProcessor board ID 9LW57Q25AIB\r\n2 Gigabit Ethernet interfaces\r\n32768K bytes of non-volatile configuration memory.\r\n3145728K bytes of physical memory.\r\n7774207K bytes of virtual hard disk at bootflash:.\r\n\r\nConfiguration register is 0x2102\r\n\r\nIOS_03.10.02.S#", "result": true }, { "raw": "show <!VARIABLE!>", "all_pass_flag": true, "evaluated": "show ?", "command": "show ?", "parameters": { "VARIABLE": "?" }, "rules": [ { "rule": "", "eval": "contains", "severity": "error", "raw": "", "result": true } ], "device": "csr100v-03.10.02S", "response": "\n> show ?\r\n aaa Show AAA values\r\n access-expression List access expression\r\n access-lists List access lists\r\n accounting Show accounting\r\n adjacency Adjacent nodes\r\n aliases Display alias commands\r\n alignment Show alignment information\r\n alps Alps information\r\n ancp ANCP information\r\n application Application Routing\r\n archive Archive functions\r\n arp ARP table\r\n async Information on terminal lines used as router interfaces\r\n auto Show Automation Template\r\n backup Backup status\r\n beep Show BEEP information\r\n bgp BGP information\r\n bootflash: display information about bootflash: file system\r\n bootlog Show bootlog contents\r\n bootvar Boot and related environment variable\r\n bridge Bridge Forwarding/Filtering Database [verbose]\r\n bridge-domain Bridge-domain\r\n bsc BSC interface information\r\n bstun BSTUN interface information\r\n buffers Buffer pool statistics\r\n bulkstat Bulkstat show commands\r\n cache Shows Device-Sensor Cache Informations \r\n call Show call\r\n call-home Show command for call home\r\n capability Capability Information\r\n cca CCA information\r\n cce Common Classification Engine (CCE)\r\n cdp CDP information\r\n cef CEF address family independent status\r\n class-map Show CPL Class Map\r\n clns CLNS network information\r\n clock Display the system clock\r\n cls DLC user information\r\n cns CNS agents\r\n compress Show compression statistics\r\n configuration Contents of Non-Volatile memory\r\n connection Show Connection\r\n controllers Interface controller status\r\n cops COPS information\r\n crypto Encryption module\r\n cts Cisco Trusted Security information\r\n dampening Display dampening information \r\n data-corruption Show data errors\r\n database Show Database\r\n dcm Data Collection Manager Core Details\r\n debugging State of each debugging option\r\n derived-config Derived operating configuration\r\n device-sensor Shows Device Sensor Information \r\n dhcp Dynamic Host Configuration Protocol status\r\n diag Show diagnostic and eeprom information\r\n diagnostic Show command for diagnostic\r\n dialer Dialer parameters and statistics\r\n dlsw Data Link Switching information\r\n dnsix Shows Dnsix/DMDP information\r\n drip DRiP DB\r\n dwnld_mgr Download Manager\r\n dxi atm-dxi information\r\n eap Shows EAP registration/session information\r\n eigrp EIGRP show commands\r\n entry Queued terminal entries\r\n eobc Cat 6000 out of band (EOBC) interface show commands\r\n etherchannel EtherChannel Parameters\r\n ethernet Ethernet parameters\r\n event Embedded event related commands\r\n event-manager Event manager information\r\n exception exception informations\r\n facility-alarm Show Facility Alarms\r\n fhrp FHRP information\r\n file Show filesystem information\r\n flash: display information about flash: file system\r\n flow Flow information\r\n format Show format information\r\n frame-relay Frame-Relay information\r\n fras FRAS Information\r\n fras-host FRAS Host Information\r\n glbp GLBP information\r\n history Display the session command history\r\n hosts IP domain-name, lookup style, nameservers, and host table\r\n html HTML helper commands\r\n hw-module Show hardware module commands\r\n hw-programmable Show hw-programmable information\r\n id-manager ID pool manager\r\n idb List of Interface Descriptor Blocks\r\n idmgr IDMGR interaction\r\n if-mgr if-mgr information\r\n ifnum IDB Interface Index (Number)\r\n interfaces Interface status and configuration\r\n inventory Show the physical inventory\r\n ip IP information\r\n ipam IP Addr Mgr (IPAM) information\r\n ipc Interprocess communications commands\r\n ipv6 IPv6 information\r\n isis IS-IS routing information\r\n kerberos Show Kerberos Values\r\n key Key information\r\n kron Kron Subsystem\r\n lacp Port channel information\r\n ldap Shows LDAP information\r\n license Show license information\r\n line TTY line information\r\n llc2 IBM LLC2 circuit information\r\n lldp LLDP information\r\n lnm IBM LAN manager\r\n local-ack Local Acknowledgement virtual circuits\r\n location Display the system location\r\n logging Show the contents of logging buffers\r\n login Display Secure Login Configurations and State\r\n macdb show MAC database\r\n management Display the management applications\r\n mdns MDNS feature\r\n memory Memory statistics\r\n mfib MFIB address family independent status\r\n modemcap Show Modem Capabilities database\r\n monitor Monitoring different system events\r\n mtm MTM\r\n nat64 NAT64 information\r\n ncia Native Client Interface Architecture\r\n netbios-cache NetBIOS name cache contents\r\n netconf Show NETCONF information\r\n nhrp Display NHRP related information\r\n nmsp nmsp show commands\r\n ntp Network time protocol\r\n object-group List object groups\r\n odm-format Show the schema used for ODM input file\r\n onep ONEP related commands\r\n ospfv3 OSPFv3 information\r\n parser Display parser information\r\n persistent Show persistent information\r\n platform Show platform information\r\n pnp Display PNP information\r\n policy-manager Policy Manager\r\n policy-map Show Policy Map\r\n ppp PPP parameters and statistics\r\n pppatm PPP over ATM\r\n pppoe PPPoE information\r\n privilege Show current privilege level\r\n processes Active process statistics\r\n protocols Active network routing protocols\r\n qbm QoS Bandwidth Manager information\r\n qllc Display qllc-llc2 and qllc-sdlc conversion information\r\n radius Shows radius information\r\n radius-proxy Shows radius-proxy client/session information\r\n rbscp RBSCP information\r\n redirect Show L4 redirect information\r\n redundancy Redundancy Facility (RF) information\r\n region Region Manager Status\r\n registry Function registry information\r\n reload Scheduled reload information\r\n resource Display Resource Usage/Relations and more details\r\n resource-group Resource group statistics\r\n rhosts Remote-host+user equivalences\r\n rib Routing Information Base\r\n rif RIF cache entries\r\n rmon rmon statistics\r\n rom-monitor Show ROMMON version information\r\n romvar All ROMMON environment variables\r\n route-map route-map information\r\n route-tag route-tag information\r\n running-config Current operating configuration\r\n sampler Sampler information\r\n sasl show SASL information\r\n sdllc Display sdlc - llc2 conversion information\r\n service-routing Service-Routing show commands\r\n sessions Information about Telnet connections\r\n smf Software MAC filter\r\n sna Display SNA host information\r\n snapshot Snapshot parameters and statistics\r\n snmp snmp statistics\r\n sntp Simple network time protocol\r\n sockets Socket Details\r\n software List software information\r\n source-bridge Source-bridge parameters and statistics\r\n spanning-tree Spanning tree topology\r\n ssh Status of SSH server connections\r\n ssm Segment Switching Manager Status\r\n stacks Process stack utilization\r\n standby Hot Standby Router Protocol (HSRP) information\r\n startup-config Contents of startup configuration\r\n stun STUN status and configuration\r\n subscriber Subscriber Service Switch Information\r\n subscriber-policy Subscriber policy\r\n subsys Show subsystem information\r\n tacacs Shows tacacs+ server statistics \r\n tcp Status of TCP connections\r\n tech-support Show system information for Tech-Support\r\n template Template information\r\n terminal Display terminal configuration parameters\r\n test_rib_access RIB_ACCESS TEST info\r\n time-range Time range\r\n topology Topology instance information\r\n track Tracking information\r\n transport-map Transport map information\r\n tunnel Show configured tunnels\r\n udp UDP Details\r\n upgrade Show upgrade information\r\n usb-devices System USB devices\r\n users Display information about terminal lines\r\n version System hardware and software status\r\n virtual-service Virtual service and infrastructure related commands\r\n vlan-range VLAN Range\r\n vlans Virtual LANs Information\r\n vnet Virtual NETwork instance information\r\n vpdn VPDN information\r\n vrf VPN Routing/Forwarding instance information\r\n vrrp VRRP information\r\n vrrs VRRS information\r\n vtemplate Virtual Template interface information\r\n wccp WCCP information\r\n wsma Show Web Services Management Agents information\r\n x25 X.25 information\r\n x29 X.29 information\r\n xdr Show details about XDR\r\n xos Cross-OS Library Information and Traces\r\n xsd-format Show the ODM XSD for the command\r\n\r\nIOS_03.10.02.S#show ", "result": true } ], "name": "Itential-Artifacts pre post execution" } }, "outgoing": { "value": null } }, "deprecated": false, "groups": [], "x": 0.4605614973262032, "y": 0.2812051649928264 }, "ec4c": { "name": "evaluation", "summary": "Check if in stub mode", "description": "Check if in stub mode", "location": "Application", "app": "WorkFlowEngine", "displayName": "WorkFlowEngine", "type": "operation", "variables": { "incoming": { "all_true_flag": false, "evaluation_groups": [ { "all_true_flag": false, "evaluations": [ { "query": "", "operand_1": { "variable": "STUB", "task": "job" }, "operator": "==", "operand_2": { "variable": false, "task": "static" } } ] } ] }, "outgoing": { "return_value": null } }, "deprecated": false, "groups": [], "x": 1.002650762094102, "y": 0.3993576017130621 }, "57c2": { "name": "newVariable", "summary": "Create a Job Variable", "description": "Create a new Job variable by Job ID and assign it a value.", "location": "Application", "app": "WorkFlowEngine", "displayName": "WorkFlowEngine", "type": "operation", "variables": { "incoming": { "name": "POST", "value": { "all_pass_flag": true, "result": true, "commands_results": [ { "raw": "show clock", "all_pass_flag": true, "evaluated": "show clock", "parameters": {}, "rules": [ { "rule": "", "eval": "contains", "severity": "error", "raw": "", "result": true } ], "device": "csr100v-03.10.02S", "response": "\n> show clock\r\n21:38:55.896 UTC Mon Mar 11 2019\r\nIOS_03.10.02.S#", "result": true }, { "raw": "show running", "all_pass_flag": true, "evaluated": "show running", "parameters": {}, "rules": [ { "rule": "", "eval": "contains", "severity": "error", "raw": "", "result": true } ], "device": "csr100v-03.10.02S", "response": "\n> show running\r\nBuilding configuration...\r\n\r\nCurrent configuration : 1661 bytes\r\n!\r\n! Last configuration change at 20:27:38 UTC Wed Feb 27 2019 by admin\r\n!\r\nversion 15.3\r\nservice timestamps debug datetime msec\r\nservice timestamps log datetime msec\r\nno platform punt-keepalive disable-kernel-core\r\nplatform console virtual\r\n!\r\nhostname IOS_03.10.02.S\r\n!\r\nboot-start-marker\r\nboot system bootflash:csr1000v-universalk9.03.10.02.S.153-3.S2-ext.SPA.bin\r\nboot-end-marker\r\n!\r\n!\r\nvrf definition Mgmt-intf\r\n !\r\n address-family ipv4\r\n exit-address-family\r\n !\r\n address-family ipv6\r\n exit-address-family\r\n!\r\nenable secret 5 $1$BN.t$iovYmaRNXlBHmCgTebZoV/\r\n!\r\naaa new-model\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\naaa session-id common\r\nclock calendar-valid\r\n!\r\n!\r\n!\r\n!\r\n!\r\n\r\n\r\nip domain name itential.com\r\nip name-server 8.8.8.8\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\nmultilink bundle-name authenticated\r\n!\r\n!\r\n!\r\nusername admin password 0 admin\r\n!\r\nredundancy\r\n mode none\r\n!\r\n!\r\n!\r\nip tftp source-interface GigabitEthernet0\r\nip ssh authentication-retries 2\r\n!\r\n!\r\n!\r\n!\r\ninterface GigabitEthernet1\r\n ip address 192.168.3.208 255.255.252.0\r\n negotiation auto\r\n!\r\ninterface GigabitEthernet2\r\n no ip address\r\n shutdown\r\n negotiation auto\r\n!\r\ninterface GigabitEthernet0\r\n vrf forwarding Mgmt-intf\r\n no ip address\r\n shutdown\r\n negotiation auto\r\n!\r\n!\r\nvirtual-service csr_mgmt\r\n activate\r\n!\r\nip forward-protocol nd\r\n!\r\nno ip http server\r\nno ip http secure-server\r\nip route 0.0.0.0 0.0.0.0 192.168.0.1\r\nip route 8.8.8.8 255.255.255.255 192.168.0.1\r\nip route 45.33.48.4 255.255.255.255 GigabitEthernet1\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\ncontrol-plane\r\n!\r\n!\r\nline con 0\r\n stopbits 1\r\nline aux 0\r\n stopbits 1\r\nline vty 0\r\n transport input telnet\r\nline vty 1\r\n length 0\r\n transport input telnet\r\nline vty 2 4\r\n transport input telnet\r\nline vty 5 9\r\nline vty 10 20\r\n transport input ssh\r\n!\r\nntp server 172.20.100.10\r\nonep\r\n!\r\nend\r\n\r\nIOS_03.10.02.S#", "result": true }, { "raw": "show version", "all_pass_flag": true, "evaluated": "show version", "parameters": {}, "rules": [ { "rule": "configuration register is 0x2102", "eval": "contains", "severity": "error", "flags": { "case": true }, "raw": "configuration register is 0x2102", "result": true }, { "rule": "cisco ios", "eval": "contains", "severity": "warning", "flags": { "case": true }, "raw": "cisco ios", "result": true } ], "device": "csr100v-03.10.02S", "response": "\n> show version\r\nCisco IOS XE Software, Version 03.10.02.S - Extended Support Release\r\nCisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.3(3)S2, RELEASE SOFTWARE (fc3)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\r\nCompiled Fri 31-Jan-14 20:10 by mcpre\r\n\r\n\r\nCisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc.\r\nAll rights reserved. Certain components of Cisco IOS-XE software are\r\nlicensed under the GNU General Public License (\"GPL\") Version 2.0. The\r\nsoftware code licensed under GPL Version 2.0 is free software that comes\r\nwith ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such\r\nGPL code under the terms of GPL Version 2.0. For more details, see the\r\ndocumentation or \"License Notice\" file accompanying the IOS-XE software,\r\nor the applicable URL provided on the flyer accompanying the IOS-XE\r\nsoftware.\r\n\r\n\r\nROM: IOS-XE ROMMON\r\n\r\nIOS_03.10.02.S uptime is 1 week, 5 days, 2 hours, 13 minutes\r\nUptime for this control processor is 1 week, 5 days, 2 hours, 18 minutes\r\nSystem returned to ROM by reload at 19:12:27 UTC Wed Feb 27 2019\r\nSystem restarted at 19:25:16 UTC Wed Feb 27 2019\r\nSystem image file is \"bootflash:csr1000v-universalk9.03.10.02.S.153-3.S2-ext.SPA.bin\"\r\nLast reload reason: Reload Command\r\n\r\n\r\n\r\nThis product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and\r\nuse. Delivery of Cisco cryptographic products does not imply\r\nthird-party authority to import, export, distribute or use encryption.\r\nImporters, exporters, distributors and users are responsible for\r\ncompliance with U.S. and local country laws. By using this product you\r\nagree to comply with applicable laws and regulations. If you are unable\r\nto comply with U.S. and local laws, return this product immediately.\r\n\r\nA summary of U.S. laws governing Cisco cryptographic products may be found at:\r\nhttp://www.cisco.com/wwl/export/crypto/tool/stqrg.html\r\n\r\nIf you require further assistance please contact us by sending email to\r\nexport@cisco.com.\r\n\r\nLicense Level: limited\r\nLicense Type: Default. No valid license found.\r\nNext reload license Level: limited\r\n\r\ncisco CSR1000V (VXE) processor with 821388K/6147K bytes of memory.\r\nProcessor board ID 9LW57Q25AIB\r\n2 Gigabit Ethernet interfaces\r\n32768K bytes of non-volatile configuration memory.\r\n3145728K bytes of physical memory.\r\n7774207K bytes of virtual hard disk at bootflash:.\r\n\r\nConfiguration register is 0x2102\r\n\r\nIOS_03.10.02.S#", "result": true }, { "raw": "show <!VARIABLE!>", "all_pass_flag": true, "evaluated": "show log", "command": "show log", "parameters": { "VARIABLE": "log" }, "rules": [ { "rule": "", "eval": "contains", "severity": "error", "raw": "", "result": true } ], "device": "csr100v-03.10.02S", "response": "\n> show log\r\nSyslog logging: enabled (0 messages dropped, 1 messages rate-limited, 0 flushes, 0 overruns, xml disabled, filtering disabled)\r\n\r\nNo Active Message Discriminator.\r\n\r\n\r\n\r\nNo Inactive Message Discriminator.\r\n\r\n\r\n Console logging: level debugging, 39 messages logged, xml disabled,\r\n filtering disabled\r\n Monitor logging: level debugging, 0 messages logged, xml disabled,\r\n filtering disabled\r\n Buffer logging: level debugging, 39 messages logged, xml disabled,\r\n filtering disabled\r\n Exception Logging: size (4096 bytes)\r\n Count and timestamp logging messages: disabled\r\n Persistent logging: disabled\r\n\r\nNo active filter modules.\r\n\r\n Trap logging: level informational, 42 message lines logged\r\n Logging Source-Interface: VRF Name:\r\n\r\nLog Buffer (4096 bytes):\r\n\r\n*Feb 27 19:18:49.234: %VUDI-6-EVENT: [serial number: 9LW57Q25AIB], [vUDI: ], vUDI is successfully retrieved from license file\r\n*Feb 27 19:18:49.937: %IOS_LICENSE_IMAGE_APPLICATION-6-LICENSE_LEVEL: Module name = csr1000v Next reboot level = limited and License = No valid license found\r\n*Feb 27 19:18:54.809: %VXE_THROUGHPUT-6-LEVEL: Throughput level has been set to 2500 kbps\r\n*Feb 27 19:18:57.758: %LINK-3-UPDOWN: Interface Lsmpi0, changed state to up\r\n*Feb 27 19:18:57.907: %LINK-3-UPDOWN: Interface EOBC0, changed state to up\r\n*Feb 27 19:18:58.759: %LINEPROTO-5-UPDOWN: Line protocol on Interface Lsmpi0, changed state to up\r\n*Feb 27 19:18:58.908: %LINEPROTO-5-UPDOWN: Line protocol on Interface EOBC0, changed state to up\r\n*Feb 27 19:18:59.034: dev_pluggable_optics_selftest attribute table internally inconsistent @ 0x121\r\n\r\n*Feb 27 19:18:59.063: %VUDI-6-EVENT: [serial number: 9LW57Q25AIB], [vUDI: CSR1000V:9LW57Q25AIB], vUDI initialization is now complete\r\n*Feb 27 19:19:04.615: %LINK-3-UPDOWN: Interface GigabitEthernet0, changed state to down\r\n*Feb 27 19:19:04.642: %LINK-3-UPDOWN: Interface LIIN0, changed state to up\r\n*Feb 27 19:19:04.648: %LINK-3-UPDOWN: Interface GigabitEthernet1, changed state to down\r\n*Feb 27 19:19:04.649: %LINK-3-UPDOWN: Interface GigabitEthernet2, changed state to down\r\n*Feb 27 19:19:05.424: %IOSXE_MGMTVRF-6-CREATE_SUCCESS_INFO: Management vrf Mgmt-intf created with ID 1, ipv4 table-id 0x1, ipv6 table-id 0x1E000001\r\n*Feb 27 19:19:05.639: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0, changed state to down\r\n*Feb 27 19:19:05.647: %LINEPROTO-5-UPDOWN: Line protocol on Interface LIIN0, changed state to up\r\n*Feb 27 19:19:05.648: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1, changed state to down\r\n*Feb 27 19:19:05.680: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet2, changed state to down\r\n*Feb 27 19:19:06.070: %SYS-5-CONFIG_I: Configured from memory by console\r\n*Feb 27 19:19:06.114: %IOSXE_OIR-6-INSCARD: Card (rp) inserted in slot R1\r\n*Feb 27 19:19:06.117: %IOSXE_OIR-6-INSCARD: Card (fp) inserted in slot F0\r\n*Feb 27 19:19:06.117: %IOSXE_OIR-6-ONLINECARD: Card (fp) online in slot F0\r\n*Feb 27 19:19:06.481: %SYS-5-RESTART: System restarted --\r\nCisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.3(3)S2, RELEASE SOFTWARE (fc3)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2014 by Cisco Systems, Inc.\r\nCompiled Fri 31-Jan-14 20:10 by mcpre\r\n*Feb 27 19:19:06.583: %SSH-5-ENABLED: SSH 1.99 has been enabled\r\n*Feb 27 19:19:07.396: %LINK-5-CHANGED: Interface GigabitEthernet0, changed state to administratively down\r\n*Feb 27 19:19:07.921: %LINK-5-CHANGED: Interface GigabitEthernet2, changed state to administratively down\r\n*Feb 27 19:19:09.973: %SYS-6-BOOTTIME: Time taken to reboot after reload = 402 seconds\r\n*Feb 27 19:19:11.266: %LINK-3-UPDOWN: Interface GigabitEthernet1, changed state to up\r\n*Feb 27 19:19:12.290: %VIRT_SERVICE-5-INSTALL_STATE: Successfully installed virtual service csr_mgmt\r\n*Feb 27 19:19:12.337: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1, changed state to up\r\n*Feb 27 19:19:17.514: %VIRT_SERVICE-5-ACTIVATION_STATE: Successfully activated virtual service csr_mgmt\r\n*Feb 27 19:19:17.494: %VMAN-5-VIRT_INST: F0: vman: LOG FROM VIRTUAL SERVICE csr_mgmt: \r\n*Feb 27 19:50:22.610: %SYS-5-CONFIG_I: Configured from console by admin on vty5 (192.168.1.212)\r\n*Feb 27 20:01:42.870: %SYS-5-CONFIG_I: Configured from console by admin on vty5 (192.168.1.212)\r\nFeb 27 20:03:31.534: %SYS-5-CONFIG_I: Configured from console by admin on vty5 (192.168.1.212)\r\nFeb 27 20:18:34.656: %SYS-5-CONFIG_I: Configured from console by admin on vty5 (192.168.1.212)\r\nFeb 27 20:20:07.110: %SYS-5-CONFIG_I: Configured from console by admin on vty5 (192.168.1.212)\r\nFeb 27 20:27:38.163: %SYS-5-CONFIG_I: Configured from console by admin on vty5 (192.168.1.212)\r\nFeb 27 20:58:50.092: %IOSXE-4-PLATFORM: R0/0: kernel: hrtimer: interrupt took 3319655 ns\r\nIOS_03.10.02.S#", "result": true } ], "name": "Itential-Artifacts pre post execution" } }, "outgoing": { "value": null } }, "deprecated": false, "groups": [], "x": 1.074884029158383, "y": 0.20235546038543897 }, "8ac7": { "name": "ViewData", "summary": "Device is unreachable", "description": "Displays a message and runtime data to an operator. This can be used to request a decision, or used for acknowledgement only.", "location": "Application", "app": "WorkFlowEngine", "displayName": "Tools", "type": "manual", "variables": { "incoming": { "header": "Device is unreachable", "message": "", "body": "The selected device failed the ping test, please verify connectivity to the device then press either <b>Try Again</b> to perform connectivity test to the same device, or <b>Back</b> to return to the mode selection task.", "variables": {}, "btn_success": "Try Again", "btn_failure": "Back" }, "outgoing": {}, "error": "" }, "view": "/workflow_engine/task/ViewData", "deprecated": false, "groups": [], "x": 0.0902455209024552, "y": 0.942782834850455, "scheduled": false, "canvasName": "View Data" }, "18d6": { "name": "isAlive", "summary": "Ping Device", "description": "Get connection status of device", "location": "Application", "locationType": null, "app": "ConfigurationManager", "displayName": "ConfigurationManager", "type": "automatic", "variables": { "incoming": { "name": "$var.b3de.return_data" }, "outgoing": { "status": null }, "error": "" }, "deprecated": false, "groups": [], "actor": "Pronghorn", "x": 0.07184628237259816, "y": 0.6393210749646393,