cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
872
Views
18
Helpful
6
Replies

Need dummy XML to post request to RME Remote Acess

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

<payload>

<command>

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

</command>

<arg>

</arg>

<arg-val>

</arg-val>

</payload>

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

6 Replies 6

Joe Clarke
Cisco Employee
Cisco Employee

Actually, this payload file should be enough:

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

thnx for the reply,

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

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 1.1.1.1 -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

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

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.

hey clarke,

thank a lot [:)]

that helped me a lot.

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: