Unicon documentation migration is in progress. You might find some broken links or experience minor issues in the documentation. We are working on resolving these issues.

X

Scout Database Model (CR)

Table: PredefinedCommandTemplates

Data for command preferences (for standard commands)

ColumnName DataType Key Not Null Default Value Comment
CommandID




INTEGER




PK




NN




 




Unique ID of the command
1 - Shutdown
3 - Restart
5 - Update
8 - Factory reset
10 - Delivery
Policies





INTEGER





 





NN





0





Values for preferences, can be combined by OR
0x8 - Inform user
0x100 - Format before update
0x200 - Run as root
0x800 - Enable this template
0x1000 - Template is mandatory
0x2000 - User can cancel
InformInSeconds INTEGER   NN 0 Number of seconds to show the command message
IndexName IndexType Columns
PRIMARY PRIMARY CommandID

How to create

CREATE TABLE PredefinedCommandTemplates( CommandID INTEGER NOT NULL, Policies INTEGER NOT NULL DEFAULT 0, InformInSeconds INTEGER NOT NULL DEFAULT 0, CONSTRAINT PK_PredefinedCommandTemplates PRIMARY KEY (CommandID));

How to initialize

INSERT INTO PredefinedCommandTemplates (CommandID) VALUES (1); INSERT INTO PredefinedCommandTemplates (CommandID) VALUES (3); INSERT INTO PredefinedCommandTemplates (CommandID) VALUES (5); INSERT INTO PredefinedCommandTemplates (CommandID) VALUES (8); INSERT INTO PredefinedCommandTemplates (CommandID) VALUES (10);
Table: PredefinedCommandTemplates