Hi there!
I try to get all operational notifications from netconf. I use for that yang push.
When run ./netconf-console -u xxxxx -p xxxxx netconf-establish-push.xml
Where netconf-establish-push.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<establish-subscription xmlns="urn:ietf:params:xml:ns:yang:ietf-subscribed-notifications" xmlns:yp="urn:ietf:params:xml:ns:yang:ietf-yang-push">
<yp:datastore xmlns:ds="urn:ietf:params:xml:ns:yang:ietf-datastores">
ds:operational
</yp:datastore>
<yp:on-change>
<yp:dampening-period>100</yp:dampening-period>
</yp:on-change>
</establish-subscription>
</rpc>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<close-session/>
Log confD:
confd[16]: audit user: admin/0 external authentication succeeded via netconf from 172.17.0.1:42412 with ssh, member of groups:
confd[16]: audit user: admin/0 logged in via netconf from 172.17.0.1:42412 with ssh using external authentication
confd[16]: audit user: admin/265 assigned to groups:
confd[16]: audit user: admin/265 created new session via netconf from 172.17.0.1:42412 with ssh
confd[16]: netconf id=265 new ssh session for user “admin” from 172.17.0.1
confd[16]: netconf id=265 got rpc: {urn:ietf:params:xml:ns:yang:ietf-subscribed-notifications}establish-subscription attrs: message-id=“101”
confd[16]: netconf id=265 establish-subscription target={datastore,operational} attrs: message-id=“101”
confd[16]: netconf id=265 sending rpc-reply, attrs: message-id=“101”
confd[16]: netconf id=265 close-session attrs: message-id=“2”
confd[16]: audit user: admin/265 terminated session (reason: normal)
confd[16]: netconf id=265 sending rpc-reply, attrs: message-id=“2”
confd[16]: audit user: admin/0 logged out user
Result response is:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-info>
<establish-subscription-datastore-error-info xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-push">
<reason>sync-too-big</reason>
</establish-subscription-datastore-error-info>
</error-info>
</rpc-error>
</rpc-reply>
What can I change to correct working?
How can I set name of stream for notifications?
Kind regards,
Denys