_____________________________________________________________________
724-746-5500 | b lackb o x.co m
Page 167
-v –verbose
Log extra debug information.
-d –del=id
Remove the given configuration element specified by a '.' separated
identifier.
-g –get=id
Display the value of a configuration element.
-p –path=file
Specify an alternate configuration file to use. The default file is located
at
/etc/config/config.xml.
-r –run=configurator
Run the specified registered configurator. Registered configurators are
listed below.
-s --set=id=value
Change the value of configuration element specified by a '.' separated
identifier.
-e --export=file
Save active configuration to file.
-i --import=file
Load configuration from file.
-t --test-import=file
Pretend to load configuration from file.
-S --separator=char
The pattern to separate fields with, default is '.'
-P --password=id
Prompt user for a value. Hash the value, then save it in id.
The registered configurators are:
alerts
auth
cascade
console
dhcp
dialin
eventlog
hosts
ipaccess
ipconfig
nagios
power
serialconfig
services
slave
systemsettings
time
ups
users
There are three ways to delete a config element value. The simplest way is use the
delete-node
script
detailed later in Chapter 15. You can also assign the config element to "", or delete the entire config
node using
-d
:
# /bin/config -d 'element name'
All passwords are saved in plaintext
except
the user passwords and the system passwords, which are
encrypted.