Anyone knows about how can fetch all Application data from client machine through policy or any other option.
I have already script for this but it's so complicated for me......
if i user terminal for run script the it's works... Also when run script silently push to client machine after that we must have to run command (sudo jamf policy ) to run script the it's working. if I wait for run successfully the become failed.
Kindly help.............
!/bin/sh
Inventory script for hostname,ip address, cpu info, software installed
touch Desktop/hostname -f
-swinv.txt
echo SWO-Linux >>Desktop/hostname -f
-swinv.txt
echo =========DATE=========== >>Desktop/hostname -f
-swinv.txt
/bin/date >>Desktop/hostname -f
-swinv.txt
echo =========HOSTNAME=========== >>Desktop/hostname -f
-swinv.txt
hostname -f >> Desktop/hostname -f
-swinv.txt
echo >> Desktop/hostname -f
-swinv.txt
echo =========IP ADDRESSES=========== >>Desktop/hostname -f
-swinv.txt
ifconfig -a >>Desktop/hostname -f
-swinv.txt
echo >> Desktop/hostname -f
-swinv.txt
echo ===========HW/CPU INFO============== >>Desktop/hostname -f
-swinv.txt
sysctl machdep.cpu >> Desktop/hostname -f
-swinv.txt
echo >> Desktop/hostname -f
-swinv.txt
echo ==============SW INSTALLED Sys Profiler================ >>Desktop/hostname -f
-swinv.txt
system_profiler SPApplicationsDataType >> Desktop/hostname -f
-swinv.txt
echo >> Desktop/hostname -f
-swinv.txt