XML Config Example

Answered Question
Mar 13th, 2007
User Badges:

Hi,

Can someone send me an example of posting XML commands to the CSM? For example setting a real to 'no inservice'.


Thanks!

Correct Answer by Syed Iftekhar Ahmed about 10 years 1 week ago

curl -v -H Connection:close -u cisco:cisco -d @filename 10.10.10.10/xml-config


where

10.10.10.10 is CSM IP

-v will print messages between device & CSM

-H is used to specify extra header

-u to specify user & password


hope it helps

Syed Iftekhar Ahmed

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Syed Iftekhar Ahmed Tue, 03/13/2007 - 16:03
User Badges:
  • Blue, 1500 points or more

A simple XML file that would enable a real in Serverfarm will be


<?xml version="1.0" ?>




Then, to take the real out of service would be:


<?xml version="1.0" ?>





Hope it helps

Syed Iftekhar Ahmed



lfrc8554 Tue, 03/13/2007 - 20:09
User Badges:

Syed,

This is great...

Would you also know how to format this post with curl?

Correct Answer
Syed Iftekhar Ahmed Wed, 03/14/2007 - 02:04
User Badges:
  • Blue, 1500 points or more

curl -v -H Connection:close -u cisco:cisco -d @filename 10.10.10.10/xml-config


where

10.10.10.10 is CSM IP

-v will print messages between device & CSM

-H is used to specify extra header

-u to specify user & password


hope it helps

Syed Iftekhar Ahmed

Actions

This Discussion