Customizing the show VLANs output

Syntax

show vlans custom [port port-list] column-list

Specifies the order you want information to display for the show vlans command. Displays information for one port or a range of ports. If port-list is not specified, all ports display.

Fields that can be included in the customized display:

Field Display Example Default width
id VLAN id 5 6
name VLAN name Vlan55 32
status Status Port-based 10
voice Voice enabled No 5
jumbo Jumbos enabled No 5
ipconfig How the IP address was configured

Manual

Disabled

DHCP/BootP

10

ipaddr (IPv4)

ipaddr (IPv6)

The IP addresses

10.10.10.3

fe80::212:79ff:fe8d:8000

15 for IPv4

46 for IPv6

ipmask The subnet masks

255.255.255.6

/64 (prefix for IPv6 is in format "/XX")

15
proxyarp Whether proxy ARP is configured No 5
localproxyarp Whether local proxy ARP is configured No 9
state "Up" if at least one port is up Up 5

Customizing the VLAN display

Displays id at its default width, and name:20 allows up to 20 characters of the VLAN name to be displayed. The columns selected for display are separated by spaces.

If the width of the column requested is smaller than the header name of the column, the display of the header name is truncated.

HP Switch(config)#: show vlan custom A1-A3 id name:20 ipaddr state

Status and Counters - VLAN Information - Custom view

VLANID VLAN name            IP Addr                            State
------ -------------------- ---------------------------------  -----
1      DEFAULT_VLAN         15.255.134.74                      Up
33     Vlan33               10.10.10.01                        Up
44     Vlan44               15.255.164.13                      Up
55     Vlan55               15.255.178.2                       Down
                            15.255.178.3
                            15.255.178.4
60     Vlan60               fe80::212:79ff:fe8d:8000%vlan60    Up

Wrapping column headers

The total output wraps if it is longer than the terminal width; it is not truncated.

HP Switch(config)#: show vlan custom id
Status and Counters - VLAN Information - Custom view

 VLANID
 ------
 1
 33
 44

HP Switch(config)#: show vlan custom id:2
Status and Counters - VLAN Information - Custom view

 VL
 --
 1
 33
 44