alias alias-name alias-command-line
no alias alias-name
environment
Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode
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”
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.
Specifies the command line to be associated with the alias.
[no] create
environment
Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode
This command is required to create a new OS entity.
The no form of the command disables requiring the create keyword.
create
[no] more
environment
Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode
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.
more
reduced-prompt [no of nodes in prompt]
no reduced-prompt
environment
Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode
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.
no reduced-prompt
Specifies the maximum number of higher-level nodes displayed by name in the prompt, expressed as a decimal integer.
[no] saved-ind-prompt
environment
Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode
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#
[no] terminal
environment
Supported on all 7210 SAS platforms as described in this document
Commands in this context configure the terminal screen length and width for the current CLI session.
length lines
environment>terminal
Supported on all 7210 SAS platforms as described in this document
This command sets the terminal screen length (number of lines).
24
Specifies the number of lines for the terminal screen length, expressed as a decimal integer.
width width
environment>terminal
Supported on all 7210 SAS platforms as described in this document
This command sets the terminal screen width (number of characters).
80
Specifies the number of characters for the terminal screen width, expressed as a decimal integer.
time-display {local | utc}
environment
Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode
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.
time-display local — Displays time stamps based on the local time.
time-stamp
environment
Supported on all 7210 SAS platforms as described in this document, including those operating in access-uplink mode
This command displays timestamps in the CLI session.