Skip to content

Add basic support for Stratix switches #2243

@Christophoclese

Description

@Christophoclese

Environment

  • ntc-templates version: 8.1.0

Proposed Functionality

Expand existing Cisco IOS regexes to include patterns for Allen-Bradley.

Use Case

Allen-Bradley manufactures switch devices under the Stratix product line. These devices run Cisco IOS & Cisco IOS XE Software. show version for IOS currently fails to parse the value for HARDWARE due to the line beginning with Allen-Bradley and not Cisco.

I was able to work around this by modifying Line 35 of ./ntc_templates/templates/cisco_ios_show_version.textfsm to ^([Cc]isco|Allen-Bradley)\s+${HARDWARE}\s+\(.+\).+

Example logs from Nautobot Device Discovery:

Result of 'show version' command:

('Cisco IOS XE Software, Version 17.12.04\n'
'Cisco IOS Software [Dublin], S5200 Switch Software (S5200-UNIVERSALK9-M), '
'Version 17.12.4, RELEASE SOFTWARE (fc3)\n'
'Technical Support: http://www.cisco.com/techsupport\n'
'Copyright (c) 1986-2024 by Cisco Systems, Inc.\n'
'Compiled Tue 23-Jul-24 10:25 by mcpre\n'
'\n'
'\n'
'Cisco IOS-XE software, Copyright (c) 2005-2024 by cisco Systems, Inc.\n'
'All rights reserved. Certain components of Cisco IOS-XE software are\n'
'licensed under the GNU General Public License ("GPL") Version 2.0. The\n'
'software code licensed under GPL Version 2.0 is free software that comes\n'
'with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such\n'
'GPL code under the terms of GPL Version 2.0. For more details, see the\n'
'documentation or "License Notice" file accompanying the IOS-XE software,\n'
'or the applicable URL provided on the flyer accompanying the IOS-XE\n'
'software.\n'
'\n'
'\n'
'ROM: IOS-XE ROMMON\n'
'BOOTLDR: Version 0.2.5 [RELEASE SOFTWARE] crashkernel=64M\n'
'switch-name uptime is 4 weeks, 4 days, 5 hours, 14 '
'minutes\n'
'Uptime for this control processor is 4 weeks, 4 days, 5 hours, 16 minutes\n'
'System returned to ROM by power-on\n'
'System restarted at 05:52:28 mdt Fri Oct 24 2025\n'
'System image file is "flash:packages.conf"\n'
'Last reload reason: power-on\n'
'\n'
'\n'
'\n'
'This product contains cryptographic features and is subject to United\n'
'States and local country laws governing import, export, transfer and\n'
'use. Delivery of Cisco cryptographic products does not imply\n'
'third-party authority to import, export, distribute or use encryption.\n'
'Importers, exporters, distributors and users are responsible for\n'
'compliance with U.S. and local country laws. By using this product you\n'
'agree to comply with applicable laws and regulations. If you are unable\n'
'to comply with U.S. and local laws, return this product immediately.\n'
'\n'
'A summary of U.S. laws governing Cisco cryptographic products may be found '
'at:\n'
'http://www.cisco.com/wwl/export/crypto/tool/stqrg.html\n'
'\n'
'If you require further assistance please contact us by sending email to\n'
(redacted)@cisco.com.\n'
'\n'
'\n'
'Technology Package License Information: \n'
'\n'
'------------------------------------------------------------------------------\n'
'Technology-package Technology-package\n'
'Current Type Next reboot \n'
'------------------------------------------------------------------------------\n'
'network-essentials \tSmart License \t None \n'
'None \tSubscription Smart License \t '
'None \n'
'\n'
'\n'
'Smart Licensing Status: Smart Licensing Using Policy\n'
'\n'
'Allen-Bradley 1783-CMS20DP (ARM) processor (revision V02) with 638793K/6147K '
'bytes of memory.\n'
'Processor board ID ABC123\n'
'2 Virtual Ethernet interfaces\n'
'20 Gigabit Ethernet interfaces\n'
'4096K bytes of non-volatile configuration memory.\n'
'3491708K bytes of physical memory.\n'
'524288K bytes of crashinfo at crashinfo:.\n'
'1945600K bytes of Flash at flash:.\n'
'\n'
'Base Ethernet MAC Address : 68:c8:eb:1a:c2:41\n'
'Motherboard Assembly Number : 73-105757-05\n'
'Motherboard Serial Number : ABC123\n'
'Model Revision Number : V02\n'
'Motherboard Revision Number : 5\n'
'Model Number : 1783-CMS20DP\n'
'System Serial Number : ABC123\n'
'Top Assembly Part Number : 68-103772-04\n'
'Top Assembly Revision Number : B0\n'
'System FPGA version : 0.2.22\n'
'CIP Serial Number : 0x7028D8E4\n'
'SKU Brand Name : Rockwell\n'
'\n'
'\n'
'Configuration register is 0x102\n')

Successful parsing from Nautobot Device Discovery:

Parsed output of 'show version' command:

[{'config_register': '0x102',
'hardware': ['1783-CMS20DP'],
'hostname': 'switch-name',
'mac_address': ['68:c8:eb:1a:c2:41'],
'release': 'fc3',
'reload_reason': 'power-on',
'restarted': '05:52:28 mdt Fri Oct 24 2025',
'rommon': 'IOS-XE',
'running_image': 'packages.conf',
'serial': ['ABC123'],
'software_image': 'S5200-UNIVERSALK9-M',
'uptime': '4 weeks, 4 days, 5 hours, 14 minutes',
'uptime_days': '4',
'uptime_hours': '5',
'uptime_minutes': '14',
'uptime_weeks': '4',
'uptime_years': '',
'version': '17.12.4'}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions