Smart Controls can be added using the CLI or GUI. If you associated an alert with a Smart Control, the means which you selected to notified of the alert will be displayed.
eqcli > smart_control smart_control_name |
eqcli > script edit/URL |
where:
edit invokes the script editor to enter/create the desired script
URL fetches the script from the entered fully qualified ftp/http site
- Running the script at an interval will run the selected script at the interval assigned.
eqcli sc-scname > interval seconds |
where seconds is the number of seconds at which the script will run.
- Setting up a schedule will run the script at the times that you schedule .The
schedule
for Smart Control is in the local time zone. Therefore, if you set it to run at 12:00, this means 12:00 of whatever timezone the system is set toand not GMT or UTC.
eqcli sc-scname > schedule schedule string |
where schedule string is in the standard cron format, but with an additional first column:
second: 0-59
minute: 0-59
hour: 0-23
day of month: 1-31
month: 1-12 (or names, see below)
day of week: 0-7 (0 or 7 is Sun, or use names below)
"Lists" are supported (using comma) but "steps" (generally specified with a "/") are not supported. White space (' ' or \t) is a column break. The parsing starts at the first non-white-space character. If the wrong number of columns (not 6) is parsed, parsing fails.
Day names: Mon,Tue,Wed,Thu,Fri,Sat,Sun
Month names: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec
Note - The schedule string must be enclosed in quotes. i.e.: "* 0,30 * * * Mon" would be translated as 'Every Monday, run this this every 30 seconds'.
Displaying Configured Smart Controls
To display existing Smart Controls enter the following:
eqcli > show smart_control
Name Interval Schedule
Test_1 648000
Test_2 0 * * 1 2 Feb Mon
eqcli >
After creating a script you can run the script manually through the CLI. Enter the following:
eqcli > smart_control run scname |
Proceed with the following, based on your selection of Smart Control Type. Some common instructions for all of the screens:
- Select Interval from the Type pane. An Interval type Smart Control will run a script at the intervals that you specify in the Run Every...pane.
- Select the appropriate timings using the selectors.
- Select Schedule from the Type pane. A Schedule type Smart Control will run a script at the times that you schedule in the Schedule pane.
- Select the appropriate scheduling options using the selectors.
- Select Threshold from the Type pane. A Threshold type Smart Control will run a script using previously configured alerts. The alerts are configured with alert definitions, that require the name of an object to which the alert will apply.
- State change and exception alerts are available for servers, server pools, server instances, peers (failover) and interfaces. Refer toConfiguring Alerts for detailed descriptions of alert configuration. In addition, if you select an alert in the Alerts Using this Smart Control, and click on the Go to Alert button, the alert configuration screen will be activated. You can select multiple alerts by holding down the CTRL key and selecting alerts.
Note - If you have not configured alerts previously, you will need to configure them so that they are accessible from the Alerts Using this Smart Control pane. You can still save a new Smart Control by uploading a script or copying and pasting in the script area and leaving the Alerts Using this Smart Control empty until you have configured alerts. It may be helpful to write down the Name you entered as you will be need to select the Smart Control when configuring alerts.