Jamf Helper コマンド

Jamf Pro ドキュメント 11.25.0

Solution
Application
Content Type
テクニカル資料
Utilities & Services
version
11.25.0
ft:locale
ja-JP
vrm_version
11.25.0

一般的なパラメータ

下表は、よく使用されるパラメータを示します。

パラメータ説明値の例
-windowTypeウィンドウのスタイルutilityhud、または fs
-titleウィンドウタイトルテキスト"Software Update"
-descriptionメインメッセージテキスト"Updates are being installed..."
-button1プライマリボタンテキスト"OK"
-button2セカンダリボタンテキスト (オプション)"Cancel"
-iconアイコンファイルへのパス/System/Library/CoreServices/Software Update.app/Contents/Resources/SoftwareUpdate.icns
-timeout自動終了時間 (秒)60

使用可能なすべてのパラメータとその使用方法の完全なリストについては、-help パラメータを使用して管理対象コンピュータで Jamf Helper を実行してください。

/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper -help

使用例

タイムアウト付きのメッセージを表示する
#!/bin/bash

"/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" \
-windowType "hud" \
-title "Maintenance Notice" \
-description "Maintenance will begin in 5 minutes. Please save your work." \
-timeout 300 \
-countdown
ユーザの確認をリクエストする
#!/bin/bash

"/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" \
-windowType "utility" \
-title "Software Installation" \
-description "Click Install to begin the installation process." \
-button1 "Install" \
-button2 "Cancel" \
-defaultButton 1
ユーザ入力をリクエストする
#!/bin/bash

# Ask for t-shirt size
SELECTION=$("/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" \
-windowType "utility" \
-title "T-Shirt Size Survey" \
-heading "Company Swag Order" \
-description "Please select your t-shirt size for the upcoming company event:" \
-icon "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Clipboard.icns" \
-button1 "Small" \
-button2 "Medium" \
-button3 "Large" \
-button4 "XL" \
-defaultButton 2)

# Store the response
case $SELECTION in
    0) SIZE="Small";;
    1) SIZE="Medium";;
    2) SIZE="Large";;
    3) SIZE="XL";;
    *) SIZE="No selection made";;
esac

# Display confirmation
"/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" \
-windowType "utility" \
-title "Thank You" \
-description "Your size ($SIZE) has been recorded." \
-icon "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarFavoritesIcon.icns" \
-button1 "OK"
注:

この例は、ユーザ入力を収集する基本的な概念を示しています。本番環境で使用する場合は、拡張属性のアップデートなど、収集したデータを保存するコードを追加する必要があります。完全な実装の詳細については、IT 管理者にお問い合わせください。