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 can accept a series of commands as follows:

  • 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 of a 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
Argument Details
-repetitions <n> Causes the entire batch file to be rerun ‘n’ number of times. The default value (1) causes the batch file to be issued only once.
-sleep <msec> Results in a pause between –cmd executions. –sleep is specified in milliseconds (1000 milliseconds = 1 second). The default value is 0, which does not delay processing.
-gc Forces Java garbage collection immediately after the -cmd is complete. The default is to let normal garbage collection occur.
-log <log-file> The ‘-log’ argument directs output to the specified file during the batch file execution. The default is for the output to go to stdout and stderr.
-qa Suppresses batch processing informational content such as timestamps.