Go to main content

Configuring and Managing Network Components in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017
 
 

Removing Profiles

Use the destroy subcommand to remove user-defined profiles and configuration objects such as NCUs. You cannot remove system-defined profiles, which include the following: the Automatic and DefaultFixed NCPs and the Automatic, NoNet, and DefaultFixed Locations. Note also that you cannot remove a profile that is currently active. You must first disable the profile, and then remove it.

The syntax for the destroy subcommand is as follows:

netcfg> destroy [ -a | object-type [ class ] object-name]

The –a option removes all of the user-defined profiles from the system, except for any currently active user-defined profiles.

How to Remove a Profile Interactively

The following procedure describes how to remove a user-defined profile interactively. For example purposes only, this procedure shows how to remove an IP NCU from the myncp user-defined NCP.

  1. Initiate the netcfg interactive session.
    $ netcfg
    netcfg>
  2. Select the profile.

    For example, to select the myncp NCP, you would type the following command:

    netcfg> select ncp myncp
    netcfg:ncp:myncp>
    
  3. Remove the profile or configuration object.

    In the following example, the net1 IP NCU is removed from the myncp NCP:

    netcfg:ncp:myncp> destroy ncu ip net1
    netcfg:ncp:myncp>
    
  4. Exit the interactive session. For example:
    netcfg:ncp:myncp> exit
Example 28  Removing a Profile in Command-Line Mode

The previous example that shows how to interactively remove a profile can also be performed in command-line mode as follows:

$ netcfg "select ncp myncp; destroy ncu ip net1"