v
Setting NETCONF session attributes····································································································· 165
Establishing NETCONF over SOAP sessions ······················································································· 166
Establishing NETCONF over SSH sessions ·························································································· 167
Establishing NETCONF over Telnet or NETCONF over console sessions ··········································· 168
Exchanging capabilities ·························································································································· 168
Retrieving device configuration information ··································································································· 169
Restrictions and guidelines for device configuration retrieval ································································ 169
Retrieving device configuration and state information ··········································································· 169
Retrieving non-default settings··············································································································· 171
Retrieving NETCONF information ·········································································································· 172
Retrieving YANG file content ················································································································· 173
Retrieving NETCONF session information ····························································································· 173
Example: Retrieving a data entry for the interface table ········································································ 174
Example: Retrieving non-default configuration data ·············································································· 175
Example: Retrieving syslog configuration data ······················································································ 176
Example: Retrieving NETCONF session information············································································· 177
Filtering data ·················································································································································· 178
About data filtering ································································································································· 178
Restrictions and guidelines for data filtering ·························································································· 178
Table-based filtering ······························································································································· 179
Column-based filtering ··························································································································· 179
Example: Filtering data with regular expression match·········································································· 182
Example: Filtering data by conditional match························································································· 183
Locking or unlocking the running configuration ······························································································ 184
About configuration locking and unlocking ····························································································· 184
Restrictions and guidelines for configuration locking and unlocking ······················································ 184
Locking the running configuration ·········································································································· 184
Unlocking the running configuration ······································································································· 185
Example: Locking the running configuration ·························································································· 185
Modifying the configuration ···························································································································· 186
About the <edit-config> operation ·········································································································· 186
Procedure ··············································································································································· 186
Example: Modifying the configuration ···································································································· 187
Saving the running configuration ··················································································································· 188
About the <save> operation ··················································································································· 188
Restrictions and guidelines ···················································································································· 188
Procedure ··············································································································································· 188
Example: Saving the running configuration ···························································································· 189
Loading the configuration ······························································································································· 190
About the <load> operation ···················································································································· 190
Restrictions and guidelines ···················································································································· 190
Procedure ··············································································································································· 190
Rolling back the configuration ························································································································ 191
Restrictions and guidelines ···················································································································· 191
Rolling back the configuration based on a configuration file ·································································· 191
Rolling back the configuration based on a rollback point ······································································· 191
Performing CLI operations through NETCONF······························································································ 195
About CLI operations through NETCONF ······························································································ 195
Restrictions and guidelines ···················································································································· 195
Procedure ··············································································································································· 196
Example: Performing CLI operations ····································································································· 196
Subscribing to events ····································································································································· 197
About event subscription ························································································································ 197
Restrictions and guidelines ···················································································································· 197
Subscribing to syslog events ·················································································································· 197
Subscribing to events monitored by NETCONF····················································································· 198
Subscribing to events reported by modules ··························································································· 200
Canceling a subscription ························································································································ 201
Example: Subscribing to syslog events ·································································································· 201
Terminating NETCONF sessions ··················································································································· 202
About NETCONF session termination ··································································································· 202
Procedure ··············································································································································· 202