beautypg.com

Alias – Brocade Network OS Command Reference v4.1.0 User Manual

Page 72

background image

34

Network OS Command Reference

53-1003115-01

alias

2

alias

Configures the global or user switch alias.

Synopsis

alias string expansion

no alias string expansion

Operands

string

Alias name string. The number of characters can be from 1 through 64.

expansion

Commands for the alias name. Multiple commands can be separated with
a semicolon ( ; ).

Defaults

None

Command Modes

Alias configuration mode

User-alias configuration mode

Description

Use this command to configure global or user-level alias for switch commands. The global name is
visible to all users. When the global alias name is called, the configured alias expansion
commands are executed on the prompt.

Usage Guidelines

The global alias is accessible across all users.

The user-level alias is accessible only when the respective user logs in.

Use the no form of his command to remove the alias. You must be in the correct configuration
mode in order to remove the global or user alias.

Examples

The following example sets both a switch alias and a user alias.

switch(config)# alias–config

switch(config-alias-config)# alias user-alias "show clock"

switch(config-alias-config)# alias company Brocade

switch(config-alias-config)# alias redwood engineering

switch(config-alias-config)# user john smith

switch(config-alias-config-user)# alias manager engineering

See Also

alias-config, user (alias configuration)