Sponsored Content
Top Forums UNIX for Advanced & Expert Users check inbound traffic on ports Post 17609 by Cameron on Monday 18th of March 2002 02:17:34 PM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
PKTSETUP(8)						    System Management Commands						       PKTSETUP(8)

NAME
pktsetup - set up and tear down packet device associations SYNOPSIS
pktsetup packet_device block_device pktsetup -d packet_device pktsetup -s DESCRIPTION
Pktsetup is used to associate packet devices with CD or DVD block devices, so that the packet device can then be mounted and potentially used as a read/write filesystem. This requires kernel support for the packet device, and the UDF filesystem. See: http://packet-cd.sourceforge.net/ <> EXIT STATUS
Pktsetup returns 0 on success, nonzero on failure. OPTIONS
-d packet-device Delete the association between the specified packet-device and its block device. -s Show device mappings. EXAMPLE
The following commands provide an example of using the packet device. cdrwtool -d /dev/sr0 -q pktsetup /dev/pktcdvd0 /dev/sr0 mount -t udf /dev/pktcdvd0 /mnt ... umount /dev/pktcdvd0 pktsetup -d /dev/pktcdvd0 FILES
/dev/pktcdvd0,/dev/pktcdvd1,... CD/DVD packet devices (block major=97) AUTHOR
Jens Axboe <axboe@suse.de> AVAILABILITY
pktsetup is part of the udftools package and is available from http://linux-udf.sourceforge.net. SEE ALSO
cdrwtool(1) udftools-1.0.0b2 2002-02-09 PKTSETUP(8)
All times are GMT -4. The time now is 11:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy