NSC Commands
Command
-cmd
All NSC commands are prefaced by the ‘-cmd’ parameter. Command line switches that follow the specified cmd parameter are arguments to the command.
Batch Command
The NSC is capable of accepting a series of commands. The commands should reside in a file. Each command in the file will start on its own line. Blank lines are not permitted. Processing will stop if a blank line is encountered. A line will be considered a comment if it starts with ‘//’.
batch –file <file> [-repetitions <n>] [-sleep <msec>] [-gc] [-log <log-file>] [-qa]
Example Batch File:
// Create a table with indexes.
-cmd tblcreate -table mytable -file "C:\Netrics\Data\CreateNewTable\tabdef.csv"
// Display the indexes on the table.
-cmd idxlist -tables mytable
Arguments for -cmd batch
When using the batch command, the following arguments are valid:
-repetitions <n>
Repetitions will cause the entire batch file to be rerun ‘n’ number of times. The default is ‘1’ which will cause the batch file to be issued only 1 time.
-sleep <msec>
Sleep will cause there to be a pause in between ’–cmd’ executions. The ‘–sleep’ is specified in milliseconds (i.e. 1000 = 1 second). The default value is ‘0’ which will not delay processing.
-gc
The ‘-gc’ argument will force Java garbage collection immediately after the a ‘-cmd’ has completed. The default is to let normal garbage collection occur.
-log <log-file>
The ‘-log’ argument will direct output to the specified file during the batch file execution. The default is for output to go to the stdout and stderr.
-qa
The ‘-qa’ argument suppresses batch processing informational content such as timestamps.