Custom Attributes in File Sync Rule

R
Rafael
Dänisches Bettenlager GmbH & Co. KG

Hi,

is there anything to get Custom Attributes working in Filesync Rule (Server File / Folder Name)?

Works:

%ROOT%\Certificates\

%ROOT%\Certificates\123.cert

Doesn't work:

%ROOT%\Certificates\%MCCustomData:Store Number%.cert

Edited 5 years ago
Android
ANSWERS
D
DDMOD@SOTI
5 years ago

Hi Rafael,

Thank you for posting!

Can you please confirm what are you trying to achieve using FileSync Rule?

Regards,

RC
Raymond Chan Diamond Contributor
5 years ago (edited 5 years ago)

Hi Rafael,

Your title refers to custom attribute, but your file-sync rule configuration actually use macro for custom data.  While custom attributes set from server side is relatively more stable than custom data collected from device side, both are not supported when specifying server-side directory in  file-sync rules.   Even if custom data is supported,  I can't imagine how file-sync check/transfer operations can be RELIABLY scheduled and carried out due to the unpredicatability of custome data availability and validity (e.g. value stored in server may be outdated) .

If you want to send different certificates to a device based on ID of the store the device is located in,  a more reliable way is to do the following:

1. Use one device-group  for each store.   A separate file-sync rule with customized server file directory storing the certifcate files  should be added for each such group.

2a.  If a device is statically assigned to a particular store for weeks/months, just manually drag the device beteen different store device-groups.

2b.   If  a device is brought from one store location to another many times a day, then device-relocation or alert rule(s) could be added to automatically move the device between diffeent store device-groups based on any location-specific parameters such as IP address-range, SSID, BSSID, etc.

R
Rafael
5 years ago

1. Use one device-group  for each store.   A separate file-sync rule with customized server file directory storing the certifcate files  should be added for each such group.

That's nothing we want to do, that would be more than 1000 file-sync rules (generated manually). That's not be able to be done.

I'm thinking actual about a different way which could work but it's not the "nice" way to do:

  • Creating a package where ALL certificates are in
  • adding a script which will assign the one certificate we need (there custom data is working) and then delete all remaining certificates

But i'm wondering why custom data macros are not working for file-sync rules.