Confd Examples - Cisco ASR 5000 Series Administration Manual

Staros release 21.4
Hide thumbs Also See for ASR 5000 Series:
Table of Contents

Advertisement

ConfD Examples

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
Subscriptions
Last successful id
Last failed id
Username
Bulkstats
Event notification level
SNMP notifications
REST interface authentication
REST interface certificate
REST interface host name
Interface
----------------------------------------------
NETCONF
REST
Statistics
----------
Triggers
Replays
Notifications
Notification failures
Trigger failures
Replay failures
NETCONF notification failures 0
Unexpected failures
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.4
426
Started
5
1488-211047-99241
None
Not configured
Disabled
Disabled
Disabled
peer-fail
rest-cert
Not configured
Status
Port
Enabled
123
Enabled
234
1
0
8
0
0
0
0
NETCONF and ConfD

Advertisement

Table of Contents
loading

This manual is also suitable for:

Asr 5500

Table of Contents