![](//vs1.manuzoid.com/store/data-gzf/d06ebd3a444c1294650714a76eb9d488/2/002152020.htmlex.zip/bg4.jpg)
ii
Establishing NETCONF over Telnet or NETCONF over console sessions ············································· 27
Exchanging capabilities ···························································································································· 28
Retrieving operational and configuration data from the device ········································································ 28
Restrictions and guidelines for device configuration retrieval ·································································· 28
Retrieving device configuration and state information ············································································· 29
Retrieving non-default settings················································································································· 31
Retrieving NETCONF information ············································································································ 32
Retrieving YANG file content ··················································································································· 32
Retrieving NETCONF session information ······························································································· 33
Example: Retrieving a data entry for the interface table ·········································································· 33
Example: Retrieving syslog configuration data ························································································ 35
Example: Retrieving non-default configuration data ················································································ 36
Example: Retrieving NETCONF session information··············································································· 37
Filtering data ···················································································································································· 38
About data filtering ··································································································································· 38
Restrictions and guidelines for data filtering ···························································································· 38
Table-based filtering ································································································································· 38
Column-based filtering ····························································································································· 39
Example: Filtering data with regular expression match············································································ 41
Example: Filtering data by conditional match··························································································· 43
Locking or unlocking the running configuration ································································································ 44
About configuration locking and unlocking ······························································································· 44
Restrictions and guidelines for configuration locking and unlocking ························································ 44
Locking the running configuration ············································································································ 44
Unlocking the running configuration ········································································································· 45
Example: Locking the running configuration ···························································································· 45
Modifying the configuration ······························································································································ 46
About the <edit-config> operation ············································································································ 46
Procedure ················································································································································· 46
Example: Modifying the configuration ······································································································ 47
Saving the running configuration ····················································································································· 48
About the <save> operation ····················································································································· 48
Restrictions and guidelines ······················································································································ 48
Procedure ················································································································································· 48
Example: Saving the running configuration ······························································································ 49
Loading the configuration ································································································································· 50
About the <load> operation ······················································································································ 50
Restrictions and guidelines ······················································································································ 50
Procedure ················································································································································· 50
Rolling back the configuration ·························································································································· 51
Restrictions and guidelines ······················································································································ 51
Rolling back the configuration based on a configuration file ···································································· 51
Rolling back the configuration based on a rollback point ········································································· 51
Performing CLI operations through NETCONF································································································ 55
About CLI operations through NETCONF ································································································ 55
Restrictions and guidelines ······················································································································ 55
Procedure ················································································································································· 56
Example: Performing CLI operations ······································································································· 56
Subscribing to events ······································································································································· 57
About event subscription ·························································································································· 57
Restrictions and guidelines ······················································································································ 57
Subscribing to syslog events ···················································································································· 57
Subscribing to events monitored by NETCONF······················································································· 58
Subscribing to events reported by modules ····························································································· 60
Canceling an event subscription ·············································································································· 61
Example: Subscribing to all syslog events ······························································································· 61
Example: Subscribing to events reported by modules ············································································· 62
Terminating NETCONF sessions ····················································································································· 64
About NETCONF session termination ····································································································· 64
Procedure ················································································································································· 64
Example: Terminating another NETCONF session ················································································· 64
Returning to the CLI ········································································································································· 65