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

TCL ios-xr append line to prefix-set

mrakickis
Level 1
Level 1

Hello

I start my learning of eem and tcl scripting, i have project - write script:
1. i plan to monitor interface load

2. if interfaces overloaded - edit prefix-set configuration

3. execute script while interface load drops lower specific level

 

So right now I am stuck with editing prefix-set at IOS-XR

Is there some way to do not overwrite prefix-set, but just add some prefix to the end of the list with TCL? Can you please provide some template please?

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

I don't have a definitive answer to your question because I'm not as familiar with the XR CLI.  However, I can give you some insight into how EEM works and perhaps that will help you answer your own question.

 

EEM doesn't have any deep API access to the device.  All it does is automate CLI (and SNMP) in a very similar manner to how you would do it manually.  So, if there is a command you can run manually on your router, then EEM can automate it.

 

So, can you manually insert into a prefix-set using the CLI?  If so, what is the exact CLI syntax, and I can help you programmatically build it with Tcl.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: