current session has not received hello

129 views
Skip to first unread message

Muni Prasad Thunuguntla

unread,
May 1, 2012, 12:14:53 AM5/1/12
to NetconfX
I am sending the Netconf request using SnmpTransportClient as
explained in the pdf, but getting "current session has not received
hello" error message.

Request :

Sending XML request:
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:cpi="http://
www.cisco.com/cpi_10/schema" message-id="101">
<get-config>
<source>
<running />
</source>
</get-config>
</rpc>

Response :

<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:cpi="http://www.cisco.com/cpi_10/schema" message-id="101">
<rpc-error>
<error-type>application</error-type>
<error-tag>operation-failed</error-tag>
<error-severity>error</error-severity>
<error-message>current session has not received hello</error-
message>
</rpc-error>
</rpc-reply>
Message has been deleted

A.V.

unread,
May 5, 2012, 1:05:33 PM5/5/12
to netc...@googlegroups.com
Hello,
  I would recommend taking a look at the trace file which contains the netconf traffic over-the-wire.
 To set up the trace file, pass in a property called "netconfTraceFile" (with the value being set to the fully qualified path-name of the file) to the Client.setup() call.
 Once you do that, you can examine the trace file and see the XML communications going back-and-forth. If you can provide me that information, it will help me figure things out better...

A.V.
Reply all
Reply to author
Forward
0 new messages