04-21-2008 08:03 PM
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.
04-21-2008 10:18 PM
Actually, this payload file should be enough:
cwcli config export -u admin -p
04-22-2008 01:37 AM
thnx for the reply,
can I execute cli like "sho ver" on end devices using these xml APIs
04-22-2008 09:19 AM
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
This will return a job ID (e.g. 1007). Then, run a new command:
cwcli netshow jobresults -u admin -p
04-23-2008 03:57 AM
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
04-23-2008 08:48 AM
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.
04-24-2008 01:56 AM
hey clarke,
thank a lot [:)]
that helped me a lot.
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: