Changing Custom attributes in a script

Changing Custom attributes in a script

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.

4 Answers

Order By:   Standard | Newest | Votes
Matt Dermody | posted this 09 April 2018

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. 

  • 0
  • 0
Lionel, RAULT | posted this 09 April 2018

Thanks Matt,

That works and display is fine

 

 

  • 0
  • 0
Jack Tinsley | posted this 01 October 2020

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

~ Jack

  • 0
  • 0
Matt Dermody | posted this 01 October 2020

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. 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback