In command-line mode, any netcfg subcommand that affects a selected ENM or property must be performed within the particular scope in which the selected ENM or property exists. Selecting an ENM in command-line mode is the same as selecting an ENM in the interactive mode. The only difference is that in command-line mode all of the subcommands are written on the command-line.
For example, to list an ENM's configuration, you would first select it and then use the list subcommand to display the properties for that ENM:
$ netcfg "select myenm; list" enm:myenm activation-mode manual enabled false start "/var/tmp/start_myenm"
Refer to the following guidelines when using the netcfg command in command-line mode:
Separate each subcommand by a semi-colon.
Specify the select subcommand from the global scope to move to the profile scope of the ENM.
Specify the list subcommand from the profile scope to list the properties that are within that scope.
Use straight quotation marks to prevent the shell from interpreting the semi-colons.
You can use any of the netcfg subcommands in command-line mode, except for the walkprop subcommand.