cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
512
Views
0
Helpful
1
Replies

How to upload a XML file to configure ACE?

qixie
Level 1
Level 1

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 1

Gilles Dufour
Cisco Employee
Cisco Employee

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.

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: