01-19-2011 05:17 AM
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.
01-19-2011 06:18 AM
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.
01-19-2011 06:37 AM
Thanks! that curl command works, now I have to figure out how to incorprate that into a website.
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: