cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

TCL Script to replace text in a file stored in flash

smolz
Level 4
Level 4

here is what i am trying to do.  I have a 2900 router with the ucs-e blade in it.  I am trying to automate the deployment of hundreds of routers with this setup.

 

So far I have gotten Cisco Prime Infrastructure up and running with the ability to push a new IOS to the router as well as a configuration built on a template.

As part of this I have an eem script that runs to clean up some configuration before sending the routers off to customer sites.  

I would like to have the eem script run the command "ucse 1 imc config save flash:imc.cfg" which would dump the cimc config to a text file.  Then i would like to be able to parse the file and replace some of the configuration items in there (hostname, dns servers, etc.) and then restore the CIMC config.  This way I wouldn't need to actually log into the CIMC to do this minor configuration step.

Who Me Too'd this topic