cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
581
Views
0
Helpful
1
Replies

'show feature' command through the XML API

drfaust01
Level 1
Level 1

Hi,

I'm trying to execute {{show feature}} command through the XML API of Nexus 1000v, but is returning some error.

cisco-1000v-sw# xmlagent

<?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>9412</session-id>

</hello>

]]>]]>

<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

    <capabilities>

        <capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability>

        <capability>urn:ietf:params:xml:ns:netconf:capability:validate:1.0</capability>

    </capabilities>

</hello>

]]>]]>

<nc:rpc message-id="1" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0"><exec-command><cmd>show feature</cmd></exec-command></nc:rpc>]]>]]>

The result is

/isan/bin/xmlsa: symbol lookup error: /isan/lib/libcli-fm.so: undefined symbol: msp_get_feature

<?xml version="1.0"?>

<nc:rpc-reply xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0" message-id="1">

  <nc:rpc-error>

    <nc:error-type>application</nc:error-type>

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

    <nc:error-severity>error</nc:error-severity>

    <nc:error-message>Feature Name          Instance  State

--------------------  --------  --------

cts                   1         disabled

dhcp-snooping         1         disabled

http-server           1         enabled

lacp                  1         disabled

netflow  </nc:error-message>

    <nc:error-info>

      <nc:bad-element>cmd</nc:bad-element>

    </nc:error-info>

  </nc:rpc-error>

</nc:rpc-reply>

]]>]]>

I also tried with get, the result is the same.

<?xml version="1.0"?>

<nc:rpc message-id="1" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:xml">

  <nc:get>

    <nc:filter type="subtree">

      <show>

          <feature/>

      </show>

    </nc:filter>

  </nc:get>

</nc:rpc>

]]>]]>

I have no idea what is wrong with those requests.

Please let me know if should post to another space.

Thanks!

1 Reply 1

Geevarghese Cheria
Cisco Employee
Cisco Employee

Hi Hayn ,

Would request you to check in the discussion section for similar error in this url- https://communities.cisco.com/community/technology/datacenter/nexus1000v/content

Thanks and Regards,

Geevarghese