Scripting and Extension Attributes Flashcards
6 cards from real CCA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 Scripting and Extension Attributes flashcards as text
What are Extension Attributes in the Casper Suite?
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.
What scripting languages are supported for Casper policies on macOS?
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.
How are scripts deployed through Casper policies?
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.
What is the purpose of the 'recon' command in Casper?
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.
How can scripts be used for pre-flight and post-flight checks in Casper?
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.
What is the best practice for script error handling in Casper?
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.