Best Answer
I just noticed that not all versions of netstat on Linux give the same information (for
instance squeeze's doesn't give you the multicast statistics).
You can also get the information directly from /proc (/proc/net/snmp, /proc/net/netstat,
/proc/net/snmp6). You can also install a snmp agent on the server to be able to query that
information remotely (and locally as well).
snmptable -v2c -c <community> <hostname>
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable
snmptable -v2c -c <community> <hostname>
.iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable
|
User "s" please let me know which Amazon site you want your voucher from and Server Circle
will send it.
|
Thank you, @s !
I will avoid the scripting method and install ntop and set up SNMP
from the switches. netstat -s is also very useful for my needs.
I contacted Server Circle to pass on my £10 Amazon voucher.
|
Thank you very much, @s.
I didn't know about pv before. That command line is very,very close to what I
need.
That's perfect for a realtime look and I've put and not arp after
multicast to ignore ARP traffic.
I'm really looking for a script to grab, say, five values at three times a day and then mail
me the results from cron.daily so I can look for trends over the last day to see
if noise on the subnet has increased.
|
Which OS are you on ? Can you please let me know ?
|