We have moved permanently! Join us @ http://forum.flexraid.com
We have moved permanently! Join us @ http://forum.flexraid.com
We have moved permanently! Join us @ http://forum.flexraid.com
[Logo] (Closed - visit http://forum.flexraid.com)
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
The FlexRAID Expression Language... new to the Web Client...  XML
Forum Index » Clients Developer forum
Author Message
Brahim


Joined: 09/04/2008 23:28:33
Messages: 2883
Offline

The FlexRAID Expression Language

Starting with FlexRAID 2.0 preview build 9

This is for all those users that have either:
- been using the scripting feature of FlexRAID in version 1.4
- or been wishing for a powerful way to script FlexRAID's operations

You are all herein served.
Note: expression scripts can only be scheduled. However, you can schedule them to run "now".
Expression scripts are a powerful way to create an execution workflow.




[]: means optional element or value... when value, the first listed value is the default value
<>: value must be provided
|: separates the possible values
@: expression keyword
...: the expression can repeat multiple times (one or more)

@config: the RAID configuration name to execute against (required if the executable is a RAID task or if the execution is to be queued based on the context of a RAID configuration)
@queued: whether to queue the execution if another task is running against the named RAID configuration... if false, the script will abort
@execute: the executable or FlexRAID task to run... the executable can also be a DOS or Shell script (required)
@param: a parameter value to pass to the executable as argument or to the task as task property (e.g., @param verifyStart=20GB)

Executables (as opposed to RAID tasks) can have these additional expressions:

@in: the working directory when running an executable
@interactive: for interactive scripts, you can automate responding the prompts
@wait: when in interactive mode, the time to wait before responding. FlexRAID cannot really detect a prompt from your script or executable. Therefore, you must time the interaction and know when a response is needed.
@response: when in interactive mode, the response text to pass to the executable

@error: what to do on error (an exit code > 0 equals error for scripts)
@success: what to do on success
@run: the next expression script to run (expression scripts can be chained - watch out for recursions!)
@email: send an e-mail notification
@sms: send an SMS notification

** All keywords are case insensitive
** RAID configuration names are case sensitive

This message was edited 16 times. Last update was at 02/06/2011 07:11:15


Server (VMware ESXi): dual Quad 8356@2.4Ghz | ASUS KFN5-D SLI | 16GB (4x 4GB) DDR2 667Mhz ECC REG w/Parity [Chipkill] | Radeon X300 | Intel 160GB SSD (VM datastore) | 6+ TB storage
File Server VM (running FlexRAID): 512MB RAM | 2 vCPUs | 6TB storage | Parity on 2TB NAS
Brahim


Joined: 09/04/2008 23:28:33
Messages: 2883
Offline

FYI, this feature is now complete and ready for the next build.

Server (VMware ESXi): dual Quad 8356@2.4Ghz | ASUS KFN5-D SLI | 16GB (4x 4GB) DDR2 667Mhz ECC REG w/Parity [Chipkill] | Radeon X300 | Intel 160GB SSD (VM datastore) | 6+ TB storage
File Server VM (running FlexRAID): 512MB RAM | 2 vCPUs | 6TB storage | Parity on 2TB NAS
dscline


Joined: 23/03/2009 14:39:38
Messages: 233
Offline

Sounds good Brahim. Is the config command something that can be pointed to a manual configuration (i.e., a text based configuration that will get us around the limitations of the 2.0 UI for configuring a WHS array), or does that have to be a configuration name of a 2.0 client named config?

WHS v1
FlexRAID 2.0b10 T2+ 19 DRUs 2PPUs
Supermicro C2SEA, E8400 (stock), 4GB
Supermicro AOC-SASLP-MV8
Sans Digital 4ESPCIE (SiI3124)
Generic SiI3132
Brahim


Joined: 09/04/2008 23:28:33
Messages: 2883
Offline

dscline wrote:Sounds good Brahim. Is the config command something that can be pointed to a manual configuration (i.e., a text based configuration that will get us around the limitations of the 2.0 UI for configuring a WHS array), or does that have to be a configuration name of a 2.0 client named config?


It has to be a 2.0 named client configuration.
The WHS v1 issue will be addressed separately.
Users are bound to shoot themselves in the foot with text based configurations. I have already seen many reports of such thing.

With WHS v1, we are just talking about enabling users to add paths that don't exist yet.
I am going to make that part of the upcoming "Advanced RAID Re-configuration" feature.

Server (VMware ESXi): dual Quad 8356@2.4Ghz | ASUS KFN5-D SLI | 16GB (4x 4GB) DDR2 667Mhz ECC REG w/Parity [Chipkill] | Radeon X300 | Intel 160GB SSD (VM datastore) | 6+ TB storage
File Server VM (running FlexRAID): 512MB RAM | 2 vCPUs | 6TB storage | Parity on 2TB NAS
 
Forum Index » Clients Developer forum
Go to:   
Powered by JForum 2.1.8 © JForum Team



Locations of visitors to this page