Go to main content

Configuring and Managing Network Components in Oracle® Solaris 11.4

Exit Print View

Updated: September 2020

Setting Property Values for an ENM by Using the walkprop Subcommand

You use the walkprop subcommand to interactively view and change individual property values for an ENM. After initiating the interactive session, type the walkprop subcommand to display the name and current value for each of the properties of an ENM, one property at a time. As you view the various properties, you can set or change the current or default value, as desired.

Note -  The walkprop subcommand is meant to be used in the interactive mode only.

How to Use the walkprop Subcommand to View and Set Property Values for an ENM

The following procedure describes how to use the walkprop subcommand to interactively view and change property values for a given ENM. As shown in the following examples, when you use the walkprop subcommand to set the properties of an ENM, you do not have to use the set subcommand.

Before You Begin

Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.

  1. Initiate the netcfg interactive session.
    $ netcfg
  2. Select the ENM for which you want to view and change properties.

    In the following example, an ENM named test-enm is selected:

    netcfg> select test-enm
  3. Type the walkprop subcommand to start the walk.

    In the following example, after the walkprop subcommand is issued, the first property that is displayed is the activation-mode property. Note the default value of the property, which is currently set to manual (shown in parentheses).

    netcfg:enm:test-enm> walkprop
    activation-mode (manual) [manual|conditional-any|conditional-all]>
  4. To change a property's value, type the new value at interactive prompt, then press Return.

    For example, you would change the activation-mode property for an ENM from manual to conditional-all as follows:

    netcfg:enm:test-enm> walkprop
    activation-mode (manual) [manual|conditional-any|conditional-all]> conditional-all

    Pressing Return saves the current setting and displays or "walks" the next property.

  5. Repeat the walk process until all of the properties for the profile have been displayed, making modifications as needed, per the instructions in Step 4.
    netcfg:enm:test-enm> walkprop
    activation-mode (manual) [manual|conditional-any|conditional-all]> conditional-all
    conditions> advertised-domain is example.com
    fmri ("svc:/application/test-enm:default")>

    Pressing Return without making any changes retains the existing default value for the property and then advances the walk to the next property.

    Note -  Only the relevant properties for a given ENM are displayed, as described in Configuring ENMs Interactively.
  6. List the current default property values for the ENM as follows:
    netcfg:enm:test-enm> list
            activation-mode         conditional-all
            conditions              "advertised-domain is example.com"
            enabled                 false
            fmri                    "svc:/application/test-enm:default"

    Note that in the previous output, the activation-mode property is now set to conditional-all.

  7. Exit the interactive session to commit the changes.
    netcfg:enm:test-enm> exit
    Committed changes