HP StorageWorks Fabric OS 5.3.x administrator guide (5697-0244, November 2009)

Fabric OS 5.3.0 administrator guide 159
Understanding the AD transaction model
This section summarizes the ad command. This command follows a batched-transaction model, which
means that changes to the Admin Domain configuration occur in the transaction buffer.
An Admin Domain configuration can exist in several places:
Effective configuration—The Admin Domain configuration that is currently in effect.
Defined configuration—The Admin Domain configuration that is saved in flash memory. There
might be differences between the effective configuration and the defined configuration.
Transaction buffer—The Admin Domain configuration that is in the current transaction buffer and
has not yet been saved or canceled.
How you end the transaction determines the disposition of the Admin Domain configuration in the
transaction buffer. The following commands end the Admin Domain transaction:
ad --save
Saves the changes in the transaction buffer to the defined configuration in persistent storage and
propagates the defined configuration to all switches in the fabric. Note that for delete and clear
operations, if one or more of the deleted Admin Domains are in the effective configuration, you cannot use
--save, but must use --apply instead.
ad --apply
Saves the changes to the defined configuration in persistent storage and enforces the defined configuration
on all switches in the fabric, replacing the effective configuration.
ad --transabort
Aborts the transaction and clears the transaction buffer. The effective and defined configurations remain
unchanged.
You can enter the ad --transshow command at any time to display the ID of the current Admin Domain
transaction.
Detailed information about CLI syntax and options is available in the Fabric OS Command Reference
Manual.
Implementing admin domains
To begin implementing an Admin Domain structure within your SAN, you must first set the default zone
mode to No Access. You must be in AD0 to change the default zone mode. You can use the defZone
--show command to see the current default zone mode setting.
How to set the default zone mode
1. Log in to an AD-aware switch in the fabric with the appropriate RBAC role.
2. Ensure you are in the AD0 context.
Use the ad --show command to determine the current Admin Domain and the ad --select 0
command to switch to the AD0 context, if necessary.
3. Enter the defZone --noAccess command, and respond to the prompt with a y.
4. Enter the cfgSave command.
sw5:admin> defzone --noaccess
You are about to set the Default Zone access mode to No Access
Do you want to set the Default Zone access mode to No Access ? (yes, y, no, n):
[no] y
sw5:admin> cfgsave
You are about to save the Defined zoning configuration. This
action will only save the changes on Defined configuration.
Any changes made on the Effective configuration will not
take effect until it is re-enabled.
Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] y
Updating flash ...
sw5:admin>