EEM ::base64::encode unknown to the router...

Unanswered Question
Oct 1st, 2010

An error occurs on an XR device :

invalid command name "::base64::encode"
    while executing
"::base64::encode [read $fd]"

It seems that b64 encoding is not properly declare by default.

How could I fix that ?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Fri, 10/01/2010 - 13:02

I don't have access to IOS-XR at the moment with which to test, but I'm not sure the same EEM libraries exist in XR that exist in IOS.  However, there's nothing to keep you from adding them.  At the very least, you can take the tmpsys:/lib/tcl/base64.tcl file from an IOS device, and paste that into your EEM script.  You can also use the EEM user library directory on XR.  Create a directory on the device to hold your library files (e.g. disk0:/lib).  Copy the base64.tcl file to this directory, then configure:

event manager directory user library disk0:/lib

Then you can use the ::base64 namespace in your script.


This Discussion