CCA Scripting and Extension Attributes — Questions and Answers
Question 1: What are Extension Attributes in the Casper Suite?
- Additional user profile fields
- Custom inventory items that collect specific data not included in standard inventory reports (Correct answer)
- Network cable extensions
- Software license extensions
Correct answer: Custom inventory items that collect specific data not included in standard inventory reports
Extension Attributes are custom-defined inventory items that run scripts or collect specific data points beyond the standard inventory Casper collects.
Question 2: What scripting languages are supported for Casper policies on macOS?
- Only AppleScript
- Bash, Python, Perl, Ruby, and other languages available on macOS (Correct answer)
- Only PowerShell
- Java only
Correct answer: Bash, Python, Perl, Ruby, and other languages available on macOS
Casper policies on macOS support any scripting language available on the system, commonly Bash, Python, Perl, and Ruby.
Question 3: How are scripts deployed through Casper policies?
- Users must manually download and run them
- Scripts are stored on the JSS and executed on target devices when policies run (Correct answer)
- Scripts are emailed to administrators
- They are compiled into apps first
Correct answer: Scripts are stored on the JSS and executed on target devices when policies run
Scripts are uploaded to the JSS and executed on targeted devices when the associated policy runs, either on a schedule, at check-in, or on trigger events.
Question 4: What is the purpose of the 'recon' command in Casper?
- Reconnecting to Wi-Fi
- Forcing an immediate inventory update that sends current device data to the JSS (Correct answer)
- Reconfiguring display settings
- Recombining split files
Correct answer: Forcing an immediate inventory update that sends current device data to the JSS
The recon command triggers an immediate inventory update, causing the device to collect and submit current hardware and software data to the JSS.
Question 5: How can scripts be used for pre-flight and post-flight checks in Casper?
- Scripts cannot run before or after policies
- Scripts can verify conditions before policy execution and confirm success after completion (Correct answer)
- Pre-flight only applies to aviation software
- These are only available in enterprise tier
Correct answer: Scripts can verify conditions before policy execution and confirm success after completion
Scripts can be configured to run before (pre-flight) to check prerequisites and after (post-flight) to verify policy execution was successful.
Question 6: What is the best practice for script error handling in Casper?
- Ignore all errors
- Include exit codes, logging, and error checking to ensure failures are properly reported and logged (Correct answer)
- Suppress all error output
- Only check for errors manually
Correct answer: Include exit codes, logging, and error checking to ensure failures are properly reported and logged
Proper error handling with meaningful exit codes, logging, and error checking ensures that script failures are visible in Casper logs for troubleshooting.
What are Extension Attributes in the Casper Suite?