Posted on 03-24-2010 08:13 AM
Hey All
Just wondering if there is a simple way to update the JSS server address on all the clients?
We first installed the JSS without DNS - so the clients all have an internal ip address as the JSS address. I would like to replace it with a fully qualified domain - so they can access from school and at home.
Thanks
Justin
--
Justin Hall Bsc, CCNA, CNA, MACS, ACHDS
ICT Manager
Helena College
P: 9298 9100 Ext. 110
F: 9298 8616
Please consider the environment before printing this email
Posted on 03-24-2010 08:41 AM
Try this script out. Replace the variables “previousServer” and “newServer” with your server addresses. This will basically find the previous address, replace it with the new one and write a new config file. Then it will replace the old config file with the new one.
#!/bin/sh
previousServer="10.10.10.10"
newServer="casperserver.domain.com"
if [ -f /etc/jamf.conf ]; then
sed "s/$previousServer/$newServer/g" /etc/jamf.conf > /etc/jamf.conf.new
mv -f /etc/jamf.conf.new /etc/jamf.conf
fi
Posted on 03-24-2010 09:07 AM
The built-in method would be to use the jamf binary. You can make a policy
to run on startup for all machines and in the Advanced area on the Run field
enter something like
/usr/sbin/jamf createConf -server <YOUR FQDN> -ssl
We use the ssl to make sure the secure connection is the default. This
will re-generate the /etc/jamf.conf file from scratch.
j