kc9wwh / logCollection

Script to upload client device logs to Jamf Pro
MIT License
109 stars 27 forks source link

Serial Number #3

Closed Top-Goodman closed 2 years ago

Top-Goodman commented 3 years ago

Hello, Using system_profiler for serial number was causing timeouts and the script was delaying a long time without running successfully. I think this might be because of Filevault. So not sure if you want to investigate swapping out the variable all together, or maybe use a check to see if filevault is enabled, then declare the variable a different way. I changed this to mySerial=$(ioreg -c IOPlatformExpertDevice -d 2 | awk -F\" '/IOPlatformSerialNumber/{print $(NF-1)}')

The script isn't working still, however the serial number is at least getting populated now.

kc9wwh commented 2 years ago

@Top-Goodman are you still having issues?

Top-Goodman commented 2 years ago

Hello, we kind of stopped using the logging when it stopped working. Thanks for following up.

On Tue, Jan 11, 2022 at 11:04 AM Joshua Roskos @.***> wrote:

@Top-Goodman https://github.com/Top-Goodman are you still having issues?

— Reply to this email directly, view it on GitHub https://github.com/kc9wwh/logCollection/issues/3#issuecomment-1010111119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZZUEGIYMED4EFA32CBD2LUVRIG7ANCNFSM5BV5ALEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

kc9wwh commented 2 years ago

@Top-Goodman, sorry to hear. Unfortunately I’m not able to duplicate this and others haven’t had issues either. I’ll close this out then, but if you want to relook at this let me know.

Top-Goodman commented 2 years ago

No worries. Thank you

On Tue, Jan 11, 2022 at 9:22 PM Joshua Roskos @.***> wrote:

Closed #3 https://github.com/kc9wwh/logCollection/issues/3.

— Reply to this email directly, view it on GitHub https://github.com/kc9wwh/logCollection/issues/3#event-5877313663, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZZUEFBAYALVVUDPD6ZJ4LUVTQYBANCNFSM5BV5ALEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>