Sponsored Content
Top Forums UNIX for Dummies Questions & Answers TCP failed connection attempts from netstat -s Post 302399596 by cache51 on Monday 1st of March 2010 02:13:55 AM
Old 03-01-2010
TCP failed connection attempts from netstat -s

Dear experts,

I am seeing a lot of TCP failed connection attempts from "netstat -s" on one of our servers.
How can I pin point what connection failed and what are the ports involved?

Any tools/commands I can dig in deeper to diag. what went wrong on these "failed connection attempts"?

Thanks!
Code:
Tcp:
    112095 active connections openings
    72147 passive connection openings
    48412 failed connection attempts
    40150 connection resets received
    44 connections established
    21866875 segments received
    14295010 segments send out
    837 segments retransmited
    0 bad segments received.
    66489 resets sent


Last edited by Scott; 03-01-2010 at 08:04 PM.. Reason: Added code tags
 

9 More Discussions You Might Find Interesting

1. AIX

Denying IPaddress for Multiple Failed Login Attempts

Hi. I would like to be able to deny IP address for too many failed login attemps (either from ssh, sftp, ftp, etc). The system I wish this to work on is an AIX 5.1 system. I'm new to AIX but I'm a linux user. There is a program for linux called fail2ban which reads from the log files and see if... (1 Reply)
Discussion started by: metzgerh
1 Replies

2. AIX

ftp check for failed attempts

Hi, I have created the below ftp script to put files over to our capacity server, the check at the end works if ftp fails to run however if the script cannot login or the transfer itself failed there is no warnings. Does anyone know the syntax to trap the erorr codes or to put a check within... (3 Replies)
Discussion started by: chlawren
3 Replies

3. UNIX for Advanced & Expert Users

about TCP connection

Hi Experts, need help about release or refresh TCP Connection: i have the sample like below : application log connection: 0500 ( 192.168.0.1:36053) 00919 2007/05/10 23:30:25 112 13 2007/05/10 23:30:25 1969/12/31 17:00:00 0500 ( 192.168.0.1:36054) 00920 2007/05/10 23:30:26 000 00... (3 Replies)
Discussion started by: bucci
3 Replies

4. UNIX for Dummies Questions & Answers

netstat error(getnameinfo failed)

# netstat -a > /test/a getnameinfo failed getnameinfo failed getnameinfo failed getnameinfo failed getnameinfo failed command is working fine (as i get output in file /test/a) # dig -x 10.xxx.xxx.xxx ; <<>> DiG 9.3.3rc2 <<>> -x 10.203.xxx.xxx ;; global... (4 Replies)
Discussion started by: crackthehit007
4 Replies

5. UNIX for Dummies Questions & Answers

Query :: Using Netstat finding total value to a db connection

I wrote a very simple script to calculate the DB connection from an appserver and check the total netstat connection to a particular DB exceed 25 then it will send mail netstat -a 2> /dev/null | awk '/.*ESTAB/{print $5}' | cut -d. -f1 | uniq -c | awk '{if ($1 > 25)print $2," exceed ",$1;}' ... (1 Reply)
Discussion started by: senthil.ak
1 Replies

6. Solaris

How to kill the TCP ESTABLISHED connection in netstat

Hello, Actually there are some bugs in application which does not close the TCP connection to other server though CORBA. We need to kill that ESTABLISHED connections as new connection are not happeneing as the allocated ports were used and showing as ESTABLISHED Is there any... (4 Replies)
Discussion started by: GIC1986
4 Replies

7. Solaris

Solaris logs - Tracking failed attempts from my host

Hey all I'm having a big problem here. Someone is attempting an SSH to a destination host on which an account resides and locking the account. I'm trying to determine who is performing the SSH attempts from my host. For instance they're logged in as their standard account but then (I'm assuming)... (13 Replies)
Discussion started by: MaindotC
13 Replies

8. IP Networking

Need to know reason for connections closed in netstat -p tcp

Hello netstat -p give below 6634176 connections as closed.How do we trace that which all connections are being closed on the server? 1366888371 data packet headers correctly predicted 1195906 connection requests 5227320 connection accepts 5992919... (6 Replies)
Discussion started by: Vishal_dba
6 Replies

9. Cybersecurity

Failed SSHD Login Attempts (15,000 per day) - Is that a lot compared to your server?

The purpose of this thread is for everyone to follow the same methodology so we can create a future table, for the benefit of all, that shows how many failed login attempts (hacking) per day per server (and per minute) are happening. This is not a thread on writing scripts or creating... (10 Replies)
Discussion started by: Neo
10 Replies
DB2_CONN_ERROR(3)							 1							 DB2_CONN_ERROR(3)

db2_conn_error - Returns a string containing the SQLSTATE returned by the last connection attempt

SYNOPSIS
string db2_conn_error ([resource $connection]) DESCRIPTION
db2_conn_error(3) returns an SQLSTATE value representing the reason the last attempt to connect to a database failed. As db2_connect(3) returns FALSE in the event of a failed connection attempt, you do not pass any parameters to db2_conn_error(3) to retrieve the SQLSTATE value. If, however, the connection was successful but becomes invalid over time, you can pass the $connection parameter to retrieve the SQLSTATE value for a specific connection. To learn what the SQLSTATE value means, you can issue the following command at a DB2 Command Line Processor prompt: db2 '? $sqlstate- value'. You can also call db2_conn_errormsg(3) to retrieve an explicit error message and the associated SQLCODE value. PARAMETERS
o $connection - A connection resource associated with a connection that initially succeeded, but which over time became invalid. RETURN VALUES
Returns the SQLSTATE value resulting from a failed connection attempt. Returns an empty string if there is no error associated with the last connection attempt. EXAMPLES
Example #1 Retrieving an SQLSTATE value for a failed connection attempt The following example demonstrates how to return an SQLSTATE value after deliberately passing invalid parameters to db2_connect(3). <?php $conn = db2_connect('badname', 'baduser', 'badpassword'); if (!$conn) { print "SQLSTATE value: " . db2_conn_error(); } ?> The above example will output: SQLSTATE value: 08001 SEE ALSO
db2_conn_errormsg(3), db2_connect(3), db2_stmt_error(3), db2_stmt_errormsg(3). PHP Documentation Group DB2_CONN_ERROR(3)
All times are GMT -4. The time now is 03:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy