<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Jamf on wegotoeleven</title><link>http://blog.wegotoeleven.xyz/tags/jamf/</link><description>Recent content in Jamf on wegotoeleven</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Thu, 01 Jan 2015 00:00:00 +0000</lastBuildDate><atom:link href="http://blog.wegotoeleven.xyz/tags/jamf/index.xml" rel="self" type="application/rss+xml"/><item><title>Jamf Pro's Reported IP Address fun and games</title><link>http://blog.wegotoeleven.xyz/technical/jamf-pro-reported-ip-address/</link><pubDate>Thu, 01 Jan 2015 00:00:00 +0000</pubDate><guid>http://blog.wegotoeleven.xyz/technical/jamf-pro-reported-ip-address/</guid><description>&lt;p&gt;I had a user with an issue recently where their Mac record in Jamf Pro was not being populated with a correct &amp;ldquo;Reported IP Address&amp;rdquo; value when connected to the company&amp;rsquo;s corporate WiFi. The IP address of the WiFi interface would report the correct value on the device and was singable.&lt;/p&gt;
&lt;p&gt;For context, this issue:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Persisted between inventory updates&lt;/li&gt;
&lt;li&gt;Would only ever be present when connecting to WiFi (i.e. the issue abated when disabling WiFi and connecting to Ethernet)&lt;/li&gt;
&lt;li&gt;Would not be resolved by forgetting the SSID and/or deleting and re-adding the network interface&lt;/li&gt;
&lt;li&gt;Would not be affected by renewing the DHCP lease.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Doing some digging, &lt;a href="https://learn.jamf.com/bundle/technical-articles/page/Collecting_the_IP_Address_and_Reported_IP_Address_in_Jamf_Pro.html"&gt;the documentation&lt;/a&gt; for the &amp;ldquo;Reported IP Address&amp;rdquo; field in Jamf Pro notes that:&lt;/p&gt;</description><content:encoded><![CDATA[<p>I had a user with an issue recently where their Mac record in Jamf Pro was not being populated with a correct &ldquo;Reported IP Address&rdquo; value when connected to the company&rsquo;s corporate WiFi. The IP address of the WiFi interface would report the correct value on the device and was singable.</p>
<p>For context, this issue:</p>
<ul>
<li>Persisted between inventory updates</li>
<li>Would only ever be present when connecting to WiFi (i.e. the issue abated when disabling WiFi and connecting to Ethernet)</li>
<li>Would not be resolved by forgetting the SSID and/or deleting and re-adding the network interface</li>
<li>Would not be affected by renewing the DHCP lease.</li>
</ul>
<p>Doing some digging, <a href="https://learn.jamf.com/bundle/technical-articles/page/Collecting_the_IP_Address_and_Reported_IP_Address_in_Jamf_Pro.html">the documentation</a> for the &ldquo;Reported IP Address&rdquo; field in Jamf Pro notes that:</p>
<blockquote>
<p>The reported IP address is collected by the jamf binary during a check-in and can be received by executing the following command:</p>
<p><code>ifconfig</code></p>
</blockquote>
<p>While this is technically correct, the documentation doesn&rsquo;t explicitly state where this information is collected from during an inventory; it&rsquo;s actually parsed from a file on disk, <code>/Library/Preferences/SystemConfiguration/preferences.plist</code>. Searching though this file for the incorrect IP address highlighted that the user had many, <em>many</em> interfaces (typically caused when moving between desks that have hubs or monitors with build in Ethernet interfaces), and one of these used a Static IP address assignment:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">IPV4 = {
</span></span><span class="line"><span class="cl">	Addresses = (
</span></span><span class="line"><span class="cl">		&#34;10.14.28.1&#34;
</span></span><span class="line"><span class="cl">	);
</span></span><span class="line"><span class="cl">	ConfigMethod = Manual;
</span></span><span class="line"><span class="cl">	...
</span></span><span class="line"><span class="cl">}
</span></span></code></pre></div><p>Finding and removing the static IP from the above interface immediately fixed the issue the next time that the Mac checked into Jamf Pro.</p>
<p>It does beg the question however, whether the &ldquo;Reported IP Address&rdquo; collection process in Jamf Pro could be improved to validate whether the interface is connected before logging it.</p>
]]></content:encoded></item></channel></rss>