06-13-2019 12:22 PM
I have a device running Linux and Cisco 5921. I would like to run a generic script (TCL?) upon startup (system boot) that would then load custom device configurations based on a pre-determined device purpose.
So for example, I want the c5921 to automatically run "c5921-startup.tcl" but that file may source another file "Router-2.tcl" that configures all the interfaces for "Router-2".
So basically, there might be several pre-configured router files (scripts or configs) and the choice is made by linking a specific file to a specified file name.
I tried using an event manager policy, but I ran into an issue related to the security_level.
I'm not picky as to the mechanism, but I need the router to choose it's configuration at start time without user intervention based on the contents of a unix: file.
06-13-2019 01:08 PM
Hello,
how do you define a 'pre-determined device purpose' ? Whatever script you run, it needs to be triggered by something. EEM can pretty much configure the entire router, but it needs to act upon a parameter...
06-13-2019 01:18 PM
Let's say the "predefined purpose is being the second router (Router-2) in a particular demonstration scenario (Demo-3). So for example, I might cd to /opt/cisco/c5921/, link configs/demo-3/router2-config.tcl to "myconfig.tcl", and reboot.
Does that make sense? I don't care so much about the actual particulars, but I want to change/select the pre-built boot time configuration from Linux, not IOS.
06-18-2019 07:10 AM
Does anyone have any ideas for accomplishing this?
06-24-2019 08:49 AM
Anyone?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide