Example 1. Manually building a Shooter that monitors port 7 of a switch.
This example demonstrates how to build a Threshold Shooter that monitors port 7 of a HP2524 switch. If the link on that port goes down, a "Threshold exceeded" event is generated. Port 7 only needs to be monitored during business hours (8:00 – 18:00), not during the night.
The link status of a port can be determined by verifying a port’s ifOperStatus field (a node from the mib-2 ifTable subtree). As can be seen in the MIB tree (click on the node in the tree and read its description), a value of 1 means the link="UP". Any other value means that the link is not functioning normally.
First step - Create the Shooter body.
- Switch to Designer mode.
- Select Edit|Manage Classes from the menu on the main window.
- Right-click the Class for which to build the Threshold Shooter (In this example we use a HP2524 switch) and choose Define Shooters.
- The "Define HP2524 Shooters" window opens.
- Right-click anywhere in the Shooters box and choose Add a Shooter.
- The "Add/Modify a Shooter" window opens.

- Enter the name of the Shooter in the ShooterName box. (In this example, we use the name: "LinkDownTest")
- Select "Threshold 10" from the ShooterType box. (The port status is polled every 10 seconds)
- Use the "from" and "until" spin-edit controls to define when the Shooter must be active (from 8:00 until 18:00)
- Press the Save button.
- The "Add/Modify a Shooter" window closes. The new LinkDownTest Shooter appears in the Shooters box and has focus (See the Sel.Shooter box in the upper left corner of the screen)
Second step - Add a shooter-target to the LinkDownTest Shooter.
- Verify the Community and IPaddress fields of the Test and Inspect box. Enter the Community name and the IP address of a test device manually if Monitor one was unable to assign these values automatically.
- Walk through the MIB tree and right-click the ifOperStatus node from the mib-2 ifTable branch. (path: iso.org.dod.internet.mgmt.mib-2.interfaces.iftable.ifEntry.ifOperStatus)
- Right-click the ifOperStatus node and select Inspect.
- An SNMP request frame is sent to the test device. The MIB node turns green if the test device returns a valid response. Note that only green MIB nodes can be used as Shooter-targets.
- Right-click the green node again and choose Add to the selected Shooter.
- The "Add/Modify a LinkDownTest shooter-target" window opens.

- Check the Append radiobutton from the OID/Instance box and enter .7 in the edit box. (.7 means port 7 from the switch)
- Select the "not equal to" sign (<>) from the Threshold settings box, enter "1" (=UP, see the nodes description) into the edit box and check the RAW radiobutton.
- Optionally, check also the Custom message radiobutton and enter a warning message (i.e. "The link on port 7 is down!"). This message is shown in the event message if a "link-down" event occurs!
- Check the Show this field on screen control.
- Press the Add/Modify button. The shooter-target is added to the LinkDownTest Shooter. See the snapshot below.

Third step - Start the threshold Shooter.
- Right-click the device on the map for which to start the threshold Shooter and choose Shooters/Properties.
- Click the Background Shooters tab. The LinkDownTest Shooter appears in the Available box.

- Right-click the LinkDownTest Shooter and choose Start this Shooter for device <DeviceName>
- The LinkDownTest Shooter icon moves to the Launched box.
- The LinkDownTest Shooter is now started. You can verify its status by selecting Options|Threshold control from the menu on the main window. If port 7 is "up" then the "Threshold control" window shows:

and if port 7 goes down:
