Road to VCAP6-NV: Objective 5.1 – Backup and Restore Network Configurations

VMwareNSX
In this blog post I will cover section 5 objective 5.1 of the VCAP6-NV Deploy exam.

Objective 5.1 – Backup and Restore Network Configurations

Skills and Abilities

  • Schedule/Backup/Restore NSX Manager data
  • Export/Restore vSphere Distributed Switch configuration
  • Export/Import Service Composer profiles
  • Save/Export/Import/Load Distributed Firewall configurations

 

Schedule/Backup/Restore NSX Manager data

Having backups of your NSX environment is highly recommended in case you ever need to restore your config back to a working state in the event of a failure. A NSX backup will contain all of the NSX configuration, including controllers, logical switches, logical routers, firewall rules and other things that were configured within NSX. It is also good to have the vCenter database and distributed switch configs backed up so that you have a complete recovery point.

To begin setting up the backup, log in to the NSX Manager.

backup01

Click Backup & Restore.

backup02

Under Backups & Restore, next to FTP Server Settings, click Change.

backup03

Enter in the FTP server settings. Click OK.

backup04

Now you should see your FTP Server settings saved. Click Backup under the Backup History section

backup05

Click Start to begin the backup

backup06

Once the backup is complete, you will see the file name and date under Backup History.

backup07

Now I just go and check my FTP server and the files are there.

backup08

To schedule a NSX backup, simply click Change next Scheduling and adjust your backup schedule

backup09

To restore a backup, click on the backup file that you want to restore to and click Restore under the Backup History section. Click Yes to begin the restore.

backup10

Export/Restore vSphere Distributed Switch configuration

Navigate to the vSphere Web Client, and under the Networking view, select your distributed switch. Right click the switch and go to Settings > Export Configuration.

backup11

Select if you want to export the distributed switch and all port groups or just the distributed switch only. Click OK.

backup12

Click Yes to confirm the export

backup13

 

To restore a distributed switch config, under the Networking view, select your distributed switch. Right click the switch and go to Settings > Restore Configuration.

backup14

Then simply browse to the distributed switch backup file that you want to restore. Click Next and Finish.

Export/Import Service Composer profiles

You can export Service Composer profiles to restore security configurations from one NSX manager to another. To export a Service Composer profile, navigate to Networking & Security > Service Composer > Security Policies. Right click on a security policy and click Export Configuration.

backup15

Give the export a name. Click Next.

backup16

Select the security policies. Click Next.

backup17

Click Finish

backup18

The file can now be saved on your PC.

To import a service composer profile, navigate to Networking & Security > Service Composer > Security Policies. Click the Import Configuration icon icon . Browse to and select the .blueprint file. Click Next.

backup19

This page gives you a summary of what will be imported. Click Finish.

backup20

Save/Export/Import/Load Distributed Firewall configurations

Whenever you make a change to the distributed firewall, the config is auto saved. You can then export the auto saved files to use later. To export a distributed firewall config navigate to Networking & Security > Firewall > Saved Configurations. Select a autosaved config and click the export configuration icon icon01

backup21

To import a distributed firewall config, click the import configuration iconicon03. Browse to and select the config that you want to import. Click OK to import the config.

backup22

To load a config that you’ve imported and make it active, go under the Configuration tab for the distributed firewall and click the load saved configuration icon icon04. Select the config that you want to load and click Load.

backup23

Click Yes

backup24

Publish Changes

backup25

 

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s