SETCONF

Description

Write a section value to a configuration file. This command is generally called from scripts.

Command

setconf <file> <section> [<token>] <value> [<comment>]
	Adds <token>=<value> to <section> in configuration file <file>	If <token> is not set, the section is appended with <value>	<comment> is only available if <token> is set.
setconf 
-n, --no-protect <file> <section> <value> Sets <section> to <value> in configuration file <file> without protecting with \"\" setconf
-d, --delete [--no-value] <file> <section> [<token> [<value>]] Removes section <section> from configuration file <file> If --no-value is set, no <value> should be provided and the sections tokens will be handled as token without value If <token> is set, removes only the token from <section> If <value> is set, check token value before removing

Results

Example

SN520A02K0048A7>setconf /usr/Firewall/ConfigFiles/network Ethernet1 Address 10.x.x.x
SN520A02K0048A7>