2

Is it possible to embed TCL directly into a Cisco startup-config? From the (lack of) information I'm finding, it doesn't look do-able.

I have a tool that generates Cisco configurations based on some simple criteria. I'd like to include in this script a version check that will fail if the installed version of IOS is less than the minimum required.

I guess the "real" question is: Is it possible to construct a startup-config that completely fails to load if the IOS version fails the check?

I'd still like to know about TCL in general. I know a separate file can be prepared and parsed, but I'd like to have it all in a single startup-config configuration script.

6
  • So you want to set all configuration to default if the version doesn't match a specific IOS? Commented Feb 28, 2012 at 13:58
  • @resmon6 Not exactly. I just want the config file to fail if the version isn't as expected. So whatever defaults are on the device would still hold, I guess. Commented Feb 28, 2012 at 20:43
  • You can do this with Embedded Event Manager. Take a look at this. I just had some work come up but I'll see if I can whip something up soon. Commented Feb 28, 2012 at 22:52
  • what IOS version are you running? Commented Feb 29, 2012 at 15:28
  • @resmon6 15.1 is the target version. I'd like the startup-script to fail spectacularly on 15.0. The reason is because 15.1 is required for certain security commands to work, but our techs don't notice when those commands fail, and the service otherwise "works". Thanks! Commented Mar 1, 2012 at 3:33

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.