Changing Custom attributes in a script

Solved
LR
Lionel, RAULT
Solutys Technologies

I've declared a custom attribute for a device and set its value to zero

I would like to change its value into 1 in the before/after script of a filesync rule.

If possible, what is the right syntax for that ?

Reason is, when you do a filesync on a group of devices, it seems that you are not aware that nothing has been done on those which are not connected.

7 years ago
Windows
ANSWERS
MD
Matt Dermody Diamond Contributor
7 years ago

What if instead of using a script you also delivered some form of property file w(XML or INI) ith the File Sync rule that contained a key value pair of property name and property value? You could then use a Custom Data rule for extracting the property value from the file so that you would have visibility to it within the console. 

Solution
LR
Lionel, RAULT
7 years ago

Thanks Matt,

That works and display is fine

JT
Jack Tinsley
5 years ago

Matt, when you say "Custom Data rule" are you talking about a Data Collection Rule?

MD
Matt Dermody Diamond Contributor
5 years ago

No, I was referring to Custom Data. I guess it isn't a rule per se, but a configuration. You can then setup a Data Collection Rule to collect Custom Data values on prescribed intervals but they are separate concepts from one another. Custom Data defines what is being collected from the device and Data Collection rules dictate how frequently that is reported and stored in a historical view.