check inbound traffic on ports


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users check inbound traffic on ports
# 1  
Old 03-18-2002
check inbound traffic on ports

Hello,

I'm new to the forum and would like to know how to check
inbound traffic on various port numbers.

I would also like to know how to open and close various ports
on a unix box running solaris 8.

Thanks in advance.

sunoracle
# 2  
Old 03-18-2002
Not exactly what you're after, but you can check stats like so...

date +'%d-%h-%Y %X %Z' >> /some_stats/net/netstats
ndstat | grep -e dev -e Octets -e In: -e Out: >> /some_stats/net/netstats


Will provide stats like the following: (two network cards attached to a SCO box - in this case)
Code:
20-Feb-2002 17:07:06 AEST
/dev/net1    00:a0:c9:e1:64:14     00:a0:c9:e1:64:14
      Unicast  Multicast Broadcast  Error    Octets   Queue Length
In:   48749022         0    148769      0  2663935393            1
Out:    129658         0      2696    827    19689166            0
/dev/net2    00:04:ac:4c:cc:4c     00:04:ac:4c:cc:4c
      Unicast  Multicast Broadcast  Error    Octets   Queue Length
In:   37314805         0    148205      0  4099292043            0
Out: 167753368         0     12662      0   908155738            0

Hope that helps some Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check unused ports in a given range and assign an open one

Hi. I need to add code to my KSH script to automatically assign an open port number from a pre-defined range to an Oracle listener. Should I use: lsof -i or netstat -vatn or something else? Thanks. (9 Replies)
Discussion started by: user052009
9 Replies

2. AIX

How to check that rpcbind/portmap on AIX allowes updates from non privileged ports?

Hi, I am trying to implement a service on AIX based on ONCRPC protocal and I want to use a RPC library called oncrpc4j because it is a non-blocked i/o library. I found it works fine on my work machine (WIndows 7) but failed on my AIX work station. The author of oncrpc4j told me that check that... (1 Reply)
Discussion started by: derekhsu
1 Replies

3. Shell Programming and Scripting

Script to check numerous ports / servers (Solaris native)

Hi I'd like to check that a bunch of firewall rules have been applied and, therefore, want to write a script that basically does the following: telnet serverA port1 telnet serverA port2 telnet serverB port1 telnet serverB port2 I would just compile the list in excel and run it as a... (2 Replies)
Discussion started by: jibberish
2 Replies

4. Solaris

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. (7 Replies)
Discussion started by: sudharma
7 Replies

5. Cybersecurity

check ports on server

Hi All, I've been using this to verify if ports is open on a server. For example I would like to check port 5887, "telnet ip.of.server 5887" using on dos. If there's response on it then I can say it's open, if not then it's close. Is that assumption accurate? Thanks for any comments you... (4 Replies)
Discussion started by: itik
4 Replies

6. Shell Programming and Scripting

Script to automatically check ports in shell?

Good day, I'm new to linux environment...Is there any scripts available for me to check ports (lets say port 80 and 21) through shell with just a single commandline? Any response is very much appreciated.. thanks (4 Replies)
Discussion started by: arsonist
4 Replies

7. Shell Programming and Scripting

Check open ports every ...

Hello, i need a script (bash type maybe?..), which would check open ports on 127.0.0.1 and then compare open ports with "registered/allowed" port list and try to kill the program who uses unregistered ports. It would be great that script would be started lets say every 5 or 10 minutes. You see i... (2 Replies)
Discussion started by: MorchiuS
2 Replies

8. Shell Programming and Scripting

Processing inbound mail

Hi All Has anyone written any script that would listen for inbound mail and based on its subject process the body ? Thx J (3 Replies)
Discussion started by: jhansrod
3 Replies

9. IP Networking

check inbound traffic on ports

Hello, I'm new to the forum and would like to know how to check inbound traffic on various port numbers. I would also like to know how to open and close various ports on a unix box running solaris 8. Thanks in advance. sunoracle (2 Replies)
Discussion started by: sunoracle
2 Replies
Login or Register to Ask a Question