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?
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.
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.