10-21-2016 12:03 PM - edited 10-21-2016 12:12 PM
I try to extract from "show ver" output path to image file and image name. I prepared trigger variables and template but it doesn't work. I'm using tool (https://NetMRI/netmri/ccs/tx/regex_test/index.tdf) for validation but I receive strange results (sreenshot attached). Below are data put into validation tool.
Trigger-Variables: $currentbootimage /[\w\.\-]+\.bin/ $path /flash:(\/\w+\/?)*/ Trigger-Template: [[$path]][[$currentbootimage]]\S Device Output: Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE10, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Wed 11-Feb-15 11:46 by prod_rel_team Image text-base: 0x00003000, data-base: 0x01900000 ROM: Bootstrap program is C2960 boot loader BOOTLDR: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(53r)SEY3, RELEASE SOFTWARE (fc1) SWITCH uptime is 1 day, 5 hours, 13 minutes System returned to ROM by power-on System restarted at 07:45:41 CEST Sun Oct 2 2016 System image file is "flash:/waw/qwer/c2960-lanbasek9-mz.122-55.SE10.bin"
Why variable $currentbootimage shows part of the path instead image name? When I put :
Trigger works, but I need information about path.
Solved! Go to Solution.
10-25-2016 09:40 AM
|1.1. Trigger: 'Regular Expression Test Trigger'||Output: 'Regular Expression Test Action'|
Let me know if this works for you