Display relevant configuration sections while configuring the router

One of the readers of our forums was looking for an interesting solution: he would like to be able to display interface configuration while configuring the same interface. Obviously you could always use the do show running interface name command, but he was looking for a single command without parameters that would display the configuration of the currently selected interface.

Boštjan Šuštar devised a brilliant solution based on EEM Tcl policies and expanded it to include the routing protocol configuration. After installing two EEM policies and adding a few aliases, you can use the config command in interface or routing protocol configuration modes to see the current configuration of the object you’re configuring.

Download the Tcl EEM policies from the CT3 wiki


  1. Good one...THNX

  2. Sadly, for my 2801 router it doesn't work - it stops at the first line of cliconfig.tcl with error:

    Compile check and registration failed:
    Embedded Event Manager configuration: failed to wait for Tclsh to finish registration check for policy cliconfig.tcl: 16
    Invalid argument "sync"
    while executing
    "::cisco::eem::event_register_none sync yes
    Tcl policy execute failed: Invalid argument "sync"

    Just FYI ... IOS ver.:
    Cisco IOS Software, 2801 Software (C2801-ADVSECURITYK9-M), Version 12.4(16), RELEASE SOFTWARE (fc1)

    ROM: System Bootstrap, Version 12.3(8r)T9, RELEASE SOFTWARE (fc1)

    System image file is "flash:c2801-advsecurityk9-mz.124-16.bin"

  3. on the other hand....it's working on 871 with IOS:

    Cisco IOS Software, C870 Software (C870-ADVIPSERVICESK9-M), Version 12.4(22)T, RELEASE SOFTWARE (fc1)

    ROM: System Bootstrap, Version 12.3(8r)YI4, RELEASE SOFTWARE

    System image file is "flash:c870-advipservicesk9-mz.124-22.T.bin"

  4. @Martin: The difference is in the software you're using. Obviously the Tcl policies work with 12.4T, but not with 12.4.

    However, it's a script error: the event_register_none should not have the sync parameter. Just remove it (I'll fix the source) and the policies should run on 12.4 (let me know if that's the case :).

  5. thnx Ivan ... without the sync parameter it's working


You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.