Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Nexus7K XML query problem

Hello, world,

I am working on a drush script to work with the xmlagent in NX-OS, which I have made half-way through.

Now the problem: With this XML query:

<?xml version="1.0"?>
<nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://www.cisco.com/nxos:1.0:xml" message-id="3">
<nc:get>
   <nc:filter type="subtree">
   <show><interface><counters><errors>
    <module>

        <mod_num>1</mod_num>
        <mod_num>2</mod_num>

    </module>
   </errors></counters></interface></show></nc:filter>
</nc:get>
</nc:rpc>

I expected to get back the result of "show interface counters errors module 1, 2". However, I end up with 2 copies of error counters for module 1.

My code does perform a schema validation against the Cisco provided if_manager.xsd file, so I assume that my XML query is OK.

[update] If I omit the module list, I do get the error counters for all modules in the switch.

Any ideas?

278
Views
0
Helpful
0
Replies
CreatePlease to create content