CDB Maintenance
A local copy of the ConfD Configuration Database (CDB) is managed by ConfD on StarOS.
You can show and save all ConfD supported StarOS configuration commands to a URL. The
confd
keyword
has been added to the
show configuration
and
save configuration
commands for these purposes.
After saving a ConfD-supported configuration to a URL, you can apply it directly to the CDB via the Exec
mode
configure confd <url>
command. This command applies the contents of the file at the
url
to the running
configuration of ConfD.
Additional detail regarding the above commands is provided below.
clear confdmgr confd cdb
This Exec mode command erases the configuration in the ConfD Configuration Database (CDB) which is
used by ConfD to store configuration objects. StarOS accesses the database via ConfD-supplied APIs.
The CDB cannot be erased unless the Context Configuration mode
no server confd
command is run in
the local context to disable ConfD and NETCONF protocol support.
Note
The following is a sample command sequence for clearing the CDB:
[local]
host_name
#
config
[local]
host_name
(config)#
context local
[local]host_name(config-ctx)#
no server confd
[local
host_name
(config-ctx)#
end
[local]
host_name
#
clear confdmgr confd cdb
About to delete the ConfD configuration database
The running configuration is NOT affected.
Are you sure? [Yes|No]:
y
[local]
host_name
#
Clearing the CDB is a terminal operation. The CDB must be repopulated afterwards.
Caution
configure confd <url>
This Exec mode command applies the contents of the configuration script specified by the URL to the current
ConfD configuration database (CDB).
A sample command sequence is provided below.
[local]
host_name
#
save configuration /flash/confd.config confd
[local]
host_name
#
configure confd /flash/confd.config
Info: #!$$ StarOS V20.2 Chassis 52767e9ff9e207bed12c76f7f8a5352c
Info: config
Info:
active-charging service acs
Info:
rulebase default
Info:
#exit
Info:
#exit
Info: end
[local]
host_name
#
ASR 5500 System Administration Guide, StarOS Release 21.5
360
NETCONF and ConfD
CDB Maintenance