Go to main content

Configuring and Managing Network Components in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017

Working in the netcfg Command-File Mode

In command-file mode, profile configuration information and commands are extracted from a file. The commands in the file are same as those that are used in the interactive mode and by the export subcommand. The export subcommand with the –f option is used to produce the file. For example, the following command exports the current profile configuration to a file:

$ netcfg export -f /tmp/nwam.config

To import a profile configuration from a file, type the following command:

$ netcfg -f /tmp/nwam.config

The export subcommand can also be used interactively. For more information, see Exporting a Profile Configuration.