Posted on 09-19-2023 08:12 AM
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?
Posted on 09-19-2023 08:42 AM
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
Posted on 09-19-2023 09:30 AM
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.
Posted on 09-19-2023 09:38 AM
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..
Posted on 09-19-2023 01:05 PM
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.