08-05-2019 03:55 AM
Hello All,
is it possible to clear ip nat translation lines from the table at a given time periodically using EEM?
Solved! Go to Solution.
08-05-2019 04:16 AM - edited 08-05-2019 04:30 AM
Hello
Should be able to scheduled a cron job daily or weekly.
Below should clear the nat table working every day at 16:45
"* * * * *" = "min hour dayofmonth monthofyear dayofweek" (0 = sunday)
event manager applet Clear-Nat_Table
event timer cron cron-entry "45 16 * * 1-5"
action 1.1 cli command "enable"
action 1.2 cli command "clear ip nat translations **
action 1.3 syslog msg "Nat table cleared"
08-05-2019 04:16 AM - edited 08-05-2019 04:30 AM
Hello
Should be able to scheduled a cron job daily or weekly.
Below should clear the nat table working every day at 16:45
"* * * * *" = "min hour dayofmonth monthofyear dayofweek" (0 = sunday)
event manager applet Clear-Nat_Table
event timer cron cron-entry "45 16 * * 1-5"
action 1.1 cli command "enable"
action 1.2 cli command "clear ip nat translations **
action 1.3 syslog msg "Nat table cleared"
08-05-2019 05:53 AM
thank you for the quick response Paul.
I have configured an enable password. does it matter in the way to configure action cli?
08-05-2019 05:56 AM
Hello
the script runs in the router-switch so it’s will work even if your not logged into the device - so that’s fine
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