cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2009
Views
0
Helpful
1
Replies

inject txt file into router by EEM

csco11579831
Level 1
Level 1

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

Joe Clarke
Cisco Employee
Cisco Employee

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.

View solution in original post

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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.