Skip to content

Contents

Shell basics

The SSDK includes a CLI-like switch shell to configure the switch on Linux. If you have built the shell refer to Building, you can invoke it by executing the file ssdk_sh.

The SSDK provides some useful help mechanisms to facilitate the usage of the shell. To get help specific to a command mode, a command, a keyword, or an argument, use one of following commands:

  • Entering a question mark (?) at the shell prompt allows you to obtain a list of commands available for each command mode.

  • Entering “abbreviated-command?” and the shell shows a list of commands that begin with a particular character string. (No space between command and question mark.)

  • Entering “Command ?” to get the keywords or arguments that you must enter next on the command line. (One space between command and question mark.)

  • Entering “abbreviated-command”, the shell completes a partial command name or lists all commands partially matched Help messages of the SSDK using the following conventions:

    • Required command arguments are inside angle brackets (< >).
    • Optional command arguments are in square brackets ([ ]).
    • Alternative keywords are separated by vertical bars ( | ).
    • The minimum and the maximum of a value range are separated by horizontal line (-).

To quit the shell, you can enter “q” or “quit” at the shell prompt.