cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14715
Views
0
Helpful
4
Replies
Highlighted
Cisco Employee

FETCHDATA Action

I currently have a C819 flashed and configured with an IOx supported image and DMo service enabled.

I pushed this D3 rule to DMo:

{

  "meta": {

  "ruleid": "sensordemo",

  "context": "root",

  },

  "action": {

  "type": "timer",

  "name": [ "fetchdata" ],

  "period": "1000",

  "endpoint": {

  "method": "http",

  "addr": "172.16.1.2",

  "port": "5001",

  "resource": "/temp.json"

  }

  }

}

The endpoint 172.16.1.2 is a Raspberry Pi that I've set up a SimpleHTTPServer on port 5001. If I understand correctly, DMo should be sending an HTTP GET request to the resource http://172.16.1.2:5001/temp.json, but I never see any GET requests in the server logs.

I've verified that I can ping between DMo to the Pi HTTP server so connectivity is there.

What am I doing wrong?

4 REPLIES 4
Highlighted
Cisco Employee

Nevermind. I just needed to reupload the DMO license to the Local Manager.

Highlighted

Hi, did you have to recompile the demos to get the to work? setup a c819 and I am using the ova to test the installation using the sensordemo. But I get minor version errors, and if I try to recompile more errors, also the default context is missing. Do I need to update the dmo. Could you post briefly anything you had to do to get the test installation apps to run ?

Thanks

Highlighted

Anthony,

you will need to create the Default Context, please refer to the doc found here https://developer.cisco.com/fileMedia/download/ebe9d5b0-4d0b-474d-a6a2-cffdb824cc7e

-Kareem

Highlighted

Thanks Kareem, I will follow the docs and post back!

Many thanks!

-Anthony

This widget could not be displayed.