12.03.2014 Views

Casper Suite Administrator's Guide v8.7 - JAMF Software

Casper Suite Administrator's Guide v8.7 - JAMF Software

Casper Suite Administrator's Guide v8.7 - JAMF Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

When an extension attribute is populated by a script, the text between the tag is<br />

stored in the JSS. For Mac OS X computers, scripts can be written in any language that has an interpreter<br />

installed. All scripts must start with a shebang (#!) followed by the absolute path to the interpreter. The<br />

most common interpreters are:<br />

/bin/bash<br />

/bin/sh<br />

/usr/bin/perl<br />

/usr/bin/python<br />

For example, the script for an extension attribute that collects the host name from Mac OS X computers<br />

looks like this:<br />

#!/bin/sh<br />

echo "`hostname 2>&1`"<br />

For Windows computers, scripts can be written in VBScript, Batch file, and PowerShell.<br />

Note: PowerShell scripts only run on computers that have components installed to run the script.<br />

Extension attributes can add time and network traffic to the inventory process depending on the type of<br />

data you choose to collect and how you choose to collect it.<br />

Like other inventory data, extension attributes can be used as criteria for smart computer groups and<br />

advanced computer searches.<br />

To create an extension attribute manually:<br />

1. Log in to the JSS with a web browser.<br />

2. Click the Settings tab.<br />

3. Click the Inventory Options link.<br />

4. Click the Inventory Collection Preferences link.<br />

5. Click the Extension Attributes tab.<br />

6. Click the Add Extension Attribute link.<br />

7. Enter a display name for the attribute.<br />

182

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!