Configuration and diagnostics via Command Line Interface (CLI)
107065_en_01 PHOENIX CONTACT 59
6.4 Command syntax
A command consists of one or more terms which can be followed by one or more parame-
ters. These parameters can be mandatory or optional values.
Some commands, e.g., show network or clear config, do not require parameters. Other
commands, e.g., network parms, require values to be specified after the command name.
The parameters must be entered in the specified order, whereby optional parameters al-
ways follow mandatory parameters.
The following example illustrates the syntax using the command network parms:
network parms <ipaddr> <netmask> [gateway]
• network parms is the command name.
• <ipaddr> and <netmask> are parameters and represent mandatory values, which must be
specified after the entry of the command name.
• [gateway] is an optional parameter, which means that a value does not have to be speci-
fied.
The following examples illustrate the correct syntax for entering the network parms com-
mand:
network parms 192.168.10.42 255.255.255.0
network parms 192.168.10.42 255.255.255.0 192.168.10.0
The following examples illustrate incorrect syntax for entering the network parms com-
mand:
network parms 192.168.10.42 - missing mandatory parameter
network parms 255.255.255.0 - missing mandatory parameter
network parms 255.255.255.0 192.168.10.42 - incorrect parameter sequence
6.5 Using the CLI Help
Entering a question mark (?) in the command prompt displays a list of all the commands cur-
rently available together with a brief description.
Typing a question mark (?) after each entry displays all the available command names or
parameters from this point on.
Table 6-2 Structure of CLI commands
Command Description
? Display available commands