Use the list subcommand to list all ENMs, property-value pairs, and resources that exist at the current or specified scope, either interactively or in command-line mode.
In the global scope, the list subcommand lists all of the ENMs on a system, as shown in the following example:
$ netcfg list ENMs: test-enm myenm
Note that the list subcommand does not list the state of each ENM. To display information about ENMs and their states, use the netadm list command. For more information, see Displaying Information About ENMs.
The list subcommand in the profile scope lists all of the property values for an ENM. The syntax is as follows:
netcfg> list [enm-name]
The following procedure describes how to list all of the property values for an ENM by using the list subcommand interactively. The example in the following procedure shows how to list the configuration information for an ENM named myenm.The values that are listed for each ENM vary.
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>
netcfg> list myenm enm:myenm activation-mode manual enabled false start "/path/to/start-script"
netcfg> select myenm netcfg:enm:myenm> list enm:myenm activation-mode manual enabled false start "/path/to/start-script"
netcfg:enm:myenm> exit
You can also list property values for an ENM by using the command-line mode. The output is identical, regardless of which mode you use.
For example, you can list the properties of the ENM named myenm from the global scope as follows:
$ netcfg "list myenm"
You can list the properties for an ENM from the ENM's profile scope as follows:
$ netcfg "select myenm; list"
Use the get subcommand to obtain a specific property value for an ENM. You can use this subcommand either interactively or in command-line mode. The command syntax is as follows:
netcfg:enm:enm-name> get [ -V ] prop-name
The following procedure describes how to obtain a specific property value for an ENM by using the get subcommand interactively. The example in the following procedure shows how to obtain the start property for an ENM named myenm.
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>
netcfg> select myenm
netcfg:enm:myenm> get start start "/path/to/start-script"
netcfg:enm:myenm> get -V start /path/to/start-script
netcfg:enm:myenm> exit
You can also obtain a specific property value for an ENM in command-line mode. The output is identical, regardless of which mode you use.
For example, you can obtain the value of the start property for an ENM (myenm) in command-line mode as follows:
$ netcfg "select myenm; get start" start "/path/to/start-script"
The following example shows how to use the get subcommand with the –V option to obtain a specific property value. This method is useful for scripts, where the property name does not need to be parsed.
$ netcfg "select myenm; get -V start" /path/to/start-script