Hey cadmins,
Here's a script that might make your day. If you are sick of manually syncing your CDPs via Casper Admin I suggest you try this out.
syncCDPs.sh
Run it on your main CDP nightly via launchd (OSX only).
- queries the jss for all CDPs (don't configure this script to add or change CDPs - just do it in the JSS).
- rsyncs locally via a fileshare (slower but more compatible).
Sharing the love..
https://interpublic.box.com/s/quqoz45h54v7k1y8ktrj
Your log could look like this..
rsync to cdps started: Tue 8 Apr 2014 07:17:52 EST
rsync to cdps started: Tue 8 Apr 2014 07:17:52 ESTgetting cdp details from jss...
getting details for ADECDP01 ...
getting details for BNEFPR02 ...
getting details for MEBCDP01 ...
getting details for MEBCDP02 ...
getting details for PERCDP01 ...
getting details for SYD 303 ...
getting details for SYD DRF ...
getting details for SYD MBW ...
getting details for SYDCDP01 ...
local path: /Volumes/Server HD/CasperShare/
starting sync to ADECDP01..
mounting 10.136.20.23/CasperShare via AFP ...
rsyncing to ADECDP01: Tue 8 Apr 2014 07:17:59 EST ...
building file list ... done
sent 471412 bytes received 20 bytes 331.18 bytes/sec
total size is 285552522640 speedup is 605713.07
unmounting /tmp/CasperShare...
starting sync to BNEFPR02..
mounting 10.132.11.18/CasperShare via AFP ...
rsyncing to BNEFPR02: Tue 8 Apr 2014 07:41:44 EST ...
building file list ... done
sent 471412 bytes received 20 bytes 477.88 bytes/sec
total size is 285552522640 speedup is 605713.07
unmounting /tmp/CasperShare...
starting sync to MEBCDP01..
mounting mebcdp01/CasperShare via AFP ...
rsyncing to MEBCDP01: Tue 8 Apr 2014 07:58:13 EST ...
building file list ... done
sent 471412 bytes received 20 bytes 619.08 bytes/sec
total size is 285552522640 speedup is 605713.07
unmounting /tmp/CasperShare...
....... etc ...
And your day could look like this...
