<?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: N/w stats through lanadmin for virtual ip addresses in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977439#M419098</link>
    <description>Anil,&lt;BR /&gt;&lt;BR /&gt;Is there no other way than netstat -in ?&lt;BR /&gt;OK, then can you tell me what is the relation between the pkts and bytes, as netstat -in shows the stats in Input and output packets, how do I determine the traffic in bytes ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ninad</description>
    <pubDate>Fri, 05 May 2006 04:21:01 GMT</pubDate>
    <dc:creator>Ninad_1</dc:creator>
    <dc:date>2006-05-05T04:21:01Z</dc:date>
    <item>
      <title>N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977437#M419096</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to collect network statistics for one of my servers which is a node in a cluster and hence has virtual ip addresses used for the packages.&lt;BR /&gt;I am using lanadmin -g mibstats PPA# | grep -i octets&lt;BR /&gt;to get the input and output bytes transferred count.&lt;BR /&gt;Now if I give the PPA# as the virtual port no e.g. 1:1 for lan1:1 then it gives error "Invalid PPA Number entry"&lt;BR /&gt;Why is it so ? How can I get the stats for the traffic thru the virtual ip address.&lt;BR /&gt;I know that the traffic will finally go thru the same port i.e. lan1,lan1:1 and lan1:2 traffic will finally go thru lan0 port only, but I want to know the stats for each virtual interface individually. How can I find out this?&lt;BR /&gt;If I do a netstat -in - it shows stats for each virtual port - but it is in packets so I dont know how that relates to bytes. So why not lanadmin can gives similar results.&lt;BR /&gt;&lt;BR /&gt;Outputs&lt;BR /&gt;lanscan&lt;BR /&gt;Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI&lt;BR /&gt;Path     Address        In# State NamePPA        ID  Type      Support Mjr#&lt;BR /&gt;0/2/0    0x00306E032E8D 16  UP    lan16 snap16   1   ETHER     Yes     119&lt;BR /&gt;1/0/0    0x00108327B55B 1   UP    lan1 snap1     2   ETHER     Yes     119&lt;BR /&gt;7/2/0    0x00306E032E82 15  UP    lan15 snap15   3   ETHER     Yes     119&lt;BR /&gt;2/0/0    0x00108327A5CF 2   UP    lan2 snap2     4   ETHER     Yes     119&lt;BR /&gt;3/0/0    0x00108327B54C 4   UP    lan4 snap4     5   ETHER     Yes     119&lt;BR /&gt;4/0/0    0x00108327A5A5 0   UP    lan0 snap0     6   ETHER     Yes     119&lt;BR /&gt;5/0/0    0x0060B0582028 3   UP    lan3           7   FDDI      Yes     119&lt;BR /&gt;7/0/0    0x00108327B57A 20  UP    lan20 snap20   8   ETHER     Yes     119&lt;BR /&gt;&lt;BR /&gt;netstat -in&lt;BR /&gt;Name           Mtu Network            Address                 Ipkts      Opkts&lt;BR /&gt;lan3          4352 10.221.40.0        10.221.40.92       2420813607 1200141110&lt;BR /&gt;lan2*         1500 none               none                        0          0&lt;BR /&gt;lan1:1        1500 10.221.51.0        10.221.51.98         25650528      42192&lt;BR /&gt;lan1          1500 10.221.51.0        10.221.51.92       1373617673 1660757230&lt;BR /&gt;lan0          1500 10.221.11.0        10.221.11.92           778319     491294&lt;BR /&gt;lo0           4136 127.0.0.0          127.0.0.1            35288772   35288820&lt;BR /&gt;lan15         1500 192.168.3.0        192.168.3.92                2          2&lt;BR /&gt;lan1:2        1500 10.221.51.0        10.221.51.87         50580167   49574385&lt;BR /&gt;lan4*         1500 none               none                        0          0&lt;BR /&gt;lan20         1500 10.221.55.0        10.221.55.92        329147208  140013030&lt;BR /&gt;&lt;BR /&gt;lanadmin -g mibstats 1 | grep -i oct &lt;BR /&gt;Inbound Octets                  = 3356871557&lt;BR /&gt;Outbound Octets                 = 2391383620&lt;BR /&gt;lanadmin -g mibstats 1:2 | grep -i oct &lt;BR /&gt;Invalid PPA Number entry&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ninad</description>
      <pubDate>Fri, 05 May 2006 03:42:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977437#M419096</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-05T03:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977438#M419097</link>
      <description>You can not do that. You can get stats only for physical interface. Check netstat -in and in and out packets. That may help you.&lt;BR /&gt;&lt;BR /&gt;Also, you may want to check MWA stats. But I think, that will also give stats for physical NIC and not virtual.</description>
      <pubDate>Fri, 05 May 2006 03:47:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977438#M419097</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-05-05T03:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977439#M419098</link>
      <description>Anil,&lt;BR /&gt;&lt;BR /&gt;Is there no other way than netstat -in ?&lt;BR /&gt;OK, then can you tell me what is the relation between the pkts and bytes, as netstat -in shows the stats in Input and output packets, how do I determine the traffic in bytes ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ninad</description>
      <pubDate>Fri, 05 May 2006 04:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977439#M419098</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-05T04:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977440#M419099</link>
      <description>What you see in netstat -in is in packets. one packet is equal to MTU of NIC.</description>
      <pubDate>Fri, 05 May 2006 04:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977440#M419099</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-05-05T04:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977441#M419100</link>
      <description>Ninad,&lt;BR /&gt;&lt;BR /&gt;Try netstat -p tcp or &lt;PROTOCOL&gt;, this gives conversion in bytes.&lt;BR /&gt;&lt;BR /&gt;If you need a specific interface then try&lt;BR /&gt;netstat -I lan0&lt;BR /&gt;&lt;BR /&gt;Chan&lt;BR /&gt;&lt;BR /&gt;&lt;/PROTOCOL&gt;</description>
      <pubDate>Fri, 05 May 2006 04:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977441#M419100</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-05-05T04:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977442#M419101</link>
      <description>Anil,&lt;BR /&gt;&lt;BR /&gt;1. The MTU size as I understand is the maximum transfer size and not nessecary that each packet transmitted or received is of that size only - it can be less than that as well. Please correct me if I am wrong.&lt;BR /&gt;So how do I map packets to bytes ? &lt;BR /&gt;&lt;BR /&gt;2. How do you people check network statistics for a server ? If not able to do at switch level and need to do this at server level?&lt;BR /&gt;3. What do you do for the virtual interfaces ?&lt;BR /&gt;4. How will you calculate net stats for each configured SG package ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chan,&lt;BR /&gt;&lt;BR /&gt;The commands you mentioned again give stats either for the physical interface [ netstat -I] or overall TCP [ netstat -p ] , but what I want to understand really is how much traffic is there for each SG package using the different virtual ips.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ninad</description>
      <pubDate>Fri, 05 May 2006 05:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977442#M419101</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-05T05:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977443#M419102</link>
      <description>Then you will have to get MWA stats. check all metrics available in /var/opt/perf/reptall. Use extract command to extract the data you want. (But again, you will get stats for physical NIC and not virtual)</description>
      <pubDate>Fri, 05 May 2006 05:46:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977443#M419102</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-05-05T05:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977444#M419103</link>
      <description>Anil/All,&lt;BR /&gt;&lt;BR /&gt;Would you be able to provide any inputs on the above quries?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ninad</description>
      <pubDate>Fri, 05 May 2006 07:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977444#M419103</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-05T07:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977445#M419104</link>
      <description>If you have iptables you can count the packet stats in chains.  Does that help?&lt;BR /&gt;&lt;BR /&gt;# iptables -L -v | grep Chain&lt;BR /&gt;Chain INPUT (policy ACCEPT 4847376 packets, 20383636 bytes)&lt;BR /&gt;Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)&lt;BR /&gt;Chain OUTPUT (policy ACCEPT 993837 packets, 69736376 bytes) &lt;BR /&gt;&lt;BR /&gt;I think may be stuck with packets-only.  But bearing in mind the finite number of packets per second, based on 10/100/1000mbits, the ratio of packet types you can get from netstat -s, the actual number you are receiving in netstat -i, add this to the traffic you also get on your main (non-virtual) interface, you can get an upper-limit on the volume of traffic and a likely lower-limit. &lt;BR /&gt; &lt;BR /&gt;Bear in mind that packets go out from the base interface (source IP != your virtual IP) by default.&lt;BR /&gt;&lt;BR /&gt;You could also try to segment your IP usage more by ensuring that local connections use a different hostname, therefore a different IP, therefore the stats get routed elsewhere.  For example, my informix database accepts connections locally and remotely by hostname/IP.  Database traffic bumps up the packet stats of whichever interface is connected through, including local users.  I just proved this by testing a test data copy from one instance to another on the same machine, initiated locally, but communicating over a normally quiet lan.  The packet stats went up by about 5000 a second.&lt;BR /&gt;&lt;BR /&gt;In the end, I think you may get the most accurate stats by querying your firewall.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 May 2006 07:38:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977445#M419104</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2006-05-05T07:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977446#M419105</link>
      <description>1. The MTU size as I understand is the maximum transfer size and not nessecary that each packet transmitted or received is of that size only - it can be less than that as well. Please correct me if I am wrong. &lt;BR /&gt;So how do I map packets to bytes ? &lt;BR /&gt;&amp;gt;&amp;gt;You are correct. You really can not do that.&lt;BR /&gt;&lt;BR /&gt;2. How do you people check network statistics for a server ? If not able to do at switch level and need to do this at server level? &lt;BR /&gt;&amp;gt;&amp;gt;If not at switch level, we do it with MWA metrics for individual NICs. There are many metrics in /var/opt/perf/reptall. Set it to what you want and run extract to get required data. man extract for details. Basically, you need to as follows.&lt;BR /&gt;extract -v -gapkdztncuyGADZTNUY -r "rept_file" -s "start_date_time" -e "end_date_time" -f out_put_file&lt;BR /&gt;3. What do you do for the virtual interfaces ? &lt;BR /&gt;&amp;gt;&amp;gt;All the data that flows through virtual interface is basically going through physical NIC. So does it matter. I have no clue how one would do this.&lt;BR /&gt;4. How will you calculate net stats for each configured SG package ?&lt;BR /&gt;&amp;gt;&amp;gt;Again, each package will be basically a physical NIC. So again use extract with required NICs</description>
      <pubDate>Fri, 05 May 2006 07:40:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977446#M419105</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-05-05T07:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977447#M419106</link>
      <description>I think I have to go with stats for physical interface only. What I was intending to do was to understand the stats on n/w usage by each package, anyway I have to settle down with physical port stats.&lt;BR /&gt;&lt;BR /&gt;Thanks all,&lt;BR /&gt;Ninad</description>
      <pubDate>Fri, 05 May 2006 07:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977447#M419106</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-05-05T07:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: N/w stats through lanadmin for virtual ip addresses</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977448#M419107</link>
      <description>As already pointed-out, lanadmin provides stats for the "physical" interface.  That might be more accurately put as the "data-link" as it will IIRC also work for a VLAN interface.&lt;BR /&gt;&lt;BR /&gt;A logical interface (eg lan1:1) is purely a figment of the transport's imagination (ie IP and above).  The data link knows nothing about it.&lt;BR /&gt;&lt;BR /&gt;That leaves netstat.&lt;BR /&gt;&lt;BR /&gt;However...  IP should have an "interface MIB" for that logical interface, and one could query that via SNMP calls - assuming of course an SNMP server were running on the system.  &lt;BR /&gt;&lt;BR /&gt;I'm sure there are other calls one can make - as in what Glance/Measureware might do, but I'm not sure they are "documented" for end-user use, so if you do go grubbing around in the include files keep that in mind.  Might be worth checking pstat()'s manpage...</description>
      <pubDate>Fri, 05 May 2006 19:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/n-w-stats-through-lanadmin-for-virtual-ip-addresses/m-p/4977448#M419107</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-05-05T19:36:48Z</dc:date>
    </item>
  </channel>
</rss>

