Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

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
Cisco Employee

Re: Need dummy XML to post request to RME Remote Acess

Actually, this payload file should be enough:

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

New Member

Re: Need dummy XML to post request to RME Remote Acess

thnx for the reply,

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

Cisco Employee

Re: Need dummy XML to post request to RME Remote Acess

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

New Member

Re: Need dummy XML to post request to RME Remote Acess

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

Cisco Employee

Re: Need dummy XML to post request to RME Remote Acess

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.

New Member

Re: Need dummy XML to post request to RME Remote Acess

hey clarke,

thank a lot [:)]

that helped me a lot.

148
Views
18
Helpful
6
Replies
CreatePlease to create content