FYI, this script calls a TCL proc called "get_ints" with a single argument. The argument specifies the interface pattern you wish to match ("Dialer" in this case). The get_ints proc executes a "show interfaces" command, and goes through the output searching for lines that begin with the desired match pattern followed by one or more digit, period, forward slash, or colon. The resulting list of matching interfaces is then joined together with commas, and returned to the caller which then prints the list out to the controlling terminal.
The end result will be a list of Dialer interfaces on this device.
You need to call the get_ints proc with a parameter indicating the interface pattern you wish to match. If you pasted the script exactly how I wrote it, you should get a list of Dialer interfaces on the device. If you wanted a list of FastEthernet interfaces:
I have successfully created an if statement that only accepts a number between 1 and 8, if I try to enter the number 9 it will repeat the question again, however, if I enter a letter I get the following message:
"can't use non-numeric string as operand of "+""
Is it possible to further restrict my if statement so that if a letter is entered the question will repeat itself until a valid number is entered? I know I can use the "or" || but is it possible to "or" a-z instead of one letter at a time?
I have successfully completed my script and it works perfectly, however, I have two small issues.
The first is that the router will crash if I press crtl+shift+6, and seeing as though I am not the only person that will be using the router that I have put the script on it would be good if I could stop this from occurring. Is there a way to prevent this from happening?
The second issue I am having is that if more than one person uses the script at a time on the one router the script will crash.
As stated above I am very new to TCL scripting so please bare with me if these are simple questions. Thank you.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...