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

Using ACE's XML interface

Hello,

I'm encountering troubles with ACE's XML interface:

-trying to perform a "show running config" I did the following via curl

curl "http://www:[password]@[ACE_IP_ADRESS]/bin/xml_agent" -k  -d "xml_cmd=<request_xml context-name=\"Admin\"><show_running-config/></request_xml>"

But ACE replies that the context name is invalid!! And when I do the same thing without specifying a context name it works and display the running config for Admin context!

The problem is that I need to do this show command in other contexts. I think specifying a context name is similar to executing a "changeto" command from the CLI so I have to do it...

Thank you for helping

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Using ACE's XML interface

Hi

To use context name the tag is ctx-name so if I want to get running config for a context named sam you would use:

xml_cmd=\r\n
\r\n
\r\n
\r\n

Regards

5 REPLIES
Cisco Employee

Re: Using ACE's XML interface

Hi

To use context name the tag is ctx-name so if I want to get running config for a context named sam you would use:

xml_cmd=\r\n
\r\n
\r\n
\r\n

Regards

New Member

Re: Using ACE's XML interface

Thank you for the answer. In fact it was because I didn't have the Admin role and because the IP address I used for the request was the IP of a specified context so I couldn't display the show run of the Admin context...

Well it works grat now

New Member

Re: Using ACE's XML interface

Hello guys,

I'm trying to accomplish something different, but it fits the topic.

I want to get the show resource allocation command output via XML interface.

Here's the xml_cmd that I tried:

xml_cmd=

But I'm getting the following error:


command - not supported by xml interface


What is the correct xml_cmd I should send to ACE to get the output of show resource allocation?

Cisco Employee

Re: Using ACE's XML interface

I always use raw request i.e:

xml_cmd=xml-show on\r\n

show resource usage\r\n

\r\n

Cisco Employee

Using ACE's XML interface

For the benefit for all, there is a document posted which talks about XML request to ACE mod/Appliance. It also convers few tricks and examples

https://supportforums.cisco.com/docs/DOC-17849

Thanks

1295
Views
5
Helpful
5
Replies
CreatePlease to create content