Skip to content

Commit

Permalink
Fixes #924 (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
itdependsnetworks authored Aug 4, 2021
1 parent e9bec07 commit 772089c
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 0 deletions.
1 change: 1 addition & 0 deletions ntc_templates/templates/cisco_ios_show_version.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Start
^System\s+restarted\s+at\s+${RESTARTED}$$
^Switch\s+Port -> Stack
# Capture time-stamp if vty line has command time-stamping turned on
^Switch\s\d+ -> Stack
^Load\s+for\s+
^Time\s+source\s+is

Expand Down
90 changes: 90 additions & 0 deletions tests/cisco_ios/show_version/cisco_ios_show_version5.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
Cisco IOS XE Software, Version 16.12.04
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.12.4, RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Thu 09-Jul-20 21:49 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2020 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 17.1.1[FC2], RELEASE SOFTWARE (P)

Switch-Hostname uptime is 7 weeks, 17 hours, 14 minutes
Uptime for this control processor is 7 weeks, 17 hours, 17 minutes
System returned to ROM by Reload Command at 20:51:53 EET Mon Mar 8 2021
System restarted at 20:57:50 EET Mon Mar 8 2021
System image file is "flash:packages.conf"
Last reload reason: Reload Command



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
[email protected].


Technology Package License Information:

------------------------------------------------------------------------------
Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------------
network-advantage Smart License network-advantage
dna-advantage Subscription Smart License dna-advantage
AIR License Level: AIR DNA Advantage
Next reload AIR license Level: AIR DNA Advantage


Smart Licensing Status: UNREGISTERED/EVAL EXPIRED

cisco C9500-48Y4C (X86) processor with 1867864K/6147K bytes of memory.
Processor board ID CAT23XXXXXX
16 Virtual Ethernet interfaces
96 TwentyFive Gigabit Ethernet interfaces
8 Hundred Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
16010152K bytes of physical memory.
11161600K bytes of Bootflash at bootflash:.
11161600K bytes of Bootflash at bootflash-2:.
1638400K bytes of Crash Files at crashinfo:.
1638400K bytes of Crash Files at crashinfo-2:.
0K bytes of WebUI ODM Files at webui:.

Base Ethernet MAC Address : a0:b4:39:00:00:e0
Motherboard Assembly Number : 48XX
Motherboard Serial Number : CAT23XXXXXX
Model Revision Number : V02
Motherboard Revision Number : 4
Model Number : C9500-48Y4C
System Serial Number : CAT23XXXXXX

Switch 02
---------
Base Ethernet MAC Address : a0:b4:39:00:00:00
Motherboard Assembly Number : 48XX
Motherboard Serial Number : CAT23XXXXXX
Model Revision Number : V02
Motherboard Revision Number : 4
Model Number : C9500-48Y4C
System Serial Number : CAT23XXXXXX
24 changes: 24 additions & 0 deletions tests/cisco_ios/show_version/cisco_ios_show_version5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
parsed_sample:
- version: "16.12.4"
rommon: "IOS-XE"
hostname: "Switch-Hostname"
uptime: "7 weeks, 17 hours, 14 minutes"
uptime_years: ""
uptime_weeks: "7"
uptime_days: ""
uptime_hours: "17"
uptime_minutes: "14"
reload_reason: "Reload Command"
running_image: "packages.conf"
hardware:
- "C9500-48Y4C"
- "C9500-48Y4C"
serial:
- "CAT23XXXXXX"
- "CAT23XXXXXX"
config_register: ""
mac:
- "a0:b4:39:00:00:e0"
- "a0:b4:39:00:00:00"
restarted: "20:57:50 EET Mon Mar 8 2021"

0 comments on commit 772089c

Please sign in to comment.