Configuring and Administering Network Components in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Creating ENMs

ENMs enable you to specify when applications or scripts such as a VPN application, should perform network configuration that is separate (external) from the configuration that is specified in the NCP and Location profiles. For more information about ENMs, see Description of an ENM.


Note -  The system does not automatically recognize an application for which you might create an ENM. These applications must first be installed and then configured on the system before creating an ENM for them by using the netcfg command.

For more information about properties that you might specify when creating an ENM, see the netcfg(1M) man page.

How to Create an ENM Interactively

  1. Initiate the netcfg interactive session.
    $ netcfg
    netcfg>
  2. Create the ENM.
    netcfg> create enm test-enm
    Created enm 'test-enm'.  Walking properties ...
    activation-mode (manual) [manual|conditional-any|conditional-all]>
    fmri> svc:/application/test-enm:default
    start>
    stop>
    netcfg:enm:test-enm>

    Creating the ENM automatically moves you into the profile scope for the ENM and walks each of its properties.

      In this example, the following properties are specified for the test-enm ENM:

    • The activation-mode property, which is set to manual, is accepted by pressing Return. Because this value is set to manual, the conditions property is not made available for setting.

    • The fmri property is set to svc:/application/test-enm:default.

    • The start and stop properties are not set for this ENM.

  3. (Optional) Display the profile configuration.
    netcfg:enm:test-enm> list
    enm:test-enm
    	activation-mode	manual
    	enabled			false
    	fmri			   "svc:/application/test-enm:default"
    
  4. Verify that the profile configuration is correct.
    netcfg:enm:test-enm> verify
    All properties verified

    The verify subcommand verifies the configuration and notifies you if any required values are missing.

  5. Save the ENM.
    netcfg:enm:test-enm> commit
    Committed changes
    netcfg>

    The commit subcommand verifies and saves the configuration.

    Alternatively, you can use the end subcommand to end the session, which also saves the profile configuration.

    netcfg:enm:test-enm> end
    Committed changes
  6. Exit the interactive session.
    netcfg> exit