MLNX-GW—UI Commands List
This section displays all the relevant commands used to manage CLI session terminal.
cli clear-history
cli clear-history Clears the command history of the current user. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # cli clear-history | |
Related Commands | show cli | |
Notes |
cli default
cli default {auto-logout <minutes> | paging enable | prefix-modes {enable | show-config} | progress enable | prompt {confirm-reload | confirm-reset | confirm-unsaved | empty-password}} Configures default CLI options for this session only. | ||
Syntax Description | minutes | Configures keyboard inactivity timeout for automatic logout. |
paging enable | Enables text viewing one screen at a time. | |
prefix-modes {enable | show-config} | Configures the prefix modes feature of CLI.
| |
progress enable | Enables progress updates. | |
prompt confirm-reload | Prompts for confirmation before rebooting. | |
prompt confirm-reset | Prompts for confirmation before resetting to factory state. | |
prompt confirm-unsaved | Confirms whether or not to save unsaved changes before rebooting. | |
prompt empty-password | Prompts for a password if none is specified in a pseudo-URL for SCP. | |
Default | N/A | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # cli default prefix-modes enable | |
Related Commands | show cli | |
Notes |
cli max-sessions
cli max-sessions <number> Configures the maximum number of simultaneous CLI sessions allowed. | ||
Syntax Description | number | Range: 3-30 |
Default | 30 sessions | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # cli max-sessions 40 | |
Related Commands | show terminal | |
Notes |
cli session
cli session {auto-logout <minutes> | paging enable | prefix-modes enable | progress enable | terminal {length <size> | resize | type <terminal-type> | width} | x-display full <display>} Configures CLI options for this session only. | ||
Syntax Description | minutes | Configures keyboard inactivity timeout for automatic logout. |
paging enable | Enables text viewing one screen at a time. | |
prefix-modes enable | Configures the prefix modes feature of CLI and enables prefix modes for current session. | |
progress enable | Enables progress updates. | |
terminal length | Sets the number of lines for the current terminal. | |
terminal resize | Resizes the CLI terminal settings (to match the actual terminal window). | |
terminal-type | Sets terminal type. Valid options:
| |
terminal width | Sets the width of the terminal in characters. | |
x-display full <display> | Specifies the display as a raw string (e.g., localhost:0.0) | |
Default | N/A | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # cli session auto-logout | |
Related Commands | show terminal | |
Notes | The "minutes" attribute can be configured from the CLI shell only. |
terminal
terminal {length <number of lines> | resize | type <terminal type> | width <number of characters>} Configures default CLI options for this session only. | ||
Syntax Description | length | Sets the number of lines for this terminal. |
resize | Resizes the CLI terminal settings (to match with real terminal). | |
type | Sets the terminal type. | |
width | Sets the width of this terminal in characters. | |
Default | N/A | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # terminal length 500 | |
Related Commands | show terminal | |
Notes |
terminal sysrq enable
terminal sysrq enable Enable SysRq over the serial connection (RS232 or Console port). | ||
Syntax Description | N/A | |
Default | Disabled | |
Configuration Mode | config | |
History | 8.0.0100 | |
8.0.3000 | Updated command to be disabled by default | |
Example | gateway (config) # terminal sysrq enable | |
Related Commands | show terminal | |
Notes |
show cli
show cli Displays the CLI configuration and status. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 8.0.0100 | |
Example | gateway (config) # show cli CLI defaults for current session: Settings for current session: | |
Related Commands | cli default | |
Notes |
show cli max-sessions
show cli max-sessions Displays maximum number of sessions. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 8.0.0100 | |
Example | gateway (config) # show cli max-sessions | |
Related Commands | ||
Notes |
show cli num-sessions
show cli num-sessions Displays current number of sessions. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 8.0.0100 | |
Example | gateway (config) # show cli num-sessions | |
Related Commands | ||
Notes |
banner login
banner login <string> Sets the CLI welcome banner message. | ||
Syntax Description | N/A | |
Default | ||
Configuration Mode | Any command mode | |
History | 8.0.0100 | |
Example | gateway (config) # banner login Example | |
Related Commands | show banner | |
Notes | If more than one word is used (there is a space) quotation marks should be added (i.e., “xxxx xxxx”). |
banner login-local
banner login-local <string> Sets system login local banner. | |||||||
Syntax Description | N/A | ||||||
Default | |||||||
Configuration Mode | Any command mode | ||||||
History | 8.0.0100 | ||||||
Example | gateway (config) # banner login-local Example | ||||||
Related Commands | show banner | ||||||
Notes |
|
banner login-remote
banner login-remote <string> Sets system login remote banner. | ||
Syntax Description | string | Text string |
Default | Enabled | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # banner login-remote Example | |
Related Commands | show banner | |
Notes |
|
banner logout
banner logout <string> Sets system logout banner (for both local and remote logins). | ||
Syntax Description | string | Text string |
Default | Enabled | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # banner logout Example | |
Related Commands | show banner | |
Notes | If more than one word is used (there is a space) quotation marks should be added (i.e., “xxxx xxxx”). |
banner logout-local
banner logout-local <string> Sets system logout local banner. | ||
Syntax Description | string | Text string |
Default | Enabled | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # banner logout-local Example | |
Related Commands | show banner | |
Notes |
|
banner logout-remote
banner logout-remote <string> Sets system logout remote banner. | ||
Syntax Description | string | Text string |
Default | Enabled | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # banner logout-remote Example | |
Related Commands | show banner | |
Notes |
|
banner motd
banner motd <string> Configures the message of the day banner. | ||
Syntax Description | string | Text string |
Default | Enabled | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # banner motd “My Banner” | |
Related Commands | show banner | |
Notes |
|
ssh server enable
ssh server enable Enables the SSH server. | ||
Syntax Description | N/A | |
Default | SSH server is enabled | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # ssh server enable | |
Related Commands | show banner | |
Notes | Disabling SSH server does not terminate existing SSH sessions, it only prevents new ones from being established. |
ssh server host-key
ssh server host-key {<key-type> {private-key <private-key>| public-key <public-key>} | generate} Configures host keys for SSH. | ||||
Syntax Description | key-type |
| ||
private-key | Sets new private-key for the host keys of the specified type. | |||
public-key | Sets new public-key for the host keys of the specified type. | |||
generate | Generates new RSA and DSA host keys for SSH. | |||
Default | SSH keys are locally generated | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server host-key dsa2 private-key | |||
Related Commands | show banner | |||
Notes | RSA2 and a DSA2 host keys are generated by default. The RSA2 key can be used as SSH server and client, while DSA2 key can only be used as SSH client. When the switch is a client (e.g., downloading image or uploading logs), RSA key is recommended. DSA key is only for legacy devices and has been deprecated by OpenSSH starting with the 7.0 release. |
ssh server listen
ssh server listen {enable | interface <inf>} Enables the listen interface restricted list for SSH. If enabled, and at least one non-DHCP interface is specified in the list, the SSH connections are only accepted on those specified interfaces. | ||||
Syntax Description | enable | Enables SSH interface restrictions on access to this system | ||
interface | Adds interface to SSH server access restriction list. | |||
Default | SSH listen is enabled | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server listen enable | |||
Related Commands | show ssh server | |||
Notes |
ssh server login attempts
ssh server login attempts <number> Configures maximum login attempts on SSH server. | ||||
Syntax Description | number | Range: 3-100 attempts | ||
interface | Adds interface to SSH server access restriction list. | |||
Default | 6 attempts | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server login attempts 5 | |||
Related Commands | show ssh server | |||
Notes |
ssh server login timeout
ssh server login timeout <time> Configures login timeout on SSH server. | ||||
Syntax Description | time | Range: 1-600 seconds | ||
Default | 120 seconds | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server login timeout 130 | |||
Related Commands | show ssh server | |||
Notes |
ssh server login record-period
ssh server login record-period <days> no ssh server login record-period Configures the amount of days for counting the number of successful logins. | ||||
Syntax Description | Days | Range: 1-30 days | ||
Default | Disabled | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server login record-period 1 | |||
Related Commands | show ssh server login record-period show ssh server | |||
Notes |
ssh server min-version
ssh server min-version <version> Sets the minimum version of the SSH protocol that the server supports. | ||||
Syntax Description | version | Possible versions: 1 and 2 | ||
Default | 2 | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server min-version 2 | |||
Related Commands | show ssh server | |||
Notes |
ssh server ports
ssh server ports {<port1> [<port2>...]} Specifies which ports the SSH server listens on. | ||||
Syntax Description | port | Port number range: 1-65535 | ||
Default | 22 | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server ports 22 | |||
Related Commands | show ssh server | |||
Notes |
|
ssh server security strict
ssh server ports {<port1> [<port2>...]} Enables strict security settings. | ||||
Syntax Description | N/A | |||
Default | N/A | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server security strict | |||
Related Commands | show ssh server | |||
Notes | The following ciphers are disabled for SSH when strict security is enabled:
|
ssh server security strict
ssh server tcp-forwarding enable Enables TCP port forwarding. | ||||
Syntax Description | N/A | |||
Default | N/A | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server tcp-forwarding enable | |||
Related Commands | show ssh server | |||
Notes |
ssh server x11-forwarding
ssh server x11-forwarding enable Enables X11 forwarding on the SSH server. | ||||
Syntax Description | N/A | |||
Default | Disabled | |||
Configuration Mode | config | |||
History | 8.0.0100 | |||
Example | gateway (config) # ssh server x11-forwarding enable | |||
Related Commands | ||||
Notes |
ssh client global
ssh client global {host-key-check <policy>} | known-host <known-host-entry>} Configures global SSH client settings. | ||
Syntax Description | host-key-check <policy> | Sets SSH client configuration to control how host key checking is performed. This parameter may be set in 3 ways.
|
known-host | Adds an entry to the global known-hosts configuration file. | |
known-host-entry | Adds/removes an entry to/from the global known-hosts configuration file. The entry consist of “<IP> <key-type> <key>”. | |
Default | host-key-check – ask, no keys are configured by default | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # ssh client global host-key-check no | |
Related Commands | show ssh client | |
Notes |
ssh client user
ssh client user <username> {authorized-key sshv2 <public key> | identity <key type> {generate | private-key [<private key>] | public-key [<public key>]} | known-host <known host> remove} Adds an entry to the global known-hosts configuration file, either by generating new key, or by adding manually a public or private key. | ||
Syntax Description | username | The specified user must be a valid account on the system. |
authorized-key sshv2 <public key> | Adds the specified key to the list of authorized SSHv2 RSA or DSA public keys for this user account. These keys can be used to log into the user's account. | |
identity <key type> | Sets certain SSH client identity settings for a user: dsa2 or rsa2. | |
generate | Generates SSH client identity keys for specified user. | |
private-key | Sets private key SSH client identity settings for the user. | |
public-key | Sets public key SSH client identity settings for the user. | |
known-host <known host> remove | Removes host from user's known host file. | |
Default | No keys are created by default | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # ssh client user admin known-host 172.30.1.116 remove | |
Related Commands | show ssh client | |
Notes | If a key is being pasted from a cut buffer and was displayed with a paging program, it is likely that newline characters have been inserted, even if the output was not long enough to require paging. One can specify “no cli session paging enable” before running the “show” command to prevent the newlines from being inserted. |
slogin
slogin [<slogin options>] <hostname> Invokes the SSH client. The user is returned to the CLI when SSH finishes. | |||
Syntax Description | slogin options | -p -1 | -o flags (option allowed flags): AdressFamily |
Default | N/A | ||
Configuration Mode | config | ||
History | 8.0.0100 | ||
8.1.1000 | Updated slogin options | ||
Example | gateway (config) # slogin 192.168.10.70 | ||
Related Commands | |||
Notes | For more information about slogin options see the following: linux.die.net/man/1/ssh |
show ssh client
show ssh client Displays the client configuration of the SSH server. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 8.0.0100 | |
Example |
| |
Related Commands | ||
Notes |
show ssh server
show ssh server Displays SSH server configuration. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 8.0.0100 | |
Example | gateway (config) # show ssh server
| |
Related Commands | ||
Notes |
show ssh server host-keys
show ssh server host-keys Displays SSH host key configuration. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any command mode | |
History | 8.0.0100 | |
Example |
| |
Related Commands | ssh server host-keys | |
Notes | RSA2 and a DSA2 host keys are generated by default. The RSA2 key can be used as SSH server and client, while DSA2 key can only be used as SSH client. When the gateway is a server, use RSA key to connect to the Skyway device. When the gateway is a client (e.g., downloading image or uploading logs), RSA key is recommended. DSA key is only for legacy devices and has been deprecated by OpenSSH starting with the 7.0 release. |
show ssh server login record-period
show ssh server login record-period Displays the amount of days for counting the number of successful logins. | ||
Syntax Description | N/A | |
Default | 30 days | |
Configuration Mode | Any command mode | |
History | 8.0.0100 | |
Example | gateway (config) # show ssh server login record-period | |
Related Commands | ssh server login record-period | |
Notes |
telnet
telnet Logs into another system using telnet. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # telnet telnet> | |
Related Commands | telnet-server | |
Notes |
telnet-server enable
telnet-server enable Enables the telnet server. | ||
Syntax Description | N/A | |
Default | Telnet server is disabled | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # telnet-server enable | |
Related Commands | telnet-server | |
Notes |
show telnet-server
show telnet-server Displays telnet server settings. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config | |
History | 8.0.0100 | |
Example | gateway (config) # show telnet-server | |
Related Commands | telnet-server | |
Notes |