How to monitor send/receive bytes


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to monitor send/receive bytes
# 8  
Old 12-06-2010
"netstat -i <interval>" would be better if you are asking about packets like stated in your initial question.
# 9  
Old 12-06-2010
yes "netstat - i" gives mi a packets, but I would rather have sent/received bytes..
# 10  
Old 12-06-2010
Code:
kstat -n interface | grep s64

should print both the packet and byte statistics for the specified interface.
# 11  
Old 12-06-2010
Hi jlliagre, thank you,but the command doesn`t do anything. When I use the "netstat" command, there is a row like "tcpOutDataBytes" which I assume are bytes sent out, but dont know which row is "data sent in"...
# 12  
Old 12-06-2010
Quote:
Originally Posted by msojka77
Hi jlliagre, thank you,but the command doesn`t do anything.
What interface do you use ?
What Solaris 10 release (cat /etc/release) ?
What says
Code:
kstat -n interface

(with interface replaced by your interface name)
Quote:
?
When I use the "netstat" command, there is a row like "tcpOutDataBytes" which I assume are bytes sent out, but dont know which row is "data sent in"...
The closer would be tcpInAckBytes but TCP statistics include local (internal) communication so is probably not what you are looking for.
# 13  
Old 12-07-2010
As interface I use TCP
I use Solrais 2009.06 snv_111b X86
when I use "jack@opensolaris:/# kstat -n tcp | grep s64" I can hear HDD runnig for a while and then it prints again "jack@opensolaris:/#"

So can you point me to where (what command) I should look?

Thank you very much
# 14  
Old 12-07-2010
"tcp" is hardly a network interface. It should be e1000g0, iwh0 or something similar.
What says
Code:
ifconfig -a

?
This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

Can not send files bigger than 1350 bytes

I am sending files over WAN from Ubuntu 8 to OSR 5.07 on regular basis without a problem using ftp and rsync. Today I can not send anything bigger than ~1350 bytes, tried ftp, rsync, scp, it becomes frozen and I have to kill the process. Smaller files are sent without issue. Telnet and ssh... (1 Reply)
Discussion started by: migurus
1 Replies

2. Shell Programming and Scripting

Send/receive file through serial using minicom

i have connected with my board through serial interface using minicom and i am running a bash script, which should test ethernet (ping test), USB read/write, RS232 .. I have managed to test ethernet and USB read/write. I test ethernet with ping. I test USB read/write, using dd and verifying... (10 Replies)
Discussion started by: linuxmember
10 Replies

3. Solaris

zfs send receive performance issues

I 'm trying to clone a zfs file system pool/u01 to a new file system called newpool/u01 using following commands zfs list zfs snapshot pool/u01@new zfs send pool/u01@new | zfs -F receive newpool/u01 Its a 100G file system snapshot and copied to same server on different pool and... (9 Replies)
Discussion started by: fugitive
9 Replies

4. Shell Programming and Scripting

Script to monitor for new file with ext .err and size > 0 bytes and perform a action or command

Hi All, I need to create a script to monitor a dir for new files with ext .err and also it should b a non empty files. and perform a action or command . We have a new ETL application that runs on a linux server, every times a etl fails it creates a .err file or updates the existing .err... (4 Replies)
Discussion started by: MAKHAN
4 Replies

5. Shell Programming and Scripting

Send Receive Mails

Hi All, I am writing one script to automate one long process. In this process we need to upload some input files and download some output files. So , I want to automate this upload and download by using mail functionality. I want to trigger this script when I am sending mail to server. I know... (0 Replies)
Discussion started by: NirajThakar
0 Replies

6. Programming

Send/Receive buffer size??

Dear friends, How do I find the TCP send and receive buffer size? (1 Reply)
Discussion started by: nagalenoj
1 Replies

7. UNIX for Dummies Questions & Answers

Can send but not receive email

Hi, One of the users in our company can send but not receive email. We are using SENDMAIL in conjunction with procmail. The funny thing is that all his sent email is in his /var/spool/mail but the email client does not pick anything up! He is using IMAP. Anyone see have any ideas? (2 Replies)
Discussion started by: mojoman
2 Replies

8. UNIX for Dummies Questions & Answers

I can send but cannot receive mail with unix?

Hi all, First post! I have just discovered that I can use unix to send mail to a mail address. I normally use entourage for my mail. This unix mail is very intriguing to me, but something is not working... I tried the search, but could not find the answer... This works: (in terminal)... (1 Reply)
Discussion started by: bjorn
1 Replies

9. IP Networking

Tcp Ip Send Receive Server Program

Requirements: A server program should read a file and send the message to the client . if the file is not there, then switch to the receive part of the same program and receive any messages from the socket. If no messages to receive then switch to send part of the program to... (2 Replies)
Discussion started by: Rajeshsu
2 Replies
Login or Register to Ask a Question