Monitor: Other Commands
10007175-02 KAT4000 User’s Manual
14-27
switch_reg
The switch_reg command reads or writes to the Ethernet core switch or fat pipe Ethernet
switch registers. The values changed via this command are not persistent and clear after a
hard or soft reset. Option values are as follows: switch (core or fp), port (0 - 25), block (1-7),
and sub-block (0-15). “R” reads the register contents at the address specified. “W” writes
the address value to the register address specified.
Definition:
switch_reg [switch] [port op | block sub-block op [R|W]] (address) (value)
Example: The following is an example of a read of register address 0x1a.
switch_reg core 0 r 0x1a
The following is an example of a write to register address 0x1a where 0 is the data to write.
switch_reg core 0 w 0x1a 0
version
The version command displays the monitor’s current version number.
Definition:
version
vlan
The vlan command creates one or more new VLANs using vid as the VLAN identification
(VID) value and deletes one or more existing VLANs whose VLAN ID matches the VLAN ID
value vid. These variables are set using a comma-separated list of port names. This com-
mand sets an untagged port-based VLAN and the VLAN table entry with the port’s default
VID. In this configuration, each port is assigned to one VLAN.
Definition:
vlan add [core|fp] <vid1>=portlist1> <vid2>=<portlist2>…
vlan delete [core|fp] <vid1> <vid2>…
vlan show [core|fp]
Example: To create VLAN 1 on the core switch:
vlan add core 1=14,15
To create VLANs 2-3 on the fat pipe switch:
vlan add fp 2=18,17,0,3,19,22,6 3=21,17,1,4,20,23,10
To delete VLAN 1 on the core switch:
vlan delete core 1
To delete VLANs 2-3 on the fat pipe switch:
vlan delete fp 2 3
To delete all VLANs on the fat pipe switch:
vlan delete fp all