cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
357
Views
0
Helpful
4
Replies
Beginner

5921 startup config script

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.

Everyone's tags (5)
4 REPLIES 4
VIP Mentor

Re: 5921 startup config script

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...

Beginner

Re: 5921 startup config script

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.

Highlighted
Beginner

Re: 5921 startup config script

Does anyone have any ideas for accomplishing this?

Beginner

Re: 5921 startup config script

Anyone?

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards