12-05-2013 03:29 PM
I want to inject a text file that contains multiple routing tables by EEM
Please have an idea?
example text file,
ip route 1.2.3.1 4.3.2.1 255.255.255.255
ip route 1.2.3.2 4.3.2.1 255.255.255.255
ip route 1.2.3.3 4.3.2.1 55255255255
ip route 1.2.3.4 4.3.2.1 255.255.255.255
ip route 1.2.3.5 4.3.2.1 255.255.255.255
ip route 1.2.3.6 4.3.2.1 255.255.255.255
ip route 1.2.3.7 4.3.2.1 255.255.255.255
ip route 1.2.3.8 4.3.2.1 255.255.255.255
.
.
.
.
.
. n.n.n.n ip route 255.255.255.255 z.z.z.z
Thanks,
Solved! Go to Solution.
12-05-2013 06:38 PM
You can just copy the file into the running config, and it will be merged. Assuming the file on flash is called routes.txt, just make sure it ends with the word "end", and do:
copy flash:routes.txt runn
You can do this manually or from an EEM action line.
12-05-2013 06:38 PM
You can just copy the file into the running config, and it will be merged. Assuming the file on flash is called routes.txt, just make sure it ends with the word "end", and do:
copy flash:routes.txt runn
You can do this manually or from an EEM action line.
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