Hi, We are using 'netstat -s -P tcp 5' and then parse out the value of tcpInInorderBytes in the past 5 seconds to calculate the bandwidth usage of our system's nic card. It works. However, now we found that netstat will output a extremely large number of tcpInInorderBytes every 502 seconds. Is it a bug of netstat? Or a problem in our usage? Any help is appreciated.
The log of our script below are as below: Tuesday, July 21, 2009 12:32:50 PM GST: bandwidth = 0.302Mbps Tuesday, July 21, 2009 12:32:55 PM GST: tcpInInorderSegs = 850 tcpInInorderBytes =182336 Tuesday, July 21, 2009 12:32:55 PM GST:tcpInInorderSegs = 850, tcpInInorderBytes = 182336 Tuesday, July 21, 2009 12:32:55 PM GST: bandwidth = 0.292Mbps Tuesday, July 21, 2009 12:33:00 PM GST: tcpInInorderSegs = 982 tcpInInorderBytes =188662 Tuesday, July 21, 2009 12:33:00 PM GST:tcpInInorderSegs = 982, tcpInInorderBytes = 188662 Tuesday, July 21, 2009 12:33:00 PM GST: bandwidth = 0.302Mbps [b]Tuesday, July 21, 2009 12:33:10 PM GST: tcpInInorderSegs =180700347 tcpInInorderBytes =1358250363 Tuesday, July 21, 2009 12:33:10 PM GST:tcpInInorderSegs = 180700347, tcpInInorderBytes = 1358250363 Tuesday, July 21, 2009 12:33:10 PM GST: bandwidth = 2173.201Mbps [/b]Tuesday, July 21, 2009 12:33:15 PM GST: tcpInInorderSegs = 782 tcpInInorderBytes =163411 Tuesday, July 21, 2009 12:33:15 PM GST:tcpInInorderSegs = 782, tcpInInorderBytes = 163411 Tuesday, July 21, 2009 12:33:15 PM GST: bandwidth = 0.261Mbps Tuesday, July 21, 2009 12:33:20 PM GST: tcpInInorderSegs = 839 tcpInInorderBytes =160607 Tuesday, July 21, 2009 12:33:20 PM GST:tcpInInorderSegs = 839, tcpInInorderBytes = 160607 ... [b]Tuesday, July 21, 2009 12:41:32 PM GST: tcpInInorderSegs =180781039tcpInInorderBytes =1375164035 Tuesday, July 21, 2009 12:41:32 PM GST:tcpInInorderSegs = 180781039, tcpInInorderBytes = 1375164035 Tuesday, July 21, 2009 12:41:32 PM GST: bandwidth = 2200.262Mbps[/b] -- This message posted from opensolaris.org _______________________________________________ networking-discuss mailing list [email protected]
