Skip to main content
Question

Target Disk Mode with Custom Options


Forum|alt.badge.img+6

Is there a way to do batch target disk mode in Casper Imaging, but also put in custom settings, like under the advanced tab?

<context>
We populate the ARD text field 1 with our district asset tag ID number for each computer, but we do not know how to image a batch of computers using Target Disk Mode (name match by serial number in a .csv file) and update this field at imaging time. Our alternative is to update System Preferences > Sharing > Remote Managment > Options manually after each computer finishes imaging.
</context>

Running Casper Suite 9.3

2 replies

Forum|alt.badge.img+3
  • New Contributor
  • 9 replies
  • July 15, 2014

Have you looked at running this as a script during the imaging process?


Forum|alt.badge.img+12
  • Contributor
  • 64 replies
  • September 9, 2014

I user a script as part of my workflow to do this.

#!/bin/bash

# DESCRIPTION:
# Script to set the computer info in the ARD agent

# REQUIREMENTS:
# Must be run as root

# AUTHOR:
# robert@kvicktajm.se

# Examples if you want to set hostname at spare slot - check first to find what you use as identifiers in your network:
# scutil --get HostName
# scutil --get LocalHostName
# scutil --get ComputerName
# networksetup -getcomputername
# hostname

# Note: A variable="" leave what's already set in agent so use variable=" " to *clear* a field
I1="Perrigo Build 00048502.02" # Spare
I2=
I3=
I4=

# You can also use:
# I3="echo $(sysctl hw.model | awk '{ print $2}')"

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -computerinfo -set1 -1 "$I1" -set2 -2 "$I2" -set3 -3 "$I3" -set4 -4 "$I4"

#EOF


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings