Cisco EEM nested block [Version 4.00]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2018 05:29 AM - edited 03-01-2019 06:29 PM
[UPDATE 04/03/2018]
Problem has been resolved
Hi everyone,
I made script which pinging some IP's. The problem is with action end in conditional block because it causing problem with script triggering (getting error: "else" found without matching "if" action) .
Sample structure of my script:
foreach loop_variable_name
cli command ping...
if first_operand gt
puts
......
......
foreach loop_variable_name
cli command ping
if first_operand gt
puts
........
........
else
puts
.......
end
else
puts
.......
end
end
end
I have no problem with script working when I'm using construction:
foreach
if
else
end
end
Anyone can tell me how to properly close the condition block with end action? Appreciate any help.
- Labels:
-
Network Management
