A user wants to simulate specific alarms, such as BAD LINK DETECTED and PERCENT ERRORS THRESHOLD EXCEEDED, using the Spectrum command-line interface (CLI). The requirement is to include all associated variables to match real-world scenarios.
Spectrum, all supported versions
The primary method for CLI alarm simulation is the create event command. However, this command has a limitation where it only supports a single variable ({S 0}). Complex alarms that rely on multiple dynamic variables, calculated attributes (like ifOperStatus), or polling intervals may not be fully simulated using only the CLI.
There are three primary methods to simulate alarms in DX NetOps Spectrum, depending on the complexity of the alarm and the variables required.
The CLI create event command can assert or clear alarms by generating specific event codes.
$SPECROOT/vnmsh directory../connect to establish a CLI session.{S 0} variable. Is there a way to test asserting and clearing a custom alarm in Spectrum?For alarms requiring multiple variable bindings, the snmptrap utility can simulate the actual trap a device would send to the SpectroSERVER.
snmptrap command from the command line.The Spectrum Web Services API provides a way to create events without the limitations of the command line.