05-02-2019 05:40 AM
Hey Cisco Community,
I am new in the Cisco World but have some experience with other enterprise switches.
My question is if it is possible to generate a txt file or another type of editable file as a base configuration with several parameters in it which can be directly edited in the file?
The plan is only to have several lines where you can change ip or vlan configuration for specific devices.
But the main config should be stay the same for every device.
Best practice would be an automatic deployment USB stick with the device-individual configuration file.
Otherwise an config import over the webinterface would also be possible.
Best regards
Tobias
Solved! Go to Solution.
05-02-2019 06:03 AM
Hi there,
Take a working configuration file and in a text editor replace all the variable values with keywords. such the a config could look like:
! hostname {{HOSTNAME}} ! int vlan10 ip address {{VLAN_10_IP_AND_MASK}} !
Then for each switch you are deploying do a simple find and replace on the keywords with the values you want for the switch you are provisioning.
Of course you can easily automate this. Google "python csv jinga" and you will find some excellent examples.
cheers,
Seb.
05-02-2019 06:03 AM
Hi there,
Take a working configuration file and in a text editor replace all the variable values with keywords. such the a config could look like:
! hostname {{HOSTNAME}} ! int vlan10 ip address {{VLAN_10_IP_AND_MASK}} !
Then for each switch you are deploying do a simple find and replace on the keywords with the values you want for the switch you are provisioning.
Of course you can easily automate this. Google "python csv jinga" and you will find some excellent examples.
cheers,
Seb.
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