05-28-2014 09:24 AM - edited 03-01-2019 02:44 AM
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!
06-06-2014 03:54 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide