# NETCONF notification not received when using ncclient

**URL:** <https://dmap-community.ductus.global/t/netconf-notification-not-received-when-using-ncclient/4684>\
**Category:** NETCONF\
**Created:** [April 19, 2024, 2:34pm UTC](https://dmap-community.ductus.global/t/netconf-notification-not-received-when-using-ncclient/4684 "2024-04-19T14:34:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geevarghese](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@Geevarghese](https://dmap-community.ductus.global/u/Geevarghese)\
**Post date:** [April 19, 2024, 2:34pm UTC](https://dmap-community.ductus.global/t/netconf-notification-not-received-when-using-ncclient/4684/1 "2024-04-19T14:34:59Z")

</div>

Hi Guys, I’m facing an issue with netconf subscription. Im using the ncclient tool to create subscription with stream type as “NETCONF”. My subscription is OK and got a response from netconf. But after I changed the configuration via NBI, I’m not getting a notification.

But if I directly login to netconf server and create subscription using xml body, subscription is getting created and when I change config using NBI, I get netconf notification too.

import ncclient

# Create a NETCONF session

session = ncclient.manager.connect(\*\*\*\*\*\*\*\*\*\*\*\*\*\*)

# Create a subscription

subscription = session.create\_subscription()

# Wait for events

while True:  
event = subscription.take\_notification()  
# Process the event  
print(event)

# Close the NETCONF session

session.close()
