UNPKG

@itentialopensource/cisco-ios-upgrade

Version:

[Deprecated] Itential automation Artifact for cisco ios device upgrade

77 lines (76 loc) 11.5 kB
{ "tags": [ { "_id": "5d70d07301fe6a14dd2efb70", "name": "artifacts", "description": "Itential artifacts are containerized use cases that are packaged together. They can be anything like workflows, MOP templates, forms, golden config trees, and more" }, { "_id": "5daa19ab9f40323ae6aaaa30", "name": "cisco ios upgrade", "description": "A tag to be used with the cisco ios upgrade artifact" } ], "name": "Cisco IOS Upgrade", "passRule": true, "prepostCommands": [ { "preRawCommand": "show running", "postRawCommand": "show running", "passRule": true, "rules": [ { "type": "matches", "preRegex": "", "postRegex": "", "evaluator": "=", "severity": "error", "preRegexNumberOfLinesMatched": 1661, "preRegexFirstMatchGroups": [ "" ], "postRegexNumberOfLinesMatched": 1661, "postRegexFirstMatchGroups": [ "" ], "flags": { "case": true, "multiline": true, "global": true }, "ignorePattern": "Last configuration change.+|boot system bootflash.+" } ], "preCommandResHTML": "\r\nBuilding configuration...\r\n\r\nCurrent configuration : 1684 bytes\r\n!\r\n! Last configuration change at 09:45:34 UTC Wed Sep 11 2019 by admin\r\n! NVRAM config last updated at 09:05:57 UTC Wed Sep 11 2019 by admin\r\n!\r\nversion 15.3\r\nservice config\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.03.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$khb4$C2lm7hXdqtcY5ESd2sszh1\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\n!\r\n!\r\n!\r\n!\r\n!\r\n\r\n\r\nip domain name itential.com\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 5\r\n!\r\n!\r\n!\r\n!\r\ninterface GigabitEthernet1\r\n ip address 192.168.3.209 255.255.252.0\r\n negotiation auto\r\n!\r\ninterface GigabitEthernet1.100\r\n description description made by Zack\r\n encapsulation dot1Q 100 second-dot1q 10,20\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 172.20.100.0 255.255.252.0 192.168.0.1\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 4\r\n transport input telnet\r\nline vty 5 9\r\n transport input telnet\r\nline vty 10 19\r\n transport input ssh\r\n!\r\nntp server 172.20.100.10 minpoll 10\r\nonep\r\n!\r\nend\r\n\r\nIOS_03.10.03.S#", "postCommandResHTML": "\r\nBuilding configuration...\r\n\r\nCurrent configuration : 1684 bytes\r\n!\r\n! Last configuration change at 09:45:34 UTC Wed Sep 11 2019 by admin\r\n! NVRAM config last updated at 09:05:57 UTC Wed Sep 11 2019 by admin\r\n!\r\nversion 15.3\r\nservice config\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.03.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$khb4$C2lm7hXdqtcY5ESd2sszh1\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\n!\r\n!\r\n!\r\n!\r\n!\r\n\r\n\r\nip domain name itential.com\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 5\r\n!\r\n!\r\n!\r\n!\r\ninterface GigabitEthernet1\r\n ip address 192.168.3.209 255.255.252.0\r\n negotiation auto\r\n!\r\ninterface GigabitEthernet1.100\r\n description description made by Zack\r\n encapsulation dot1Q 100 second-dot1q 10,20\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 172.20.100.0 255.255.252.0 192.168.0.1\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 4\r\n transport input telnet\r\nline vty 5 9\r\n transport input telnet\r\nline vty 10 19\r\n transport input ssh\r\n!\r\nntp server 172.20.100.10 minpoll 10\r\nonep\r\n!\r\nend\r\n\r\nIOS_03.10.03.S#", "preCommandValue": "show running", "postCommandValue": "show running", "preCommandRes": "\r\nBuilding configuration...\r\n\r\nCurrent configuration : 1684 bytes\r\n!\r\n! Last configuration change at 09:45:34 UTC Wed Sep 11 2019 by admin\r\n! NVRAM config last updated at 09:05:57 UTC Wed Sep 11 2019 by admin\r\n!\r\nversion 15.3\r\nservice config\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.03.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$khb4$C2lm7hXdqtcY5ESd2sszh1\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\n!\r\n!\r\n!\r\n!\r\n!\r\n\r\n\r\nip domain name itential.com\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 5\r\n!\r\n!\r\n!\r\n!\r\ninterface GigabitEthernet1\r\n ip address 192.168.3.209 255.255.252.0\r\n negotiation auto\r\n!\r\ninterface GigabitEthernet1.100\r\n description description made by Zack\r\n encapsulation dot1Q 100 second-dot1q 10,20\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 172.20.100.0 255.255.252.0 192.168.0.1\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 4\r\n transport input telnet\r\nline vty 5 9\r\n transport input telnet\r\nline vty 10 19\r\n transport input ssh\r\n!\r\nntp server 172.20.100.10 minpoll 10\r\nonep\r\n!\r\nend\r\n\r\nIOS_03.10.03.S#", "postCommandRes": "\r\nBuilding configuration...\r\n\r\nCurrent configuration : 1684 bytes\r\n!\r\n! Last configuration change at 09:45:34 UTC Wed Sep 11 2019 by admin\r\n! NVRAM config last updated at 09:05:57 UTC Wed Sep 11 2019 by admin\r\n!\r\nversion 15.3\r\nservice config\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.03.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$khb4$C2lm7hXdqtcY5ESd2sszh1\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\n!\r\n!\r\n!\r\n!\r\n!\r\n\r\n\r\nip domain name itential.com\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 5\r\n!\r\n!\r\n!\r\n!\r\ninterface GigabitEthernet1\r\n ip address 192.168.3.209 255.255.252.0\r\n negotiation auto\r\n!\r\ninterface GigabitEthernet1.100\r\n description description made by Zack\r\n encapsulation dot1Q 100 second-dot1q 10,20\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 172.20.100.0 255.255.252.0 192.168.0.1\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 4\r\n transport input telnet\r\nline vty 5 9\r\n transport input telnet\r\nline vty 10 19\r\n transport input ssh\r\n!\r\nntp server 172.20.100.10 minpoll 10\r\nonep\r\n!\r\nend\r\n\r\nIOS_03.10.03.S#" }, { "preRawCommand": "show ip int br", "postRawCommand": "show ip int br", "passRule": true, "rules": [ { "type": "matches", "preRegex": "", "postRegex": "", "evaluator": "=", "severity": "error" } ], "preCommandResHTML": "Test a command or the template to get results here", "postCommandResHTML": "Test a command or the template to get results here", "preCommandValue": "show ip int br", "postCommandValue": "show ip int br", "preCommandRes": "Interface IP-Address OK? Method Status Protocol\nGigabitEthernet1 192.168.3.208 YES NVRAM up up \nGigabitEthernet2 unassigned YES NVRAM administratively down down \nGigabitEthernet0 unassigned YES NVRAM administratively down down", "postCommandRes": "Interface IP-Address OK? Method Status Protocol\nGigabitEthernet1 192.168.3.208 YES NVRAM up up \nGigabitEthernet2 unassigned YES NVRAM administratively down down \nGigabitEthernet0 unassigned YES NVRAM administratively down down" } ], "created": 1551278932051, "createdBy": "Itential Artifacts", "lastUpdated": 1581310641927, "lastUpdatedBy": "Itential Artifacts" }