12-13-2010 09:00 AM
I am trying to use the cli event detector. EEM version 3.2
I have a tcl script with the following trigger:
::cisco::eem::event_register_cli pattern "^profile" enter
I then have:
set full_command $arr_einfo(msg)
puts "full command is: $full_command"
I would have expected the last line to print out the full command i enter on the command line.
E.G. if i type "profile a FastEthernet1/0/30"
I would expect the script to output "full command is: profile a FastEthernet1/0/30"
However all it outputs is "full command is profile a" it drops the second argument.
Is this the expected behaviour? I thought maybe there is an issue with providing 2 arguments
so i tried joining the second 2 like this:
"profile aFastEthernet1/0/30"
but when i do this the script only outputs:
"full command is: profile"
Drops all the arguments. Anyone come across this or know what might be going on?
Cheers,
Anthony.
Solved! Go to Solution.
12-13-2010 09:52 AM
Use $arr_einfo(line) to get your full command.
12-13-2010 09:52 AM
Use $arr_einfo(line) to get your full command.
12-16-2010 12:43 PM
Excellent Joe. That worked perfectly thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide