Configuration and diagnostics via Command Line Interface (CLI)
107065_en_01 PHOENIX CONTACT 61
6.7 Using the CLI Network Scripting UI
The CLI Network Scripting UI enables CLI commands from scripts to be loaded onto the
switch via the network. This means that the switch can be configured and diagnosed using
a URL via PC or from a controller. Each command that is entered is confirmed by the switch,
either with OK (config commands) or by outputting the switch data (show commands).
The command entry must follow a specific syntax:
http://ipaddress/php/command.php?usr=username&pwd=password&cmd=cli_com-
mand_1 | cli_command_2 | ....
The following examples illustrate the correct syntax for entering commands via the CLI Net-
work Scripting UI:
Example: changing the device name
http://192.168.10.42/php/command.php?usr=admin&pwd=private&cmd=device-identity
name Switch2000
Example: displaying the network parameters and changing the user password
http://192.168.10.42/php/command.php?usr=admin&pwd=private&cmd=show network |
users passwd private2