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

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

alainm
Level 1
Level 1

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 ?

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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.

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: