cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1247
Views
1
Helpful
2
Replies

Nexus 1000v and Netconf

jcallen123
Level 1
Level 1

I am trying to do netconf on a Nexus 1KV for VMware Orchestrator automation.  Initially I am trying to just send the hello thru ssh.  I receive the hello from the server, then send the hello XML from the XML API documentation.  And nothing happens.  If I send another ]]>]]> I receive:


<?xml version="1.0"?>

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

  <rpc-error>

    <error-type>application</error-type>

    <error-tag>invalid-value</error-tag>

    <error-severity>error</error-severity>

  </rpc-error>

</rpc-reply>

system:    version 4.2(1)SV1(5.2)

Here is the initial testing that I did.

ubtphx001:~/rubydev$ ssh admin@10.10.10.9 -s xmlagent
Nexus 1000v Switch
Password:
<?xml version="1.0"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <capabilities>
    <capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability>
  </capabilities>
  <session-id>29248</session-id>
</hello>
]]>]]><?xml version="1.0"?><nc:hello xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"><nc:capabilities><nc:capability>urn:ietf:params:xml:ns:netconf:base:1.0</nc:capability></nc:capabilities></nc:hello>]]>]]>

Questions from previous post.

cabn1kphx002# show xml server status

operational status is enabled

maximum session configured is 8

xml server validate all/<session id> is unavailable.

If you anyone can help I would greatly appreciate it.

Thanks, Joe

2 Replies 2

cchaitan
Level 1
Level 1

I tried this on our 2.1.1 setup and it works fine. Is this your production setup? If not can you try it on 2.1.1?

Never mind I figured it out.  I didn't realize that once you say hello the server doesn't send a response.

Thanks,

Joe