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

How to upload a XML file to configure ACE?

ACE Expert,

  I am working on a ACE configuration automation.  If I have xml format pre-configured configuration file, what is the best way to upload this whole file into ACE?

Thx, Q.Xie

1 REPLY
Cisco Employee

Re: How to upload a XML file to configure ACE?

I personally use a TCL script to send commands to ACE via XML.

Here is the main function :

proc issue_command { cmd } {
  global user pass mgmt_ip

  if { [catch {set output [exec -- curl \
        -s http://${user}:${pass}@${mgmt_ip}/bin/xml_agent \
        -d "xml_cmd=${cmd}"] } error] } {
    puts "Problem with exec: $error"
    exit 0
  }
  return $output
}

Gilles.

367
Views
0
Helpful
1
Replies
CreatePlease to create content