Go to main content

Configuring and Managing Network Components in Oracle® Solaris 11.4

Exit Print View

Updated: February 2022
 
 

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 specifying the export subcommand. The export subcommand when specified with the –f option, produces 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

You can also use the export subcommand interactively. For more information, see Exporting an ENM Configuration.