<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting syntax error from interfaces.sh for *nix app in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84853#M3073</link>
    <description>&lt;P&gt;we are still having this issue even after upgrading the *nix app to the latest version.  anyone?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2011 20:40:30 GMT</pubDate>
    <dc:creator>menkurau</dc:creator>
    <dc:date>2011-11-14T20:40:30Z</dc:date>
    <item>
      <title>Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84846#M3066</link>
      <description>&lt;P&gt;Ubuntu 10.10 / Splunk 4.2.1 / App: *nix 4.2&lt;/P&gt;

&lt;P&gt;Yesterday we upgraded to the newest version of Splunk (4.2.1) and upgraded *nix app (4.2).  Splunkd is now reporting the following errors:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;message from "/opt/splunk/etc/apps/unix/bin/interfaces.sh" awk: line 1: syntax error at or near }&lt;/LI&gt;
&lt;LI&gt;message from "/opt/splunk/etc/apps/unix/bin/interfaces.sh" awk: line 1: syntax error at or near else&lt;/LI&gt;
&lt;LI&gt;message from "/opt/splunk/etc/apps/unix/bin/interfaces.sh" awk: line 1: syntax error at or near ,&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I'm unable to identify what the syntax problem is.  I've compared the interfaces.sh file on our server to what is posted on the web and they are the same.  Is anyone else experiencing this problem?  &lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2011 00:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84846#M3066</guid>
      <dc:creator>cyndiback</dc:creator>
      <dc:date>2011-04-20T00:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84847#M3067</link>
      <description>&lt;P&gt;cyndiback, I don't have a specific fix at this time, but this is a known issue logged as (SOLN-1032).  Please submit your own case to &lt;A href="mailto:support@splunk.com"&gt;support@splunk.com&lt;/A&gt; for tracking.&lt;/P&gt;

&lt;P&gt;Moderator edit:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt; this issue later became SPL-41361, and should be fixed in the next maintenance release of the app.  In the meantime, the glorious Vainstein has provided a patch for ifconfig.sh (sorry about the lines wrapping):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# diff interfaces.sh interfaces-mod.sh 
41,42c41,42
&amp;lt;       SPEED=`dmesg | awk '/[Ll]ink( is | )[Uu]p/ &amp;amp;&amp;amp; /'$iface'/ {for (i=1; i&amp;lt;=NF; ++i) {if (match($i, /([0-9]+)([Mm]bps)/, array)) {print array[1] "Mb/s"} else { if (match($i,/[Mm]bps/)) {print $(i-1) "Mb/s"} } } }' | sed '$!d'`
&amp;lt;       DUPLEX=`dmesg | awk '/[Ll]ink( is | )[Uu]p/ &amp;amp;&amp;amp; /'$iface'/ {for (i=1; i&amp;lt;=NF; ++i) {if (match($i, /([\-\_a-zA-Z0-9]+)([Dd]uplex)/, array)) {print array[1]} else { if (match($i, /[Dd]uplex/)) {print $(i-1)} } } }' | sed 's/[-_]//g; $!d'`
---
&amp;gt;       SPEED=`dmesg  | awk '/[Ll]ink( is | )[Uu]p/ &amp;amp;&amp;amp; /'$iface'/ {for (i=1; i&amp;lt;=NF; ++i) {if (match($i, "([0-9]+)([Mm]bps)"))             {print $i} else { if (match($i, "[Mm]bps"))   {print $(i-1) "Mb/s"} } } }' | sed '$!d'`
&amp;gt;       DUPLEX=`dmesg | awk '/[Ll]ink( is | )[Uu]p/ &amp;amp;&amp;amp; /'$iface'/ {for (i=1; i&amp;lt;=NF; ++i) {if (match($i, "([\-\_a-zA-Z0-9]+)([Dd]uplex)")) {print $i} else { if (match($i, "[Dd]uplex")) {print $(i-1)       } } } }' | sed 's/[-_]//g; $!d'`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2011 00:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84847#M3067</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-04-20T00:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84848#M3068</link>
      <description>&lt;P&gt;I am seeing the same error as well&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2011 15:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84848#M3068</guid>
      <dc:creator>vadud3</dc:creator>
      <dc:date>2011-06-03T15:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84849#M3069</link>
      <description>&lt;P&gt;+1 having this issue on a new install, further information would be greatly appreciated...&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2011 22:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84849#M3069</guid>
      <dc:creator>poconnell</dc:creator>
      <dc:date>2011-07-19T22:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84850#M3070</link>
      <description>&lt;P&gt;This is working fine on my linux host, and on Solaris for me.  4.2.1 as well.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 05:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84850#M3070</guid>
      <dc:creator>mikelanghorst</dc:creator>
      <dc:date>2011-07-20T05:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84851#M3071</link>
      <description>&lt;P&gt;This is caused by mawk. Debian installs mawk instead of gawk by default. Install gawk instead and the error will go away.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2011 13:46:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84851#M3071</guid>
      <dc:creator>dseagrav</dc:creator>
      <dc:date>2011-09-07T13:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84852#M3072</link>
      <description>&lt;P&gt;Tried resetting to gawk and rebooted machine...This did not fix the error.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2011 20:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84852#M3072</guid>
      <dc:creator>cyndiback</dc:creator>
      <dc:date>2011-09-14T20:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84853#M3073</link>
      <description>&lt;P&gt;we are still having this issue even after upgrading the *nix app to the latest version.  anyone?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2011 20:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84853#M3073</guid>
      <dc:creator>menkurau</dc:creator>
      <dc:date>2011-11-14T20:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84854#M3074</link>
      <description>&lt;P&gt;I'm also experiencing this same issue my Ubuntu server&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2012 11:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84854#M3074</guid>
      <dc:creator>cafpereira</dc:creator>
      <dc:date>2012-01-06T11:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting syntax error from interfaces.sh for *nix app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84855#M3075</link>
      <description>&lt;P&gt;On debian :&lt;BR /&gt;
 - install gawk&lt;BR /&gt;
 - modify interfaces.sh : &lt;BR /&gt;
             -replace awk by gawk&lt;BR /&gt;
             - modify the line :  CMD='ifconfig'.   by removing the dot at the end of this line&lt;/P&gt;

&lt;P&gt;it works for me after that&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 09:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Getting-syntax-error-from-interfaces-sh-for-nix-app/m-p/84855#M3075</guid>
      <dc:creator>dchayla</dc:creator>
      <dc:date>2012-01-26T09:29:18Z</dc:date>
    </item>
  </channel>
</rss>

