Owners Manual

Perl Scripts | Actions and Adaptive CLI
606 OMNM 6.5.2 User Guide
Several applications, some free, are helpful to validate regular expressions too. These include
websites (regexr.com, for one). These may also be helpful when trying to match a particular
number and phrase in the Adaptive CLI and other output. In this example, we used Kodos to test
various iterations of our regular expressions.
Enter the regular expression in the top panel (note the helpful hints from the online help), the
output to scan in the middle panel, and the match appears in the bottom panel. Note: this
application is not supported by OpenManage Network Manager developers.
Regular expressions include metacharacters to instruct the program how to treat characters it
encounters. These include the following: ^, $, . , | , { , } , [ , ] , ( , ), *, +, ? , \. If you want to match
one of these metacharacters, you must prepend a backslash (\). So to match a literal question mark,
rather than instructing regular expression matching to match 0 or 1 of a previous expression, you
must enter \?. To match a continue prompt that says
Proceed? (y/n)
you must escape three
characters in regular match expression, like this
Proceed\? \(y/n\)
Scheduling Actions
You can schedule actions with a right-click in the Actions portlet or the Schedules portlet. This
opens an editor with the following screens:
General
Parameters
Schedule
See
Schedules Portlet
on page 158 for more scheduling actions with that portlet. Schedules created
in the
Actions Portlet
also appear in the Schedules portlet.