> # Copying the Port Security Database

> ## Detailed Steps

> Tip We recommend that you copy the active database to the configuration database after disabling auto-learning. This action ensures that the configuration database is in sync with the active database. If distribution is enabled, this command creates a temporary copy (and consequently a fabric lock) of the configuration database. If you lock the fabric, you need to commit the changes to the configuration databases in all the switches.

> To copy the active database to the configuration database, follow these steps:

> 1. Expand a Fabric, expand a VSAN, and then select Port Security in the Logical Domains pane.
> 2. Click the Actions tab. You see all the configuration databases.
> 3. Select the appropriate configuration database and check the Copy Active to Config check box.
> 4. Click the Apply Changes icon to save your changes.

> To view the differences between the active database and the configuration database, follow these steps:

> ## Detailed Steps

> 1. Expand a Fabric, expand a VSAN, and then select Port Security in the Logical Domains pane.

> You see the Port Security information in the Information pane.

> 2. Click the Database Differences tab. You see all the configuration databases.
> 3. Select the appropriate configuration database. Select the Active or Config option to compare the differences between the selected database and the active or configuration database.
> 4. Click the Apply Changes icon to save your changes.

> Copyright 2010-2015, Cisco Systems, Inc. All rights reserved.