setconf operation
The setconf operation can be used to:
- Change the value of a field found in a particular section of a configuration file,
- As of version SNS 3.10.1: add a full line to a section of a configuration file.
When a comma is needed in any of the parameters in the command, the value of the parameter must be enclosed in quotation marks.
Setting the value of a field
Format
"serial | any", setconf, "file", "section", "field", "value"
EXAMPLES
any, setconf, network, ethernet0, Protected, 0
any, setconf, object, Host, gateway, "192.168.0.254, resolve=static"
any, setconf, Bird/global, bird, state, 1
Adding a full line (as of SNS version 3.10.1)
Format
"serial | any", setconf, "file", "section", "line"
EXAMPLE
any, setconf, route, StaticRoutes, "MyNetworkObject,my-if->MyGW"