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
Содержание ASR 5500
Страница 100: ...ASR 5500 System Administration Guide StarOS Release 21 5 74 System Interfaces and Ports VLANs and Management Ports ...
Страница 136: ...ASR 5500 System Administration Guide StarOS Release 21 5 110 Smart Licensing Smart Licensing Bulk Statistics ...
Страница 140: ...ASR 5500 System Administration Guide StarOS Release 21 5 114 Monitoring the System Clearing Statistics and Counters ...
Страница 260: ...ASR 5500 System Administration Guide StarOS Release 21 5 234 Routing Viewing Routing Information ...
Страница 278: ...ASR 5500 System Administration Guide StarOS Release 21 5 252 BGP MPLS VPNs VPN Related CLI Commands ...
Страница 292: ...ASR 5500 System Administration Guide StarOS Release 21 5 266 Session Recovery Sample Output for show rct stats verbose ...
Страница 324: ...ASR 5500 System Administration Guide StarOS Release 21 5 298 Interchassis Session Recovery Fallback Procedure ...
Страница 338: ...ASR 5500 System Administration Guide StarOS Release 21 5 312 Engineering Rules ECMP Groups ...
Страница 362: ...ASR 5500 System Administration Guide StarOS Release 21 5 336 StarOS Tasks Management Processes ...