03-14-2013 05:08 AM
Scenario: 2x7201, both running... c7200p-advipservicesk9-mz.151-4.M6.bin
Code applied to both...
event manager applet foo
event none
action 1.0 cli command "enable"
action 1.1 cli command "terminal exec prompt timestamp"
action 1.2 cli command "sh ip nat statistics | redirect tftp://10.255.255.1/NAT-HITS.$_event_pub_sec"
Result:
Router1...
rt1#sh run | b foo
event manager applet foo
event none
action 1.0 cli command "enable"
action 1.1 cli command "terminal exec prompt timestamp"
action 1.2 cli command "sh ip nat statistics | redirect tftp://10.255.255.1/NAT-HITS.$_event_pub_sec"
!
end
Router2...
rt2#sh run | b foo
event manager applet foo
event none
action 1.0 cli command "enable"
action 1.1 cli command "terminal exec prompt timestamp"
action 1.2 cli command "sh ip nat statistics | redirect tftp://10.255.255.1/NAT-HITS."
!
end
The var "$_event_pub_sec" is not recognized but router2 due the command "shell processing full".
So, is there any way to make IOS shell compatible with that kind of vars?
Solved! Go to Solution.
03-14-2013 09:47 AM
You can configure this successfully if you disable shell processing full, configure the applet, then re-enable shell processing full. The variable should stick then.
03-14-2013 09:47 AM
You can configure this successfully if you disable shell processing full, configure the applet, then re-enable shell processing full. The variable should stick then.
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: