XML Config Example

Answered Question
Mar 13th, 2007

Hi,

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

Thanks!

I have this problem too.
0 votes
Correct Answer by Syed Iftekhar Ahmed about 9 years 8 months 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

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

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

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