CLI Commands
Introduction
The command-line interface (CLI) is constructed with an eye towards automation of CLI-
based configuration. The interaction is modeled on that used in many Internet protocols
such as Telnet, FTP, and SMTP. After each command is entered and processed, the switch
will issue a reply that consists of a numeric status code and a human-readable explanation of
the status. See, for example, the SMTP protocol specification in RFC 821 – Simple Mail
Transfer Protocol (http://www.faqs.org/rfcs/rfc821.html), specifically, “Appendix E – Theory of
Reply Codes.” for more details.
The general format of commands is:
section parameter [value]
where:
• section is used to group parameters.
• parameter will specify the parameter within the section. For example, the network section will have
parameters for DHCP, IP address, subnet mask, and default gateway.
• value is the new value of the parameter. If value is omitted, the current value is displayed.
Sections and parameter names are case sensitive (e.g., “Network” is not the same as
“network”).
Accessing the CLI
To access the CLI, establish an Ethernet or serial connection to the switch.
To connect by Ethernet, open a command prompt window and type:
telnet <switchIP> (where <switchIP> is the IP address of the switch) eg. telnet
192.168.0.1
At the login prompt, type “cli” for the username and “admin” for the password. The switch
will respond with “Managed Switch configuration CLI ready”.
Likewise, for serial access, via Tera Term for example, use...
login: cli
password: admin
NOTE: Any commands in the CLI commands section of this section, with the exception of the global
commands, must be prefaced with the name of the section they are in. For example, to change the IP
address of the Switch, you would type:
network address <newIP>
This is because the address command is in the Network Configuration section of this Appendix.
NOTE: The new values will not take effect until explicitly committed.
Stride Industrial Ethernet Switches User Manual 2nd Ed. Rev. B
Appendix D - CLI Commands
D-2