diff --git a/templates/cisco_asa_show_version.template b/templates/cisco_asa_show_version.template index ebd60ec0d4..d574c43b8d 100644 --- a/templates/cisco_asa_show_version.template +++ b/templates/cisco_asa_show_version.template @@ -1,5 +1,6 @@ Value VERSION (\S+) Value DEVICE_MGR_VERSION (\S+) +Value COMPILE_DATE (\d+-\w+-\d+) Value IMAGE (\S+) Value HOSTNAME (\S+) Value UPTIME (.+) @@ -19,9 +20,10 @@ Value LAST_MOD (.+) Start ^.*Software\sVersion\s${VERSION} ^Device.+\s${DEVICE_MGR_VERSION} + ^Compiled on \w+\s+${COMPILE_DATE}.* ^System image file.+"${IMAGE}" ^${HOSTNAME} up ${UPTIME} - ^Hardware:\s+${HARDWARE}, + ^Hardware:\s+${HARDWARE} ^Model Id:\s+${MODEL} ^Internal.+Flash,\s${FLASH} ^ \d+:.\S+\s${INTERFACES}.* @@ -33,4 +35,3 @@ Start ^Cluster\s+:\s${CLUSTER} ^Serial Number:\s${SERIAL} ^.+last modified by\s${LAST_MOD} - diff --git a/tests/cisco_asa/show_version/cisco_asa_show_version.parsed b/tests/cisco_asa/show_version/cisco_asa_show_version1.parsed similarity index 88% rename from tests/cisco_asa/show_version/cisco_asa_show_version.parsed rename to tests/cisco_asa/show_version/cisco_asa_show_version1.parsed index e72b18dcc2..caf82c416e 100644 --- a/tests/cisco_asa/show_version/cisco_asa_show_version.parsed +++ b/tests/cisco_asa/show_version/cisco_asa_show_version1.parsed @@ -3,10 +3,11 @@ parsed_sample: - version: '9.5(2)204' device_mgr_version: '7.5(2)' + compile_date: '15-Feb-16' image: 'boot:/asa952-204-smp-k8.bin' hostname: 'asa1' uptime: '41 days 19 hours' - hardware: 'ASAv, 2048 MB RAM, CPU Pentium II 1800 MHz' + hardware: 'ASAv, 2048 MB RAM, CPU Pentium II 1800 MHz,' model: 'ASAv10' flash: '8192MB' interfaces: diff --git a/tests/cisco_asa/show_version/cisco_asa_show_version.raw b/tests/cisco_asa/show_version/cisco_asa_show_version1.raw similarity index 100% rename from tests/cisco_asa/show_version/cisco_asa_show_version.raw rename to tests/cisco_asa/show_version/cisco_asa_show_version1.raw diff --git a/tests/cisco_asa/show_version/cisco_asa_show_version2.parsed b/tests/cisco_asa/show_version/cisco_asa_show_version2.parsed new file mode 100644 index 0000000000..1fc3264366 --- /dev/null +++ b/tests/cisco_asa/show_version/cisco_asa_show_version2.parsed @@ -0,0 +1,21 @@ +--- +parsed_sample: + +- version: '9.8(3)21' + device_mgr_version: '7.8(2)' + compile_date: '07-Aug-18' + image: '' + hostname: 'fw002' + uptime: '114 days 18 hours' + hardware: 'FPR4K-SM-12' + model: '' + flash: '' + interfaces: [] + license_mode: 'Smart Licensing' + license_state: '' + max_intf: '' + max_vlans: '' + failover: 'Active/Active' + cluster: 'Enabled' + serial: '' + last_mod: 'thatperson at 09:15:45.959 EST Mon Dec 12 2018' diff --git a/tests/cisco_asa/show_version/cisco_asa_show_version2.raw b/tests/cisco_asa/show_version/cisco_asa_show_version2.raw new file mode 100644 index 0000000000..3d545b17f2 --- /dev/null +++ b/tests/cisco_asa/show_version/cisco_asa_show_version2.raw @@ -0,0 +1,40 @@ + +Cisco Adaptive Security Appliance Software Version 9.8(3)21 +Firepower Extensible Operating System Version 2.4(1.103) +Device Manager Version 7.8(2) + +Compiled on Tue 07-Aug-18 23:18 PDT by builders + +fw002 up 114 days 18 hours +failover cluster up 700 days 16 hours + +Hardware: FPR4K-SM-12 + +License mode: Smart Licensing + +Licensed features for this user context: +Failover : Active/Active +Encryption-DES : Enabled +Encryption-3DES-AES : Enabled +Carrier : Disabled +AnyConnect Premium Peers : 0 +Other VPN Peers : 500 +AnyConnect for Mobile : Enabled +AnyConnect for Cisco VPN Phone : Enabled +Advanced Endpoint Assessment : Enabled +Cluster : Enabled + + +Failover cluster licensed features for this user context: +Failover : Active/Active +Encryption-DES : Enabled +Encryption-3DES-AES : Enabled +Carrier : Disabled +AnyConnect Premium Peers : 0 +Other VPN Peers : 500 +AnyConnect for Mobile : Enabled +AnyConnect for Cisco VPN Phone : Enabled +Advanced Endpoint Assessment : Enabled +Cluster : Enabled + +Configuration last modified by thatperson at 09:15:45.959 EST Mon Dec 12 2018 \ No newline at end of file