Brocade Zoning using the CLI

Because Java sucks, something your brocade GUI becomes ineffective.

For instance HBA1 (B1) and HBA2 (B2) are

Pcatt-esx02_hba1 is 20:01:F8:BC:12:D2:CE:29

Pcatt-esx02_hba2 is 20:02:F8:BC:12:D2:CE:29

Login to the first fabric.

Use alishow to display the already created alias.

Use zoneshow to show the already created zones.

Use copy/paste to avoid typos

Create an alias for the server HBA

PCATT-BLD2BRC1:root> alicreate “pcattesx02_hba1”, “20:01:F8:BC:12:D2:CE:29”

Create the new zone for the server and VNX SPA

Pcattesx02_A1 is the name of the new zone

PCATT-BLD2BRC1:root> zonecreate “pcattesx02_A1″,”pcattesx02_hba1;EMCVNX_SPA1”

Find the configuration name with cfgshow

PCATT-BLD2BRC1:root> cfgshow

Defined configuration:

cfg:   FABRIC_A

CAS2115_A1; Poseidon_A1; PTBTTGOHV_A1; TBS2155_A1

[…]

Here the config name is FABRIC_A

Add the new zone to the existing configuration

PCATT-BLD2BRC1:root> cfgadd “FABRIC_A”,”pcattesx02_A1″

Save the config and enable it.

PCATT-BLD2BRC1:root> cfgsave

WARNING!!!

The changes you are attempting to save will render the

Effective configuration and the Defined configuration

inconsistent. The inconsistency will result in different

Effective Zoning configurations for switches in the fabric if

a zone merge or HA failover happens. To avoid inconsistency

it is recommended to commit the configurations using the

‘cfgenable’ command.

Do you want to proceed with saving the Defined

zoning configuration only? (yes, y, no, n): [no] y

Updating flash …

PCATT-BLD2BRC1:root> cfgenable “FABRIC_A”

You are about to enable a new zoning configuration.

This action will replace the old zoning configuration with the

current configuration selected. If the update includes changes

to one or more traffic isolation zones, the update may result in

localized disruption to traffic on ports associated with

the traffic isolation zone changes

Do you want to enable ‘FABRIC_A’ configuration (yes, y, no, n): [no] y

zone config “FABRIC_A” is in effect

Updating flash …

PCATT-BLD2BRC1:root>

Do the same for the other fabric

PCATT-BLD2BRC2:root> alishow

Defined configuration:

cfg:   FABRIC_B

CAS2115_B2; Poseidon_B2; PTBTTGOHV_B2; TBS2155_B2

zone: CAS2115_B2

CAS2115_HBA2; EMCVNX_SPB2

zone: PTBTTGOHV_B2

EMCVNX_SPB2; PTBTTGOHV_HBA2

zone: Poseidon_B2

EMCVNX_SPB2; Poseidon_HBA2

zone: TBS2155_B2

EMCVNX_SPB2; TBS2155_HBA2

alias: CAS2115_HBA2

20:00:f8:bc:12:d2:cd:f5

alias: EMCVNX_SPB2

50:06:01:60:88:60:2f:d1

alias: PTBTTGOHV_HBA2

20:00:f8:bc:12:d2:ce:02

alias: Poseidon_HBA2

20:02:f8:bc:12:d2:ce:0f

alias: TBS2155_HBA2

20:00:f8:bc:12:d2:ce:1c

Effective configuration:

cfg:   FABRIC_B

zone: CAS2115_B2

20:00:f8:bc:12:d2:cd:f5

50:06:01:60:88:60:2f:d1

zone: PTBTTGOHV_B2

50:06:01:60:88:60:2f:d1

20:00:f8:bc:12:d2:ce:02

zone: Poseidon_B2

50:06:01:60:88:60:2f:d1

20:02:f8:bc:12:d2:ce:0f

zone: TBS2155_B2

50:06:01:60:88:60:2f:d1

20:00:f8:bc:12:d2:ce:1c

PCATT-BLD2BRC2:root> alicreate “pcattesx02_hba2″,”20:02:F8:BC:12:D2:CE:29”

PCATT-BLD2BRC2:root> zonecreate “pcattesx02_B2″,”pcattesx02_hba2;EMCVNX_SPB2”

PCATT-BLD2BRC2:root> alishow

Defined configuration:

cfg:   FABRIC_B

CAS2115_B2; Poseidon_B2; PTBTTGOHV_B2; TBS2155_B2

zone: CAS2115_B2

CAS2115_HBA2; EMCVNX_SPB2

zone: PTBTTGOHV_B2

EMCVNX_SPB2; PTBTTGOHV_HBA2

zone: Poseidon_B2

EMCVNX_SPB2; Poseidon_HBA2

zone: TBS2155_B2

EMCVNX_SPB2; TBS2155_HBA2

zone: pcattesx02_B2

pcattesx02_hba2; EMCVNX_SPB2

alias: CAS2115_HBA2

20:00:f8:bc:12:d2:cd:f5

alias: EMCVNX_SPB2

50:06:01:60:88:60:2f:d1

alias: PTBTTGOHV_HBA2

20:00:f8:bc:12:d2:ce:02

alias: Poseidon_HBA2

20:02:f8:bc:12:d2:ce:0f

alias: TBS2155_HBA2

20:00:f8:bc:12:d2:ce:1c

alias: pcattesx02_hba2

20:02:f8:bc:12:d2:ce:29

Effective configuration:

cfg:   FABRIC_B

zone: CAS2115_B2

20:00:f8:bc:12:d2:cd:f5

50:06:01:60:88:60:2f:d1

zone: PTBTTGOHV_B2

50:06:01:60:88:60:2f:d1

20:00:f8:bc:12:d2:ce:02

zone: Poseidon_B2

50:06:01:60:88:60:2f:d1

20:02:f8:bc:12:d2:ce:0f

zone: TBS2155_B2

50:06:01:60:88:60:2f:d1

20:00:f8:bc:12:d2:ce:1c

PCATT-BLD2BRC2:root> cfgadd “FABRIC_B”,”pcattesx02_B2″

PCATT-BLD2BRC2:root> cfgsave

WARNING!!!

The changes you are attempting to save will render the

Effective configuration and the Defined configuration

inconsistent. The inconsistency will result in different

Effective Zoning configurations for switches in the fabric if

a zone merge or HA failover happens. To avoid inconsistency

it is recommended to commit the configurations using the

‘cfgenable’ command.

Do you want to proceed with saving the Defined

zoning configuration only? (yes, y, no, n): [no] y

Updating flash …

PCATT-BLD2BRC2:root> cfgenable “FABRIC_B”

You are about to enable a new zoning configuration.

This action will replace the old zoning configuration with the

current configuration selected. If the update includes changes

to one or more traffic isolation zones, the update may result in

localized disruption to traffic on ports associated with

the traffic isolation zone changes

Do you want to enable ‘FABRIC_B’ configuration (yes, y, no, n): [no] y

zone config “FABRIC_B” is in effect

Updating flash …

PCATT-BLD2BRC2:root>

Advertisements