Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

inject txt file into router by EEM

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,

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

inject txt file into router by EEM

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.

1 REPLY
Cisco Employee

inject txt file into router by EEM

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.

914
Views
0
Helpful
1
Replies