<?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: ifconfig -a in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023741#M300403</link>
    <description>I learn something new everyday.</description>
    <pubDate>Wed, 20 Jun 2007 11:39:39 GMT</pubDate>
    <dc:creator>Court Campbell</dc:creator>
    <dc:date>2007-06-20T11:39:39Z</dc:date>
    <item>
      <title>ifconfig -a</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023736#M300398</link>
      <description>Has anyone written an HP equivalent to "ifconfig -a"?&lt;BR /&gt;&lt;BR /&gt;so far I have, &lt;BR /&gt;&lt;BR /&gt;# for i in `lanscan | awk '{print $5}' | grep lan`&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; ifconfig $i&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;lan0: flags=1843&lt;UP&gt;&lt;BR /&gt;        inet 4.248.207.179 netmask fffff800 broadcast 4.248.207.255&lt;BR /&gt;ifconfig: no such interface&lt;BR /&gt;ifconfig: no such interface&lt;BR /&gt;ifconfig: no such interface&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But this does not show any of the virtual interfaces like the one I have on lan0:801 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/UP&gt;</description>
      <pubDate>Wed, 20 Jun 2007 10:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023736#M300398</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2007-06-20T10:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: ifconfig -a</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023737#M300399</link>
      <description>maybe you should try grep'ing for INTERFACE_NAME in /etc/rc.config.d/netconf, then pull the lan* string out. But this would not work for vitual ip's from serviceguard packages.</description>
      <pubDate>Wed, 20 Jun 2007 11:08:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023737#M300399</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-06-20T11:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: ifconfig -a</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023738#M300400</link>
      <description>Try the awk construct below:&lt;BR /&gt;&lt;BR /&gt;# netstat -in | awk 'NR&amp;gt;1 {print $1}' | xargs -n1 ifconfig</description>
      <pubDate>Wed, 20 Jun 2007 11:10:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023738#M300400</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-06-20T11:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: ifconfig -a</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023739#M300401</link>
      <description>This one should be fairly comprehensive. There's a * at the end of redundant NICs for SG in the netstat output, which cause ifconfig to give the "no such interface" error.&lt;BR /&gt;&lt;BR /&gt;for LAN in $(netstat -in | awk 'NR&amp;gt;1 {print $1}' | sed 's/*//')&lt;BR /&gt;do&lt;BR /&gt;  ifconfig $LAN&lt;BR /&gt;done</description>
      <pubDate>Wed, 20 Jun 2007 11:14:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023739#M300401</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2007-06-20T11:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: ifconfig -a</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023740#M300402</link>
      <description>Actually Jeff is spot on about the asterisk at the end of the standby NICs. So use the tweaked awk code below:&lt;BR /&gt;&lt;BR /&gt;# netstat -in | awk 'NR&amp;gt;1{printf("%s\n",$1~/\*/?z[split($1,z,"*")-1]:$1)}' | xargs -n1 ifconfig</description>
      <pubDate>Wed, 20 Jun 2007 11:24:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023740#M300402</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-06-20T11:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: ifconfig -a</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023741#M300403</link>
      <description>I learn something new everyday.</description>
      <pubDate>Wed, 20 Jun 2007 11:39:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ifconfig-a/m-p/4023741#M300403</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-06-20T11:39:39Z</dc:date>
    </item>
  </channel>
</rss>

