1-36
Static Virtual LANs (VLANs)
Configuring VLANs
Creating an Alias for Show VLAN Commands
You can create an alias for a frequently used show vlans custom command to
avoid entering the selected columns each time you use the command.
Figure 1-26. Example of the alias Command
Note on Using Pattern Matching with the
“Show VLANs Custom” Command
If you have included a pattern matching command to search for a field in the
output of the show vlan custom command and the show vlans custom command
produces an error, the error message may not be visible and the output is
empty. For example, if you enter a command that produces an error (vlan is
misspelled) with the pattern matching include option:
HP Switch(config)# show vlans custom 1-3 name vlun |
include vlan1
the output may be empty. It is advisable to try the show vlans custom command
first to ensure there is output, and then enter the command again with the
pattern matching option.
HP Switch(config)# alias showvlanstatus = “show vlan custom A1-A3 id name:20
status”
HP Switch(config)# showvlanstatus
Status and Counters - VLAN Information - Custom view
VLANID VLAN name Status
------ -------------------- ----------
1 DEFAULT_VLAN Port-based
33 Vlan33 Port-based