ConfD Examples
Server ConfD
The following examples use full TLS authentication and curl to obtain server ConfD configuration.
Server ConfD Configuration
See below for a sample configuration for server ConfD with RESTful interface enabled using non-default
NETCONF and HTTPS ports:
[local]<host_name># show configuration confd
[local]<host_name># config
[local]<host_name>(config)# ca-certificate name ca-cert pem url /flash/ssl/rootCA.pem
[local]<host_name>(config)# certificate name rest-cert pem url /flash/ssl/host.crt private-key
pem url /flash/ssl/host.key
[local]<host_name>(config)# end
[local]<host_name># config
[local]<host_name>(config)# context local
[local]<host_name>(config-ctx)# server confd
[local]<host_name>(config-confd)# netconf port 123
[local]<host_name>(config-confd)# rest port 234
[local]<host_name>(config-confd)# rest certificate rest-cert
[local]<host_name>(config-confd)# rest auth-policy peer-fail
[local]<host_name>(config-confd)# end
[local]<host_name># show confdmgr
State Information
-----------------
State
Started
Subscriptions
5
Last successful id
1488-211047-99241
Last failed id
None
Username
Not configured
Bulkstats
Disabled
Event notification level
Disabled
SNMP notifications
Disabled
REST interface authentication
peer-fail
REST interface certificate
rest-cert
REST interface host name
Not configured
Interface
Status
Port
----------------------------------------------
NETCONF
Enabled
123
REST
Enabled
234
Statistics
----------
Triggers
1
Replays
0
Notifications
8
Notification failures
0
Trigger failures
0
Replay failures
0
NETCONF notification failures 0
Unexpected failures
0
Using Netconf-console to Obtain the Server ConfD Configuration
See below for a sample use of netconf-console to obtain the server ConfD configuration via NETCONF:
[user@server]$ ./netconf-console --host 1.2.3.4 -u admin --password pswd! --port 123
--get-config -x confd
<?xml version="1.0" encoding="UTF-8"?>
ASR 5500 System Administration Guide, StarOS Release 21.5
354
NETCONF and ConfD
ConfD Examples