SAN Zone Alias Generator for Brocade and Cisco

This SAN zone alias generator turns a list of WWPNs into the commands that create aliases on a Brocade or Cisco MDS switch. Paste one device per line, with an optional name, and choose a naming template. The tool normalizes every WWPN, checks names and duplicates and prints the script, so a spreadsheet becomes reviewed commands in a minute, with a warning for every typo and duplicate it finds on the way.

Result

The result updates automatically as you change any input.

Formula and worked steps
Formulas used
  • Brocade: alicreate "name", "wwpn"
  • Cisco MDS: device-alias database / device-alias name NAME pwwn WWPN / device-alias commit
Assumptions
  • WWPNs must be 16 hex digits; any common separator format is accepted and normalised to lowercase colon form.
  • Names are cleaned to letters, digits and underscore; names must start with a letter and be at most 64 characters.
  • Review commands before running them on a production fabric.
References

Need DNS hostnames rather than SAN aliases? The hostname naming convention generator generates and validates RFC 1123 hostnames.

What is a zone alias?

A zone alias is a name attached to a WWPN. Zones and zonesets then refer to the name, which means a person reading a zone sees esx01_hba0 and arr1_p0 and not two 16-digit hex strings. If a host’s HBA is replaced, you change one alias and not every zone it appears in.

Brocade aliases

On Brocade Fabric OS an alias is created with alicreate, giving a name and one or more WWPNs, and is then used as a member in zonecreate. Aliases live in the defined configuration and become active when you save and enable it.

Cisco device-aliases

On Cisco MDS switches, device-aliases are created in a device-alias database and committed with device-alias commit. They are fabric-wide, so one name works in every VSAN, and zones can reference them with member device-alias.

Names

Both platforms limit alias names. A safe subset that works everywhere is letters, digits and underscore, starting with a letter and no longer than 64 characters. The tool cleans names to that subset.

How the SAN zone alias generator works

Each line holds an optional name and a WWPN, in any common format. A line with only a WWPN gets a generated name from the role you choose and its position in the list. The name template shapes the final alias.

Tokens

The template accepts {name}, {n} and {role}. {name} is the name from the line, or the generated name. {n} is the position among valid lines, and {role} is the role you select: host, array, tape or none. A template of {role}_{name} turns esx01_hba0 into host_esx01_hba0.

Worked example

Four lines go in: esx01_hba0 and esx01_hba1 with their WWPNs, and two array ports with no names. The unnamed lines get generated names from their position, such as dev3 and dev4, or array3 and array4 if the role is array. The Brocade output is a set of lines like alicreate “esx01_hba0”, “21:00:00:24:ff:00:00:01”. For Cisco the same list becomes device-alias database, one device-alias name esx01_hba0 pwwn 21:00:00:24:ff:00:00:01 line per entry, and device-alias commit.

Normalization

Input can be colon-separated, dash-separated, plain or 0x-prefixed. The output always uses lowercase colon pairs, which is the form both switch families print. A WWPN with the wrong number of digits is reported by line and skipped, so the other lines still produce commands.

Using the aliases in zones

Once the aliases exist, zones refer to them by name. On Brocade, a zone is created with zonecreate and a list of alias names, then added to a configuration that is saved and enabled. On Cisco MDS, a zone lists member device-alias entries and belongs to a zoneset that you activate in a VSAN. The zoning generator writes those commands from the same lists, so the names line up.

Working from a spreadsheet

Most teams keep WWPNs in a spreadsheet. Copy the name column and the WWPN column together and paste them, since a tab or space between name and WWPN is understood. Blank lines are ignored. Any text before or after the WWPN on a line is used as the name, so keep each line to a name and a WWPN.

Checks

The tool warns about duplicate alias names, duplicate WWPNs, names that do not start with a letter, names that contain unsafe characters and names over 64 characters. If every line is invalid, it shows the problems and no script.

Why it matters for SAN and storage admins

Aliases are the layer where mistakes hide. A zone built on raw WWPNs is correct but unreadable, and one built on aliases is readable but only as correct as the alias list. Generating the aliases from a single validated list removes retyping, which is where transposed digits and inconsistent names come from.

It also makes onboarding repeatable. When a rack of new hosts arrives, the alias step becomes paste, review, run. The same list can then feed the zoning generator, so alias and zone names agree.

Use it when you:

  • Add new hosts or array ports to a fabric.
  • Rebuild aliases after a migration.
  • Standardize names across sites.
  • Hand a reviewer a script that matches a source list.

Best practices and common mistakes

  • Start from the device’s own report of its WWPNs, not from memory.
  • Use a consistent pattern such as host_hba or array_port, and put it in your runbook.
  • Keep one alias per WWPN. A second name for the same port creates confusion.
  • Check the duplicate warnings before running anything.
  • Review the script, run it in a maintenance window and keep a copy.
  • Remember that aliases do nothing until they are used in zones and the configuration is active.

A frequent mistake is to alias a WWNN, the node name, when the zone needs the WWPN, the port name. They look alike, so the validator is worth running first.

FAQs

What is a zone alias?

A readable name for a WWPN, so zones list esx01_hba0 or arr1_p0 instead of a 16-digit number. It makes zones easier to read and review.

What is the Brocade command to create an alias?

alicreate “name”, “wwpn”, for example alicreate “esx01_hba0”, “21:00:00:24:ff:00:00:01”. Add the alias to a zone, then save and enable the configuration.

How do Cisco MDS device-aliases differ?

They are created inside a device-alias database block with device-alias name NAME pwwn WWPN, and take effect when you run device-alias commit. They apply fabric-wide, across VSANs.

Next, try the SAN zoning naming convention generator, the WWN format validator and the SAN fan-out ratio calculator, or browse the full list of storage calculators. For DNS hostnames instead of SAN aliases, use the hostname naming convention generator.