1833883 Members
1655 Online
110063 Solutions
New Discussion

Re: netstat questions!!

 
SOLVED
Go to solution
Jonathan Caplette
Regular Advisor

netstat questions!!

Hi guys,

When I run this command: netstat -n -I 3 , it's giving me the packets in and out every 3 sec for the interface, what I wanna know it's if I get, for exemple, 100 for packet in column, what is the size of each packet?? And how do I know if my network card is overloaded (for a 100Mbps)???

Thanks
Jonathan
7 REPLIES 7
Craig Rants
Honored Contributor
Solution

Re: netstat questions!!

Run lanadmin and check the stats out for that specific card. It will give you more info than netstat.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Sanjay_6
Honored Contributor
S.K. Chan
Honored Contributor

Re: netstat questions!!

# netstat -nr
==> at the pmtu column, gives you the packet size being sent and received.
Ron Kinner
Honored Contributor

Re: netstat questions!!

If you really want to see what is happening on your system run MRTG. It will draw some nice graphs over time which really show how busy your network is.

http://people.ee.ethz.ch/~oetiker/webtools/mrtg/

It's free and not difficult to set up.

If you insist on knowing everything about your packets you might want to look into tcpdump.

http://www.tcpdump.org/

Another great freebie.

By the way, S. K. Cahn, netstat -rn just shows the maximum packet size in the pmtu column. If you are doing a big ftp transfer then you will use lots of maximum sized packets but other protocols such as telnet tend to use much smaller ones. I suppose you can always do a worst case scenario and multiply the # of packets by 1500 bytes/packet times 8 bits/byte to get back to get a rough not-to-exceed estimate of the traffic load in bps.

Ron



Ron Kinner
Honored Contributor

Re: netstat questions!!

If your HP connects to a reasonably intelligent switch then the switch can tell you the load on the port and some can even break it down into so many of packet size range a, so many of packet size range b ...

Ron
Michael Tully
Honored Contributor

Re: netstat questions!!

Hi,

If you've got a problem with your 100Mbs
lan NIC it could be to do with having your
card set up as half-duplex. You can see
this using lanadmin and looking at the
number of 'late collisions'. To fix it
you need to make sure that you have the
appropriate patches and that you can change
it to full-duplex on the fly using SAM
or from the command line using
lanadmin -X 100FD 0 (card number)
Also you will need to modify your
/etc/rc.config.d/hpbase100conf file (HPUX11)
to reflect those changes.

HTH
-Michael
Anyone for a Mutiny ?
Jonathan Caplette
Regular Advisor

Re: netstat questions!!

Thanks for the hlep guys!!

ciaos!!