Hi there)
File netconf-establish:
<?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>
<capability>urn:ietf:params:xml:ns:yang:ietf-subscribed-notifications</capability>
<capability>urn:ietf:params:xml:ns:yang:ietf-yang-push</capability>
</capabilities>
</hello>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="102" 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">
<stream>NETCONF</stream>
</establish-subscription>
</rpc>
./netconf-console -u xxxxx -p xxxxx netconf-establish.xml
Answer_________________________________________________________________
<notification xmlns='urn:ietf:params:xml:ns:netconf:notification:1.0'>
<eventTime>2022-01-19T14:51:03.84404+00:00</eventTime>
<netconf-session-start xmlns='urn:ietf:params:xml:ns:yang:ietf-netconf-notifications'>
<username>admin</username>
<session-id>258</session-id>
<source-host>172.17.0.1</source-host>
</netconf-session-start>
</notification>
<notification xmlns='urn:ietf:params:xml:ns:netconf:notification:1.0'>
<eventTime>2022-01-19T14:51:03.870422+00:00</eventTime>
<netconf-config-change xmlns='urn:ietf:params:xml:ns:yang:ietf-netconf-notifications'>
<changed-by>
<server/>
</changed-by>
<datastore>running</datastore>
<edit>
<target xmlns:sn="urn:ietf:params:xml:ns:yang:ietf-subscribed-notifications">/sn:subscriptions/sn:subscription[sn:id='4']</target>
<operation>create</operation>
</edit>
</netconf-config-change>
data: </notification>
I see notifications from RESTCONF
<notification xmlns='urn:ietf:params:xml:ns:netconf:notification:1.0'>
<eventTime>2022-01-18T14:52:10.774583+00:00</eventTime>
<netconf-session-start xmlns='urn:ietf:params:xml:ns:yang:ietf-netconf-notifications'>
<username>admin</username>
<session-id>267</session-id>
<source-host>172.17.0.1</source-host>
</netconf-session-start>
</notification>
<notification xmlns='urn:ietf:params:xml:ns:netconf:notification:1.0'>
<eventTime>2022-01-18T14:52:10.795+00:00</eventTime>
<netconf-config-change xmlns='urn:ietf:params:xml:ns:yang:ietf-netconf-notifications'>
<changed-by>
<server/>
</changed-by>
<datastore>running</datastore>
<edit>
<target xmlns:sn="urn:ietf:params:xml:ns:yang:ietf-subscribed-notifications">/sn:subscriptions/sn:subscription[sn:id='4']</target>
<operation>create</operation>
</edit>
</netconf-config-change>
</notification>
What do I need for recieve all operational notifications to this NETCONF stream?
Kind regards
Denys