Skip to main content
Question

Extension Attribute

  • Sep 19, 2023 3:12 PM UTC
  • 4 replies
  • 65 views

Asifahmed
Forum|alt.badge.img+9

Hello All,

I just wanted to know, if we can use touch command in Extension Attribute if needed, I know better it to avoid as we are collecting information from computer but technically is it ok to use touch command in my EA's body?

4 replies

jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • Sep 19, 2023 3:42 PM UTC

its a shell script. you can do what-ever you like..  but.. as they are scoped to all devices.. dev as a script, test, then make as an EA


Asifahmed
Forum|alt.badge.img+9
  • Author
  • Contributor
  • Sep 19, 2023 4:30 PM UTC

its a shell script. you can do what-ever you like..  but.. as they are scoped to all devices.. dev as a script, test, then make as an EA


Yes, I checked by writing an EA with a touch command in EA body, it worked successfully what it was supposed to do. Issue is that when I ran recon it took longer time as it is creating a file. For Second it was less as file already created before. BTW thanks for the info.


jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • Sep 19, 2023 4:38 PM UTC

Yes, I checked by writing an EA with a touch command in EA body, it worked successfully what it was supposed to do. Issue is that when I ran recon it took longer time as it is creating a file. For Second it was less as file already created before. BTW thanks for the info.


all depends what you want to engineer.. every recon triggers the EA.. so you may want to look at a policy.. and every EA slows down the recon.. 


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • Sep 19, 2023 8:05 PM UTC

Generally speaking you dont want to make any actions with an Extension Attribute, just read. However, nothing is stopping you from putting whatever you want in the shell script. Just be aware, if something breaks in the script it will stop devices from checking in as they cant finish a recon.