Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vendors:cisco:routers:eem [2024/06/25 10:47] – [Restart (shut and no shut) Analog Voice Ports on a Gateway] gerardorourkevendors:cisco:routers:eem [2026/06/19 14:09] (current) – [Alterantive Media Forking SIP REC] gerardorourke
Line 5: Line 5:
   *https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/command/eem-cr-book/eem-cr-book_CLT_chapter.html   *https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/command/eem-cr-book/eem-cr-book_CLT_chapter.html
  
 +===== Summary / TIPS =====
 +
 +  * by default EEM scripts will only run for 20 seconds. So if you need it to run for longer - you need to set maxrun <seconds> in the event line - example: <code> event timer cron cron-entry "5 0,12 * * *" maxrun 180</code>
 +  * View the last 10 EEM Scripts run by using the command: <code>show event manager history events</code>
 =====Cisco Examples===== =====Cisco Examples=====
 ====Track Specific MAC Address for MAC Address Learn==== ====Track Specific MAC Address for MAC Address Learn====
Line 108: Line 112:
 <code> <code>
 event manager applet disconnect_calls_eem_script authorization bypass event manager applet disconnect_calls_eem_script authorization bypass
- event timer cron cron-entry "5 0,12 * * *"+ event timer cron cron-entry "5 0,12 * * *" maxrun 180 
 + action 0010 syslog msg "Restarting Analog Voice Ports 1/0/X & 3/0/X ..."
  action 0010 syslog msg "Restarting Analog Voice Ports 1/0/X & 3/0/X ..."  action 0010 syslog msg "Restarting Analog Voice Ports 1/0/X & 3/0/X ..."
  action 0020 cli command "enable"  action 0020 cli command "enable"
Line 162: Line 167:
  action 0110 exit  action 0110 exit
 </code> </code>
 +
  
  
  
  • vendors/cisco/routers/eem.1719308824.txt.gz
  • Last modified: 2024/06/25 10:47
  • by gerardorourke