Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
So you want to set all configuration to default if the version doesn't match a specific IOS? – resmon6 Feb 28 '12 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. – willpall Feb 28 '12 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. – resmon6 Feb 28 '12 at 22:52
what IOS version are you running? – resmon6 Feb 29 '12 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! – willpall Mar 1 '12 at 3:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.