<?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: netstat in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928929#M105053</link>
    <description>Hi Roy:&lt;BR /&gt;&lt;BR /&gt;I'd consider crafting a perl script that opens a pipe to 'netstat', reads that output and parses and outputs as it goes.  This avoids the (temporary) file and brings you to the key element of your objective -- parsing and reporting the custom data you want.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 27 Sep 2005 11:21:57 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2005-09-27T11:21:57Z</dc:date>
    <item>
      <title>netstat</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928924#M105048</link>
      <description>I'm going to write some C-code to get info from netstat by the use of a 'system("netstat &amp;gt; /tmp/netstat.output")' call redirecting the output on a file I'll parse later. I'm wondering if exists an equivalent command (something like netstat()) I can use directly in my C-code. Can someone help me?</description>
      <pubDate>Mon, 26 Sep 2005 04:41:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928924#M105048</guid>
      <dc:creator>Roy Colica</dc:creator>
      <dc:date>2005-09-26T04:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: netstat</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928925#M105049</link>
      <description>Nettools package may contain source of netstat.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.cs-ipv6.lancs.ac.uk/pub/Code/Linux/Net_Tools/" target="_blank"&gt;ftp://ftp.cs-ipv6.lancs.ac.uk/pub/Code/Linux/Net_Tools/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Ref: &lt;A href="http://www.uwsg.iu.edu/hypermail/linux/net/9707.1/0128.html" target="_blank"&gt;http://www.uwsg.iu.edu/hypermail/linux/net/9707.1/0128.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Mon, 26 Sep 2005 04:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928925#M105049</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-26T04:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: netstat</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928926#M105050</link>
      <description>I feel you can use netstat &amp;gt; /tmp/netstat.output. Parse output file with c coding. Because parsing applications (awk, grep or perl) will be slower than the application made specially for specific parsing. &lt;BR /&gt;&lt;BR /&gt;You can combine c coding, netstat utility and scripting to suite requirement. It is enough to use netstat + scripting simply. &lt;BR /&gt;&lt;BR /&gt;If you have a great time in speedy IT world then start to work. ;)&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Sep 2005 04:53:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928926#M105050</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-26T04:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: netstat</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928927#M105051</link>
      <description>&lt;BR /&gt;I don't know if there is a specific function available to read the same data as the netstat command in "C".  Since there are low-level kernel calls going on to get this data, I'd imagine that you are out of luck without access to the source.&lt;BR /&gt;&lt;BR /&gt;HOWEVER, if you want to be slick within your "C" program, instead of writing the output of netstat to a temp file and then reading the temp file back in, you might want to explore "popen()".  This fuction will run a shell command for you, and give you a file descriptor, from which you can read as if you were reading from a file.  Check out the man page for popen (man 3 popen) for more info.&lt;BR /&gt;&lt;BR /&gt;-- Tom</description>
      <pubDate>Mon, 26 Sep 2005 14:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928927#M105051</guid>
      <dc:creator>Tom Schroll</dc:creator>
      <dc:date>2005-09-26T14:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: netstat</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928928#M105052</link>
      <description>You could get some SNMP libraries and issue MIB requests to an SNMP agent running on the system - assuming of course that there is an SNMP agent running on the system.&lt;BR /&gt;&lt;BR /&gt;The interface(s) used by the HP-UX netstat command are not documented.&lt;BR /&gt;&lt;BR /&gt;There may be some statistics you can retrieve via pstat() calls on later versions of HP-UX.</description>
      <pubDate>Tue, 27 Sep 2005 11:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928928#M105052</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2005-09-27T11:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: netstat</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928929#M105053</link>
      <description>Hi Roy:&lt;BR /&gt;&lt;BR /&gt;I'd consider crafting a perl script that opens a pipe to 'netstat', reads that output and parses and outputs as it goes.  This avoids the (temporary) file and brings you to the key element of your objective -- parsing and reporting the custom data you want.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 27 Sep 2005 11:21:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928929#M105053</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-09-27T11:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: netstat</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928930#M105054</link>
      <description>I understand there's no way to perform the command without invoking using the netstat call, but I had some useful comments on how do it faster.</description>
      <pubDate>Wed, 28 Sep 2005 04:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netstat/m-p/4928930#M105054</guid>
      <dc:creator>Roy Colica</dc:creator>
      <dc:date>2005-09-28T04:32:04Z</dc:date>
    </item>
  </channel>
</rss>

