cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1711
Views
0
Helpful
2
Replies

Cisco ACE XML API

adibenedetto18
Level 1
Level 1

Hi, I am trying to setup a simple html website to take a rserver in and out of service using the built in ACE module xml api. What would be the html code to post the xml command using a button? Currently I receive  <error err_num='103' err_str='XML_ERR_INVALID_INPUT' err_des='not a valid request string'/>, Any input would be great Thanks.

2 Replies 2

ddastoli
Cisco Employee
Cisco Employee

Hello.

In order to understand how to build up a good request, you must enable 'xml-show on' from exec mode on the ACE.

Once you have done this, you can type any show run, i.e.

ACE/Admin# sh run rserver

Generating configuration....

 

 

At this point, you normally can build the command like the following to change the state of a server:

"xml_cmd="

and eventually to put inservice:

"xml_cmd="

I do normally use curl to test:

curl -s http://user:password@ACE_IP/bin/xml_agent -d ""xml_cmd="

Hope this helps.

Domenico.

Thanks! that curl command works, now I have to figure out how to incorprate that into a website.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: