Learning How to Create Behavior Models
-
How to Use Trap Masks - Review and Summary -
How to Create a Trap Mask
How to Use Behavior Models
Review and Summary
The following section includes exercises and questions to help you review what you have learned in this chapter.
Review Exercises
Complete the following exercises using the skills you learned in this chapter.
- Create an alarm that will notify you when a link is down and when it comes back up. Some of the actions you will take include:
- Creating a mask named 1LinkDown, that fires the simple trigger downLink when it detects an SNMP generic 2 trap
- Creating a mask named 1LinkUp, that fires the simple trigger upLink when it detects an SNMP generic 3 trap
- Creating an alarm named 1LinkDownUp, that includes the following transitions:
Ground --> downLink --> LinkDown
LinkDown --> upLink --> Ground
- Having the alarm log the instance to myLog at each transition
- Testing the masks and alarm by using trapgen
This alarm is similar to the alarm IfLinkUpDown, included with NerveCenter. Generating generic traps may trigger it and other alarms.
- Modify the trigger function of the two masks so that they only fire a trigger when one specific node in the CriticalDevices property group sends a trap.
Review Questions
Answer the following questions using the knowledge you learned in this chapter. See the Answers to the Chapter 5 Review Questions on page 126.
- What are the similarities and differences between polls and masks?


- What is the difference between a generic and an enterprise-specific trap number?



- Why is it often necessary to use trapgen when testing a mask?



Summary of What You Learned
In this chapter you learned how to create, modify, and use trap masks in NerveCenter. You also learned several new concepts. The checklist below should help you review once more before going to the next chapter.
You learned:
- How to create a new mask
- How to create an alarm to be triggered by a mask
- How to use trapgen to generate a trap
- How to define a trigger function
You also were introduced to the following concepts:
- Trap Mask
- Trap
- Generic and enterprise-specific trap numbers