It is possible to write data into Device Events from scripts that are not running from ControlUp Edge DX. The ControlUp Knowledge Base provides examples on how to do this, for both events and data. If a script is activated from within Edge DX, any data can be captured in Device Events. The KB article can be found at: https://support.controlup.com/docs/scripting-guide#data-collection
Read the entire ‘Writing Data into Device Events from Scripts’ thread below:
Good day
I was wondering it its possible to call the agent on macOS to write data into the Device Events
Senario
I have a scripts that is running on the device , it will give me logs on success and failures … I wanted to know , how can i get the scriupt that is on the device (Not Running from Controlup Edge DX )
to call the controlup Agent to put that output of that scrip into Device Events ?
Yes it can write events, there are examples in our kb. Will get you something when I get back from lunch
Nice Cheese burger will be nice 😄
https://support.controlup.com/docs/scripting-guide#data-collection this has examples for data and for events but essentially for events:
“`### SIP EVENT BEGINS ###
Memory block size: 134217728 Total online memory: 8589934592 Total offline memory: 0
SIP EVENT ENDS ###“`
and for data:
“`### SIP DATA BEGINS ###
[{"ip_address":"192.168.137.16","hostname":"test test.jar.local"}]
SIP DATA ENDS ###“`
I understand this and this is perfect if i want to collect data
Im more wondering if i can call the agents , eg
/usr/local/com.controlup……/agent -message "Hello Wouter "
then if i check that device , Device Events it will say Hello Wounter
no this will only be captured if the script is activated from within edge dx
Continue reading and comment on the thread ‘Writing Data into Device Events from Scripts with ControlUp’. Not a member? Join Here!
Categories: All Archives, ControlUp Edge DX, ControlUp Scripts & Triggers