CLI environment commands

alias

Syntax

alias alias-name alias-command-line

no alias alias-name

Context

environment

Platforms

Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode

Description

This command enables the substitution of a command line by an alias.

Use the alias command to create alternative names for an entity or command string that are r easier to remember and understand. If the string contains special characters (#, $, spaces, and others), the entire string must be enclosed within double quotes. Only a single command can be present in the command string.

The alias command can be entered in any context but must be created in the environment context.

For example, to create an alias named "soi" to display OSPF interfaces, enter:

alias soi ‟show router ospf interface”

Parameters

alias-name

Specifies the alias name. Do not use a valid command string for the alias. If the alias specified is an actual command, this causes the command to be replaced by the alias.

alias-command-line

Specifies the command line to be associated with the alias.

create

Syntax

[no] create

Context

environment

Platforms

Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode

Description

This command is required to create a new OS entity.

The no form of the command disables requiring the create keyword.

Default

create

more

Syntax

[no] more

Context

environment

Platforms

Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode

Description

This command enables per-screen CLI output, meaning that the output is displayed on a screen-by-screen basis. The terminal screen length can be modified with the terminal command. The following prompt appears at the end of each screen of paginated output:

Press any key to continue (Q to quit)

The no form of the command displays the output all at once. If the output length is longer than one screen, the entire output will be displayed, which may scroll the screen.

Default

more

reduced-prompt

Syntax

reduced-prompt [no of nodes in prompt]

no reduced-prompt

Context

environment

Platforms

Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode

Description

This command configures the maximum number of higher CLI context levels to display in the CLI prompt for the current CLI session. This command is useful when configuring features that are several node levels deep, causing the CLI prompt to become too long. By default, the CLI prompt displays the system name and the complete context in the CLI.

The number of nodes specified indicates the number of higher-level contexts that can be displayed in the prompt. For example, if reduced-prompt is set to 2, the two highest contexts from the present working context are displayed by name with the hidden (reduced) contexts compressed into a ellipsis (‟…”).

The following is a sample configuration output.

A:ALA-1>environment# reduced-prompt 2
A:ALA-1>vonfig>router# interface to-103
A:ALA-1>...router>if#

The setting is not saved in the configuration. It must be reset for each CLI session or stored in an exec script file.

The no form of the command reverts to the default.

Default

no reduced-prompt

Parameters

no of nodes in prompt

Specifies the maximum number of higher-level nodes displayed by name in the prompt, expressed as a decimal integer.

Default

2

Values

0 to 15

saved-ind-prompt

Syntax

[no] saved-ind-prompt

Context

environment

Platforms

Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode

Description

This command enables saved indicator in the prompt. When changes are made to the configuration file a ‟*” appears in the prompt string indicating that the changes have not been saved. When an admin save command is executed, the ‟*” disappears.

The following is a sample configuration output.

*A:ALA-48# admin save
Writing file to ftp://xxx.xxx.xx.xx/./sim48/sim48-config.cfg
Saving configuration .... Completed.
A:ALA-48#

terminal

Syntax

[no] terminal

Context

environment

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

Commands in this context configure the terminal screen length and width for the current CLI session.

length

Syntax

length lines

Context

environment>terminal

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command sets the terminal screen length (number of lines).

Default

24

Parameters

lines

Specifies the number of lines for the terminal screen length, expressed as a decimal integer.

Values

1 to 512

width

Syntax

width width

Context

environment>terminal

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command sets the terminal screen width (number of characters).

Default

80

Parameters

width

Specifies the number of characters for the terminal screen width, expressed as a decimal integer.

Values

1 to 512

time-display

Syntax

time-display {local | utc}

Context

environment

Platforms

Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode

Description

This command displays timestamps in the CLI session based on local time or Coordinated Universal Time (UTC).

The system keeps time internally in UTC and is capable of displaying the time in either UTC or local time based on the time zone configured.

This configuration command is only valid for times displayed in the current CLI session. This includes displays of event logs, traps and all other places where a timestamp is displayed.

In general all timestamps are shown in the time selected. This includes log entries destined for console/session, memory, or SNMP logs. Log files on compact flash are maintained and displayed in UTC format.

Default

time-display local — Displays time stamps based on the local time.

time-stamp

Syntax

time-stamp

Context

environment

Platforms

Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode

Description

This command displays timestamps in the CLI session.