Users Guide

Perl Scripts | Actions and Adaptive CLI
602 OMNM 6.5.3 User Guide
Download Speed (the first integer in the output)
[Speed (kbps):\s+]([0-9]+).
Upload Speed (the third integer in the output)
[Speed (kbps):\s+][0-9]+\s+[0-9]+\s+([0-9]+).
NOTE:
You can use free regular expression testers to debug these expressions. See Testing Regular
Expressions on page 605.
8
Apply the edits you have made to script and extractive regular expressions, then
Save
the
Adaptive CLI.
9
Right-click the Adaptive CLI and
Execute
it.
10
Select the target device(s).
11
Confirm the execution. The screen that appears before you click
Execute
again would have
fields if you had a script with input parameters.
12
The
Results
panel appears to advise whether the script ran successfully, displaying its output.
13
Click
Job Viewer
, and arrange that panel so it displays informational messages by clicking the
icon next to the date/time display. Check the checkbox next to the blue informational circle,
and click the
Refresh
icon to the far left.
14
Click the last informational message (
Set attribute extraction results...
) and the extracted
attribute values appear in the data panel at the bottom of the screen.
Example 5: Monitor Text Values
Create an Adaptive CLI with the following to monitor layer 1 and layer 2 status:
integer attributes: layer1status, layer2status
Script to produce the output:
show isdn status
Here is the output to match:
Layer 1 Status:
ACTIVE
Layer 2 Status:
TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED