Net Admin and Startup Script Command Reference

Top  Previous  Next

This article contains a reference of commands supported by Net Admin and Startup Scripts processing engine.

Command arguments are separated by the "/" character. Every line in a startup script may contain just one command.

note_warning-wt

Executing Net Admin and Startup Script commands that change the state of server context tree may put server into the inconsistent state or corrupt the database. Backup your database before executing

Supported Commands

E

Stop server

R

Restart server

W

Restart Web Server embedded into the LinkServer

S/context_mask/variable/value_for_row1_column1/value_for_row1_column2/...

Set value of a context variable. Sets a value of variable 'variable' in every context corresponding to 'context_mask' to the Data Table created from the subsequent command parameters.

C/context_mask/function/value_for_row1_column1/value_for_row1_column2/...

Calls function 'function' from every context corresponding to 'context_mask' passing data table created from the subsequent command parameters as an input value.

F/context_mask/variable/setField/setValue[/searchField/searchValue]

Set field 'setField' of first record of value of variable 'variable' in every context corresponding to 'context_mask' to 'setValue'. If 'searchField' and 'searchValue' parameters are specified, value is changed in the records where value of field 'searchField' equals 'searchValue'.

Creating A Data Table using Command Arguments

During the processing of some commands (Set Variable, Call Function etc.) a Data Table is created from the list of command arguments.

The value of each cell is composed from the corresponding argument (i.e. value in first row and first column is created from the value of value_for_row1_column1 command argument etc.)

If Record Format of the created table defines N fields, first N arguments are used for filling the first row, second N arguments for the second row etc.

Rules for encoding/decoding values of different types to/from strings may be found here.

If an argument value is surrounded with "$" characters, LinkServer will take the data for that parameter from the filename specified. The filename should be in the LinkServer installation directory. For example, if the parameter value is "$parameterizer.xml$", LinkServer will obtain the data for that parameter from "parameterizer.xml".