Need dummy XML to post request to RME Remote Acess

Unanswered Question
Apr 21st, 2008
User Badges:

Could anybody provide me sample payload XML file to invoke cwcli from my machine.

I had gone through the user guide also but in that just following xml is given



cwcli config export -u admin -p <Base64Enocedpwd> -device -xml







would this XML be enough to execute the command or I would need some header for above XML.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.3 (4 ratings)
Joe Clarke Mon, 04/21/2008 - 22:18
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Actually, this payload file should be enough:

cwcli config export -u admin -p -device -xml

er_yogendrasingh Tue, 04/22/2008 - 01:37
User Badges:

thnx for the reply,

can I execute cli like "sho ver" on end devices using these xml APIs

Joe Clarke Tue, 04/22/2008 - 09:19
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

There's no way to do this in one step. You can run Netshow jobs from the CLI, but you cannot view their results in real time. First you will need to create the job:

cwcli netshow createjob -u admin -p -device -customcmd "show ver"

This will return a job ID (e.g. 1007). Then, run a new command:

cwcli netshow jobresults -u admin -p -id 1007

er_yogendrasingh Wed, 04/23/2008 - 03:57
User Badges:

thnx a ton Clarke, for the reply.

that really helped a lot.

but I saw in the cwcli doc that user can only execute

. show

• version

• where

• ping

• traceroute

• ?

using customcmd option

what if I have to send some commands other than above.

in precise how can I send config level

commands using netshow(or some other application of RME) on to the devices

Joe Clarke Wed, 04/23/2008 - 08:48
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Netshow doesn't do config commands. For that, you want to look at the netconfig argument to cwcli. There is a lot you can do configuration-wise with Netconfig jobs. Check out the online help for RME for more details.


This Discussion