Solaris Question - How to find outgoing traffic on UDP ports

Hello All,

I am trying find a command that would show me the stats of outgoing traffic on UPD ports on a Solaris 10 box. I would appreciate if anybody could help me out on this.

Thank you much!!!

Best Regards
Sudharma.

netstat -a to see what UDP ports are open.

netstat -sd to get a summary of the traffic

Thank you very much...

when i ran netstat -sd , got the following result..

--- Entry 2 ---
Group = 263, mib_id = 0, length = 40, valp = 0x8078688

UDP udpInDatagrams = 3290 udpInErrors = 0
udpOutDatagrams = 3307 udpOutErrors = 0

what is 3290 and 3307 here ??

Thank you again!!

Best Regards
Sudharma

packet counts

By the way, you can use the -P udp modifier to only receive UDP information

1 Like

Thank you much !!!

---------- Post updated at 01:21 PM ---------- Previous update was at 10:39 AM ----------

Hi All,

Is it possible to know which UDP port is generating how much traffic ??

Thank you much!!

Best Regards
Sudharma.

Try:

snoop -V udp | grep UDP

Thank you much!! when i run this command i get the output as below what does this mean?? when i great ps -ef |grep 1985 i don't see any port number open.. what is 1985 here and i want to see number of outgoing packets on these UDP ports. . .any suggestions ...

172.xx.xx.252 -> 224.0.0.2 UDP D=1985 S=1985 LEN=28
172.xx.xx.253 -> 224.0.0.2 UDP D=1985 S=1985 LEN=28
172.xx.xx.252 -> 224.0.0.2 UDP D=1985 S=1985 LEN=28
172.xx.xx.253 -> 224.0.0.2 UDP D=1985 S=1985 LEN=28
172.xx.xx.252 -> 224.0.0.2 UDP D=1985 S=1985 LEN=28
172.xx.xx.253 -> 224.0.0.2 UDP D=1985 S=1985 LEN=28
172.xx.xx.252 -> 224.0.0.2 UDP D=1985 S=1985 LEN=28
172.xx.xx.253 -> 224.0.0.2 UDP D=1985 S=1985 LEN=28

Thank you again!!!

First link from google, after searching for "1985 udp": Hot Standby Router Protocol (HSRP): Frequently Asked Questions [IP Application Services] - Cisco Systems