Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Generally, is it better to have one LONG script/applet or break up the functions?

Let's say I'm doing processing for 5 things that are semi-related, or the same process but for many interfaces.  Should I have one script/applet that does it all or make five scripts/applets?

Does Cisco EEM work better with multiples short sessions or one longer session?

Thanks,

Tim

1 REPLY
Cisco Employee

Generally, is it better to have one LONG script/applet or break

EEM was designed to provide short-running automations.  The default max runtime for all policies is 20 seconds.  However, this runtime can be extended to huge values.  It really depends on the specific use case as to whether it's better to do all the work in one policy, or break things up into multiple policies and chain them together.  If the policy will be doing the same thing, but on a large-ish dataset (like interfaces) it would be better to do it all in one policy versus trying to duplicate the logic in multiple policies.

555
Views
0
Helpful
1
Replies