Go to main content

Configuring an Oracle® Solaris 11.3 System as a Router or a Load Balancer

Exit Print View

Updated: December 2018
 
 

Importing and Exporting Configurations

The export and import subcommands are used to move a configuration from one system to another. For example, if you want to set up a back up of ILB using VRRP to have a active-passive configuration, you can just export the configuration to a file and the import it in the back up system. The ilbadm export command exports the current ILB configuration to a user-specified file. This information can then be used as input for the ilbadm import command.

The ilbadm import command deletes the existing configuration before importing unless specifically instructed to retain it. Omission of a file name instructs the command to read from stdin or write to stdout.

To export an ILB configuration, use the export-config command. The following example exports the current configuration into the file /var/tmp/ilb_config in a format suitable for importing by using the import command.

# ilbadm export-config /var/tmp/ilb_config

To import an ILB configuration, use the import-config command. The following example reads the contents of the file /var/tmp/ilb_config and overrides the existing configuration.

# ilbadm import-config /var/tmp/ilb_config