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.
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.
$ netcfg netcfg>
In the following example, an ENM named test-enm is selected:
netcfg> select test-enm netcfg:enm:test-enm>
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]>
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.
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")> start> stop>
Pressing Return without making any changes retains the existing default value for the property and then advances the walk to the next property.
netcfg:enm:test-enm> list enm:test-enm 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.
netcfg:enm:test-enm> exit Committed changes