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

Using output from pwd in current directory

Erik Nihlen
Level 1
Level 1

Hi,

I'm new to EEM in IOS-XR or EEM in general. 

I'm looking to use the output from the CLI in the current vty session and use it as a argument to a TCL-script.

Example: 

RP/0/RSP0/CPU0:Router(config)#router isis  1
RP/0/RSP0/CPU0:Router(config-isis)#pwd

Mon Mar 17 10:38:01.827 CET
router isis 1

I was thinking a alias that triggers a tcl-script and then executes a command in the same working directory as the user who executed the alias is in or some other way and can save the information from the current session. 

Is this is possible?

 

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

Unfortunately, this is not possible.  The config submode is not passed as a variable to the CLI event detector.